INMO Mock Paper 3 · 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

Determine all functions f:Z>0→Z>0f:\mathbb Z_{>0}\to\mathbb Z_{>0} satisfying f(m+n)+f(mn)=f(m)+f(n)+f(m)f(n)f(m+n)+f(mn)=f(m)+f(n)+f(m)f(n) for every pair of positive integers m,nm,n.

Hint 1

Let c=f(1) and put n=1.

Hint 2

Compute f(2), f(3), f(4) from that recurrence, then use m=n=2.

Worked solution 1

Put c=f(1)>0c=f(1)>0. Setting n=1n=1 and cancelling f(m)f(m) gives f(m+1)=c(1+f(m))f(m+1)=c(1+f(m)). Therefore f(2)=c2+cf(2)=c^2+c, f(3)=c3+c2+cf(3)=c^3+c^2+c, and f(4)=c4+c3+c2+cf(4)=c^4+c^3+c^2+c. The equation at m=n=2m=n=2 says 2f(4)=2f(2)+f(2)22f(4)=2f(2)+f(2)^2. Substitution and simplification give c4−c2=0c^4-c^2=0. Since c is a positive integer, c=1c=1. The recurrence now reads f(m+1)=f(m)+1f(m+1)=f(m)+1, and induction from f(1)=1f(1)=1 gives f(m)=mf(m)=m for every positive integer. Finally, substituting this function into the original equation gives m+n+mn=m+n+mnm+n+mn=m+n+mn. Thus it is the unique solution.

Answer / conclusion: f(n)=n for every positive integer n.

Review the idea: Solving functional equations · Recursive sequences

Question 2

Find all rational pairs (x,y)(x,y) satisfying x2+2y2=3x^2+2y^2=3. Give a parametrisation, prove that it gives every rational pair, and state any point omitted by the parametrisation.

Hint 1

Use the known rational point (1,1).

Hint 2

Intersect the conic with y=1+t(x−1)y=1+t(x-1), where t is rational; handle x=1 separately.

Worked solution 2

A parametrisation is a formula that assigns a solution to each permitted parameter. To show completeness, we must also explain why every rational solution is produced, apart from any explicitly listed exception.

If x=1x=1, the equation gives y=±1y=\pm1. For any other rational solution, the line through it and (1,1)(1,1) has rational slope t=(y−1)/(x−1)t=(y-1)/(x-1). Substitute y=1+t(x−1)y=1+t(x-1). Direct expansion and factorisation give x2+2[1+t(x−1)]2−3=(x−1)((1+2t2)x+1+4t−2t2).x^2+2[1+t(x-1)]^2-3=(x-1)\bigl((1+2t^2)x+1+4t-2t^2\bigr). For x≠1x\ne1, the second factor must be zero. Solving it for xx, then substituting that value in y=1+t(x−1)y=1+t(x-1), gives x=2t2−4t−11+2t2,y=1−2t−2t21+2t2.x=\frac{2t^2-4t-1}{1+2t^2},\qquad y=\frac{1-2t-2t^2}{1+2t^2}. The denominator is positive for every rational t, and substitution verifies that these are rational solutions.

Every rational solution with x≠1x\ne1 arises from its slope t. The point (1,1)(1,1) is also included: take t=−1/2t=-1/2, as direct substitution confirms. The point (1,−1)(1,-1) is not included, because setting the displayed x equal to 1 forces t=−1/2t=-1/2, which gives y=1. Thus the full answer is the displayed family for all rational t, together with the single point (1,−1)(1,-1).

Answer / conclusion: The stated rational one-parameter family, plus (1,−1).

Review the idea: Factorisation integer solutions · Equations and quadratics

Question 3

Let ABCABC be an acute triangle with orthocentre HH, and let PP be a point on its circumcircle distinct from A,B,CA,B,C. Reflect PP in the lines BC,CA,ABBC,CA,AB, obtaining X,Y,ZX,Y,Z, respectively. Prove that X,Y,Z,HX,Y,Z,H lie on one line.

Reflections of a circumcircle point and the orthocentreABCPHXYZOriginal construction; the proof does not rely on the drawing.

Hint 1

Use z=x+iyz=x+iy as the coordinate of (x,y), and translate/scale the circumcircle to ∣z∣=1|z|=1. First establish the orthocentre coordinate h=a+b+ch=a+b+c.

Hint 2

Derive reflection in BC by translating B to zero, turning BC into the real axis, conjugating, and undoing. Then compare x−h‾/(x−h)\overline{x-h}/(x-h), and the corresponding nonzero differences for Y and Z.

Worked solution 3

Complex-plane tool box. Identify the point (x,y)(x,y) with the complex number z=x+iyz=x+iy, where i2=−1i^2=-1. Its modulus ∣z∣=x2+y2|z|=\sqrt{x^2+y^2} is its distance from the origin, and ∣z−w∣|z-w| is the distance between two points. The conjugate z‾=x−iy\overline z=x-iy reflects the point across the horizontal axis, and zz‾=∣z∣2z\overline z=|z|^2. Multiplying by cos⁡θ+isin⁡θ\cos\theta+i\sin\theta sends coordinates to (xcos⁡θ−ysin⁡θ,xsin⁡θ+ycos⁡θ)(x\cos\theta-y\sin\theta,x\sin\theta+y\cos\theta), so it is a rotation. Multiplication by any nonzero complex number is a rotation followed by uniform scaling. Translation, rotation and uniform scaling preserve reflection, perpendicularity and collinearity. We may therefore translate the circumcentre to the origin and scale its radius to 1.

Write the resulting vertex coordinates as unit complex numbers a,b,c,pa,b,c,p; “unit” means modulus 1. Then a‾=1/a\overline a=1/a, and the same holds for b,c,pb,c,p. For ordinary coordinate arrows (s,t),(u,v)(s,t),(u,v), their dot product is su+tvsu+tv; it is zero exactly when nonzero arrows are perpendicular, by the cosine formula for the angle between them. The orthocentre is h=a+b+ch=a+b+c: the arrow h−a=b+ch-a=b+c is perpendicular to c−bc-b, since their dot product is ∣c∣2−∣b∣2=0|c|^2-|b|^2=0. Thus it lies on the altitude from AA, and the other two altitudes follow in the same way.

We derive reflection in BCBC. Translate BB to zero and rotate/scale BCBC to the real axis by the map w↦(w−b)/(c−b)w\mapsto(w-b)/(c-b). Reflect there by conjugation, then undo the map. The reflected coordinate is w′=b+(c−b)w−bc−b‾.w'=b+(c-b)\overline{\frac{w-b}{c-b}}. Since b‾=1/b\overline b=1/b and c‾=1/c\overline c=1/c, we have (c−b)/(c‾−b‾)=(c−b)/(1/c−1/b)=−bc.(c-b)/(\overline c-\overline b)=(c-b)/(1/c-1/b)=-bc. Consequently w′=b−bc(w‾−b‾)=b+c−bcw‾w'=b-bc(\overline w-\overline b)=b+c-bc\overline w. Taking w=pw=p, we obtain x=b+c−bc/px=b+c-bc/p, so x−h=−a−bc/px-h=-a-bc/p. Conjugating gives x−h‾=−1a−pbc=pabc(x−h).\overline{x-h}=-\frac1a-\frac p{bc}=\frac p{abc}(x-h). The analogous reflections in CACA and ABAB give exactly the same relation for y−hy-h and z−hz-h.

If nonzero complex numbers U,VU,V satisfy U‾=λU\overline U=\lambda U and V‾=λV\overline V=\lambda V, then U/V‾=U/V\overline{U/V}=U/V. A complex number equal to its conjugate is real, so U/VU/V is real. Thus UU is a real multiple of VV; the corresponding displacement arrows lie on one line. Any zero difference already represents the point HH.

Finally, the differences cannot all be zero. In fact X≠YX\ne Y: if their common value differed from PP, the two distinct lines BC,CABC,CA would both be the perpendicular bisector of the same nonzero segment PXPX, impossible. If the common value were PP, that point would lie on both side-lines and equal CC, which is excluded. At least one displacement is therefore nonzero, and the common conjugate ratio proves that X,Y,Z,HX,Y,Z,H all lie on its line.

Answer / conclusion: The three reflected points lie on a line through H.

Review the idea: Complex numbers · Triangle congruence · Circles and power of a point · Trigonometry in geometry

Question 4

A simple graph has 20 vertices and contains no triangle. Determine its greatest possible number of edges. Prove also that every graph attaining this bound is a complete bipartite graph with ten vertices in each part. A simple graph has no loops or repeated edges.

Hint 1

For every edge uv, the neighbourhoods of u and v are disjoint.

Hint 2

Sum d(u)+d(v)≤20d(u)+d(v)\le20 over the edges and apply Cauchy–Schwarz to the degrees. Analyse equality.

Worked solution 4

Graph language. Draw one point for each vertex and join adjacent vertices by line segments called edges. The degree d(v)d(v) is the number of edges meeting vv; its neighbours are the vertices joined to it. A triangle consists of three pairwise joined vertices. A complete bipartite graph divides the vertices into two groups, includes every edge between the groups, and includes none within either group.

Let e be the number of edges and d(v)d(v) the degree of vertex v. For an edge uv, no vertex is adjacent to both endpoints, because that would form a triangle. Their neighbourhoods are disjoint subsets of the 20 vertices, so d(u)+d(v)≤20d(u)+d(v)\le20. When we sum d(u)+d(v)d(u)+d(v) over all edges, the number d(v)d(v) occurs once for each edge meeting vv, namely d(v)d(v) times. Its total contribution is therefore d(v)2d(v)^2, giving ∑vd(v)2≤20e\sum_v d(v)^2\le20e. Also ∑vd(v)=2e\sum_v d(v)=2e, because every edge has exactly two endpoints. Apply Cauchy–Schwarz to the twenty degrees and twenty numbers all equal to 1: (2e)2≤20∑vd(v)2≤400e(2e)^2\le20\sum_v d(v)^2\le400e. Thus e=0 or e≤100e\le100.

The complete bipartite graph with parts of size 10 has 10⋅10=10010\cdot10=100 edges and no triangles: among three vertices, two must lie in the same group and are not joined. The schematic below illustrates its cross-group connection pattern; each actual group has ten vertices, although only three representatives are drawn.

Two groups with all cross-group connectionsA (10 vertices)B (10 vertices)Three representative vertices shown in each group.Actual construction: 10 × 10 cross-group edges; none within a group.
All edges run between the two groups. This miniature illustrates the pattern, not the actual twenty-vertex count.

If equality holds, Cauchy equality forces all degrees to equal 10. Pick a vertex v and let A be its ten neighbours. No two vertices of A are adjacent. Let B be the other ten vertices, including v. Every vertex of A has all ten of its neighbours in B, so all edges between A and B are present. Every vertex of B already has degree 10 from these edges; there can be no edge within B. The graph is therefore exactly the stated complete bipartite graph.

Answer / conclusion: 100 edges; equality precisely for K₁₀,₁₀.

Review the idea: Counting · Cauchy schwarz inequality

Question 5

Positive real numbers a,b,ca,b,c satisfy a+b+c=6a+b+c=6 and a2+b2+c2=14a^2+b^2+c^2=14. Determine the minimum and maximum possible values of abcabc, and all triples attaining them.

Hint 1

Set a=2+x,b=2+y,c=2+za=2+x,b=2+y,c=2+z, and show abc=6+xyzabc=6+xyz. The constraints imply yz=x2−1yz=x^2-1.

Hint 2

Put h=1/3h=1/\sqrt3. Use (y−z)2=4−3x2≥0(y-z)^2=4-3x^2\ge0 and factor 2h3−(x3−x)2h^3-(x^3-x) and 2h3+(x3−x)2h^3+(x^3-x) into a linear factor times a square.

Worked solution 5

Set a=2+x,b=2+y,c=2+za=2+x,b=2+y,c=2+z. The constraints become x+y+z=0x+y+z=0 and x2+y2+z2=2x^2+y^2+z^2=2. Squaring the zero sum gives xy+yz+zx=−1xy+yz+zx=-1, so abc=8+2(xy+yz+zx)+xyz=6+xyz.abc=8+2(xy+yz+zx)+xyz=6+xyz. We will bound xyzxyz using only squares and factorisation.

Because y+z=−xy+z=-x and y2+z2=2−x2y^2+z^2=2-x^2, subtracting these equations after squaring the first gives yz=x2−1yz=x^2-1. Hence (y−z)2=4−3x2≥0(y-z)^2=4-3x^2\ge0, so −2/3≤x≤2/3-2/\sqrt3\le x\le2/\sqrt3. Put h=1/3h=1/\sqrt3. We have xyz=x(x2−1)=x3−xxyz=x(x^2-1)=x^3-x. Since 3h2=13h^2=1, direct multiplication gives 2h3−(x3−x)=(2h−x)(x+h)2,2h3+(x3−x)=(x+2h)(x−h)2.2h^3-(x^3-x)=(2h-x)(x+h)^2,\qquad 2h^3+(x^3-x)=(x+2h)(x-h)^2. Both right sides are nonnegative for −2h≤x≤2h-2h\le x\le2h. Therefore −2h3≤xyz≤2h3-2h^3\le xyz\le2h^3, or ∣xyz∣≤2/(33)|xyz|\le2/(3\sqrt3).

For the maximum, the first factorisation must vanish, so x=2hx=2h or x=−hx=-h. If x=2hx=2h, then y+z=−2hy+z=-2h and yz=h2yz=h^2, forcing y=z=−hy=z=-h. If x=−hx=-h, the sum and product give y,z=2h,−hy,z=2h,-h in either order. Thus the maximum deviations are exactly the permutations of (2h,−h,−h)(2h,-h,-h). The second factorisation similarly gives the minimum deviations as the permutations of (−2h,h,h)(-2h,h,h): when x=−2hx=-2h, the other two are h,h; when x=hx=h, they are −2h,h-2h,h.

Adding 2 back to each variable, the maximum of abcabc is 6+2/(33)6+2/(3\sqrt3), attained exactly at permutations of (2+2/3,2−1/3,2−1/3)(2+2/\sqrt3,2-1/\sqrt3,2-1/\sqrt3). The minimum is 6−2/(33)6-2/(3\sqrt3), attained exactly at permutations of (2−2/3,2+1/3,2+1/3)(2-2/\sqrt3,2+1/\sqrt3,2+1/\sqrt3). All these entries are positive, since 2−2/3>02-2/\sqrt3>0, and direct substitution verifies both original constraints.

Answer / conclusion: Minimum 6−2/(3√3); maximum 6+2/(3√3), with stated permutations.

Review the idea: Symmetric polynomials · Sum of squares

Question 6

For positive integers a,ba,b, put d=gcd⁡(a,b)d=\gcd(a,b). Prove that gcd⁡(2a−1,2b+1)={1,a/d is odd,2d+1,a/d is even.\gcd(2^a-1,2^b+1)=\begin{cases}1,&a/d\text{ is odd},\\2^d+1,&a/d\text{ is even}.\end{cases}

Hint 1

Let u=a/d and v=b/d. Work modulo the unknown gcd.

Hint 2

If u is odd, compare the equal exponents av and bu. If u is even, choose positive s with vs=1+kuvs=1+ku, k≥0k\ge0, using Bézout’s identity.

Worked solution 6

Let g=gcd⁡(2a−1,2b+1)g=\gcd(2^a-1,2^b+1), an odd integer. Put u=a/d,v=b/du=a/d,v=b/d, so gcd⁡(u,v)=1\gcd(u,v)=1. Modulo g, 2a≡12^a\equiv1 and 2b≡−12^b\equiv-1. If u is odd, the equal exponents av=bu give 1≡(−1)u=−11\equiv(-1)^u=-1, so g divides 2. Since g is odd, g=1.

If u is even, v is odd. Bézout’s identity says that coprime u,vu,v admit integers r,sr,s with ru+sv=1ru+sv=1. By adding a sufficiently large multiple of uu to the coefficient ss, we can choose s>0s>0 such that vs=1+kuvs=1+ku for an integer k≥0k\ge0. Since uu is even and vv is odd, this equality shows that ss is odd. Put x=2dx=2^d. We know xu≡1x^u\equiv1 and xv≡−1(modg)x^v\equiv-1\pmod g. Using only nonnegative powers, xvs=(xv)s≡−1(modg),x1+ku=x(xu)k≡x(modg).x^{vs}=(x^v)^s\equiv-1\pmod g,\qquad x^{1+ku}=x(x^u)^k\equiv x\pmod g. The exponents vsvs and 1+ku1+ku are equal, so x=2d≡−1(modg)x=2^d\equiv-1\pmod g. Thus g divides 2d+12^d+1. Conversely, modulo 2d+12^d+1, we have 2a=(2d)u≡12^a=(2^d)^u\equiv1 and 2b=(2d)v≡−12^b=(2^d)^v\equiv-1. Hence 2d+12^d+1 divides both original numbers, establishing equality.

Answer / conclusion: The two-case gcd formula holds.

Review the idea: Greatest common divisor · Number theory theorems

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.