INMO Mock Paper 2 · IMOolympiad.com · Original practice

6 questions · 270 minutes · Written proofs

Practise sustained proof work across algebra, number theory, combinatorics and geometry. Allow time to explore, choose a promising representation and turn your ideas into a complete proof.

Original independent practice. Use the suggested time for a full attempt; keep hints and solutions closed. Questions are not official INMO questions. No selection or score prediction is implied.

Question 1

Find all functions f:Z→Zf:\mathbb Z\to\mathbb Z such that f(x+f(y))=f(x)+9y+6f(x+f(y))=f(x)+9y+6 for every pair of integers x,yx,y.

Hint 1

The equation with x=0 proves injectivity. Let k=f(0).

Hint 2

Compare two successive shifts by f(y), f(z) with a shift by f(y+z) followed by k.

Worked solution 1

Put k=f(0)k=f(0). The equation at x=0x=0 gives f(f(y))=k+9y+6f(f(y))=k+9y+6, so ff is injective. At y=0y=0, it gives f(x+k)=f(x)+6f(x+k)=f(x)+6. Applying two shifts yields f(x+f(y)+f(z))=f(x)+9(y+z)+12f(x+f(y)+f(z))=f(x)+9(y+z)+12. The same value is obtained from f(x+f(y+z)+k)f(x+f(y+z)+k). Injectivity therefore gives f(y)+f(z)=f(y+z)+kf(y)+f(z)=f(y+z)+k.

Hence g(n)=f(n)−kg(n)=f(n)-k is additive on the integers. By induction and the identity g(−n)=−g(n)g(-n)=-g(n), it has the form g(n)=cng(n)=cn for the integer c=g(1)c=g(1). Thus f(n)=cn+kf(n)=cn+k. Substitution in the original equation gives c2y+ck=9y+6c^2y+ck=9y+6 for all integers yy. Therefore c2=9c^2=9 and ck=6ck=6. The two possibilities are (c,k)=(3,2),(−3,−2)(c,k)=(3,2),(-3,-2). Direct substitution verifies both f(n)=3n+2f(n)=3n+2 and f(n)=−3n−2f(n)=-3n-2.

Answer / conclusion: f(n)=3n+2 or f(n)=−3n−2.

Review the idea: Solving functional equations · Mathematical induction the first principle

Question 2

Prove that all positive integer solutions of a2+b2+c2+2=abca^2+b^2+c^2+2=abc can be obtained from (3,3,4)(3,3,4) by permuting the coordinates and repeatedly replacing one coordinate cc by ab−cab-c. Prove also that every triple obtained in this way is positive and is a solution.

Hint 1

Order the coordinates a ≤ b ≤ c and regard the equation as a quadratic in c.

Hint 2

Evaluate that quadratic at b. The only case where it is not negative is a=b=3.

Worked solution 2

First (3,3,4)(3,3,4) satisfies the equation. For any positive solution, the other root of t2−abt+a2+b2+2t^2-abt+a^2+b^2+2 is c∗=ab−c=(a2+b2+2)/cc^*=ab-c=(a^2+b^2+2)/c, a positive integer. The replacement preserves the equation, and permutations do as well.

Conversely, order a solution as a≤b≤ca\le b\le c. The case a=1a=1 would give b2+c2−bc+3=0b^2+c^2-bc+3=0, impossible because b2+c2≥2bcb^2+c^2\ge2bc. The case a=2a=2 gives (b−c)2+6=0(b-c)^2+6=0, also impossible. Thus a≥3a\ge3. For F(t)=t2−abt+a2+b2+2F(t)=t^2-abt+a^2+b^2+2, F(b)=a2+2−(a−2)b2.F(b)=a^2+2-(a-2)b^2. If a≥4a\ge4, this is at most a2+2−(a−2)a2=a2(3−a)+2<0a^2+2-(a-2)a^2=a^2(3-a)+2<0. If a=3,b≥4a=3,b\ge4, it is 11−b2<011-b^2<0. Write F(t)=(t−c)(t−c∗)F(t)=(t-c)(t-c^*). Since b≤cb\le c and F(b)<0F(b)<0, we cannot have b=cb=c; hence b−c<0b-c<0. The product (b−c)(b−c∗)(b-c)(b-c^*) is negative, so its other factor is positive. Therefore c∗<b<cc^*<b<c. The formula c∗=(a2+b2+2)/cc^*=(a^2+b^2+2)/c already shows c∗>0c^*>0. Replacing cc therefore reduces the positive integer a+b+ca+b+c.

The remaining case is a=b=3a=b=3, where c2−9c+20=0c^2-9c+20=0, giving c=4 or 5. The triple (3,3,5)(3,3,5) replaces its last coordinate by 4. After each replacement, reorder the entries and apply the same rule. The positive integer sum cannot decrease indefinitely. The only case where the reduction stops is (3,3,4)(3,3,4), since (3,3,5)(3,3,5) reduces once more to it. Each replacement can be undone by the same rule: c↦ab−c↦ab−(ab−c)=cc\mapsto ab-c\mapsto ab-(ab-c)=c. Thus reversing the complete descent proves that every solution is generated as stated.

Answer / conclusion: Exactly the positive triples generated from (3,3,4) by these operations.

Review the idea: Vietas formulas · Strong induction · Factorisation integer solutions

Question 3

In a nondegenerate triangle ABCABC, choose D∈BCD\in BC, E∈CAE\in CA, F∈ABF\in AB with BD/DC=CE/EA=AF/FB=k>0BD/DC=CE/EA=AF/FB=k>0. Let X=AD∩BEX=AD\cap BE, Y=BE∩CFY=BE\cap CF, Z=CF∩ADZ=CF\cap AD. For k≠1k\ne1, determine all values of kk for which the area of triangle XYZXYZ is one quarter of the area of ABCABC.

Three cyclic cevians and their central triangleABCDEFXYZOriginal construction; the proof does not rely on the drawing.

Hint 1

Use pair coordinates relative to A, B and C. Explain how actual coordinates (bξ+uη,vη)(b\xi+u\eta,v\eta) preserve the given line ratios.

Hint 2

Use the coordinate-area formula on the two differences Y−X and Z−X. The common scale factor cancels, leaving [XYZ]/[ABC]=(k−1)2/(k2+k+1)[XYZ]/[ABC]=(k-1)^2/(k^2+k+1).

Worked solution 3

A cevian is a line joining a triangle vertex to a point on the opposite side. We use coordinates for the three cevians, with a short explanation of how their area ratio is calculated.

Coordinate-area tool. In ordinary coordinates, the triangle with vertices (0,0),(p,q),(r,s)(0,0),(p,q),(r,s) has area ∣ps−qr∣/2|ps-qr|/2. This follows by enclosing the triangle in a rectangle and subtracting the surrounding right-triangle areas; reversing the orientation only changes the sign inside the absolute value. Translating one vertex to the origin gives the same formula using the two coordinate differences from that vertex.

Take actual coordinates A=(0,0),B=(b,0),C=(u,v)A=(0,0),B=(b,0),C=(u,v), where b>0b>0 and v≠0v\ne0. To keep the calculation short, name the actual point (bξ+uη,vη)(b\xi+u\eta,v\eta) by the pair (ξ,η)(\xi,\eta). Thus the pair labels of A,B,CA,B,C are (0,0),(1,0),(0,1)(0,0),(1,0),(0,1). Combining pairs in a fixed ratio combines their actual coordinates in the same ratio, so straight lines and the given side ratios are preserved by these labels. For two pair differences (Δξ1,Δη1)(\Delta\xi_1,\Delta\eta_1), (Δξ2,Δη2)(\Delta\xi_2,\Delta\eta_2), the coordinate-area formula gives twice the actual triangle area as ∣(bΔξ1+uΔη1)vΔη2−vΔη1(bΔξ2+uΔη2)∣=∣bv∣∣Δξ1Δη2−Δη1Δξ2∣.\left|(b\Delta\xi_1+u\Delta\eta_1)v\Delta\eta_2-v\Delta\eta_1(b\Delta\xi_2+u\Delta\eta_2)\right|=|bv|\left|\Delta\xi_1\Delta\eta_2-\Delta\eta_1\Delta\xi_2\right|. The uu-terms cancel. Twice the area of ABCABC is ∣bv∣|bv|, so this common factor cancels when taking the area ratio.

We may therefore compute entirely with the pair labels. Put L=k2+k+1L=k^2+k+1. The side points are D=(1/(k+1),k/(k+1))D=(1/(k+1),k/(k+1)), E=(0,1/(k+1))E=(0,1/(k+1)), F=(k/(k+1),0)F=(k/(k+1),0). Their cevian equations, in these pair coordinates, are y=kxy=kx, x+(k+1)y=1x+(k+1)y=1, (k+1)x+ky=k(k+1)x+ky=k. Solving in pairs gives X=(1/L,k/L),Y=(k2/L,1/L),Z=(k/L,k2/L).X=(1/L,k/L),\quad Y=(k^2/L,1/L),\quad Z=(k/L,k^2/L). Using the two differences Y−X,Z−XY-X,Z-X, the area ratio is [XYZ][ABC]=(k2−1)(k2−k)−(1−k)(k−1)L2=(k−1)2LL2=(k−1)2k2+k+1.\frac{[XYZ]}{[ABC]}=\frac{(k^2-1)(k^2-k)-(1-k)(k-1)}{L^2}=\frac{(k-1)^2L}{L^2}=\frac{(k-1)^2}{k^2+k+1}. Here brackets denote triangle area.

Equating this explicit ratio to 1/41/4 gives 4(k−1)2=k2+k+14(k-1)^2=k^2+k+1, or k2−3k+1=0k^2-3k+1=0. Both roots (3±5)/2(3\pm\sqrt5)/2 are positive and different from 1. Substitution verifies the required area, so these are exactly the two values.

Answer / conclusion: k=(3+√5)/2 or (3−√5)/2.

Review the idea: Triangle area ratios · Concurrency and collinearity

Question 4

Determine the least integer NN such that from any list of NN integers, with repetitions allowed, one can select exactly 32 entries whose sum is divisible by 32.

Hint 1

Prove the corresponding statement for 2^k by induction.

Hint 2

From an odd number of entries, pair all but one into same-parity pairs, then halve the pair sums.

Worked solution 4

We prove by induction that any 2k+1−12^{k+1}-1 integers contain 2k2^k whose sum is divisible by 2k2^k. For k=0k=0, one entry suffices. Suppose the assertion is true for k−1k-1. In a list of 2k+1−12^{k+1}-1 entries, exactly one of the numbers of even and odd entries is odd. Within each parity class, pair entries and leave only one unpaired entry overall. This produces 2k−12^k-1 disjoint pairs, each with even sum. Divide the pair sums by 2. By induction, select 2k−12^{k-1} of these half-sums with total divisible by 2k−12^{k-1}. Their original pairs contain exactly 2k2^k entries, and their total is twice that sum, hence divisible by 2k2^k.

For k=5k=5, 63 entries therefore suffice. To prove that 62 do not suffice, take 31 zeros and 31 ones. A selection of 32 entries contains between 1 and 31 ones, so its sum is not divisible by 32. Hence the least NN is 63.

Answer / conclusion: 63.

Review the idea: Strong induction · Parity · Pigeonhole principle

Question 5

Find the least real constant KK for which a4+b4+c4+Kabc(a+b+c)≥a3b+a3c+b3a+b3c+c3a+c3ba^4+b^4+c^4+Kabc(a+b+c)\ge a^3b+a^3c+b^3a+b^3c+c^3a+c^3b holds for all nonnegative real numbers a,b,ca,b,c. Give every equality case for the least constant.

Hint 1

First test a=b=c>0.

Hint 2

For K=1, order a ≥ b ≥ c and group ∑a2(a−b)(a−c)\sum a^2(a-b)(a-c).

Worked solution 5

At a=b=c=1a=b=c=1, the inequality requires 3+3K≥63+3K\ge6, so K≥1K\ge1. For K=1K=1, the difference is ∑cyca2(a−b)(a−c)\sum_{\rm cyc}a^2(a-b)(a-c). By symmetry assume a≥b≥c≥0a\ge b\ge c\ge0. Grouping the first two terms gives (a−b)(a2(a−c)−b2(b−c))+c2(a−c)(b−c).(a-b)\bigl(a^2(a-c)-b^2(b-c)\bigr)+c^2(a-c)(b-c). The bracket equals (a−b)(a2+ab+b2−c(a+b))(a-b)(a^2+ab+b^2-c(a+b)), and its second factor is nonnegative because c≤bc\le b gives a2+ab+b2−c(a+b)≥a2a^2+ab+b^2-c(a+b)\ge a^2. Thus the whole difference is nonnegative.

If a>ba>b, the first grouped term is strictly positive. Equality therefore requires a=ba=b, after which the difference is c2(a−c)2c^2(a-c)^2. It vanishes when c=0c=0 or c=ac=a. Undoing the ordering, equality occurs when all three are equal, or when one is zero and the other two equal. These include the all-zero case. Hence the least coefficient is 1.

Answer / conclusion: K=1; equality when all equal or one zero and the other two equal.

Review the idea: Sum of squares · Symmetric polynomials

Question 6

Prove that there are infinitely many primes p≡1(mod3)p\equiv1\pmod3. Your proof should use prime divisors of expressions m2+m+1m^2+m+1, and should explain why the exceptional prime 3 causes no problem.

Hint 1

If a prime q≠3 divides m²+m+1, determine the order of m modulo q.

Hint 2

If the relevant primes formed a finite list, choose m as three times their product.

Worked solution 6

Order tool. For a prime qq not dividing mm, let dd be the least positive exponent for which md≡1(modq)m^d\equiv1\pmod q; this exists by Fermat. If mN≡1m^N\equiv1, write N=kd+rN=kd+r, 0≤r<d0\le r<d. Then mr≡1m^r\equiv1, so minimality gives r=0r=0. Therefore d∣Nd\mid N.

Suppose a prime q≠3q\ne3 divides m2+m+1m^2+m+1. It cannot divide mm. Multiplication by m−1m-1 gives m3≡1(modq)m^3\equiv1\pmod q. Also m≢1(modq)m\not\equiv1\pmod q, since that would give q∣3q\mid3. The order dd divides 3 and is not 1, so d=3d=3. Fermat gives mq−1≡1(modq)m^{q-1}\equiv1\pmod q, since q∤mq\nmid m. By the order tool, 3∣q−13\mid q-1. Therefore q≡1(mod3)q\equiv1\pmod3.

Now suppose all primes 1 modulo 3 are p1,…,prp_1,\ldots,p_r, allowing an empty list. Put m=3p1⋯prm=3p_1\cdots p_r, taking an empty product as 1. The integer m2+m+1>1m^2+m+1>1 has a prime divisor qq. The number m2+m+1m^2+m+1 is congruent to 1 modulo 3, so none of its prime divisors is 3; in particular q≠3q\ne3. It is also 1 modulo every pip_i, so qq is absent from the purported complete list. The preceding order argument gives q≡1(mod3)q\equiv1\pmod3, a contradiction. Hence there are infinitely many such primes.

Answer / conclusion: Infinitely many primes are 1 modulo 3.

Review the idea: Number theory theorems · Prime numbers

After this paper

Record one idea you missed and one proof or calculation you want to improve. Work through the linked lesson, then try the next paper without hints.

Choose another INMO paper · Find a concept or theorem

Format reference: official INMO programme. Paper content is independently authored practice.