AIMO Initial Selection Mock Paper 4 · IMOolympiad.com · Original practice

6 written-solution problems · Two three-problem sessions; confirm timing in your invitation

Invitational selection preparation. These paired sets use the question count in the released 2022 archive. The current organiser overview says 180 minutes per examination, while that archived paper says 240 minutes. We do not treat either as a confirmed duration for your next invitation.

Original independent practice in English. Not an official paper or predicted selection test. Keep hints and solutions closed during your attempt.

How to review your proof

Check that you have used every condition, justified the main idea, covered all cases and stated the conclusion. A different complete proof can also be correct. This is a self-review checklist; written proofs are not automatically marked.

Session 1 · 3 problems · invitation determines timing

Question 1

Let n≥3n\ge3 be odd and put m=(n−1)/2m=(n-1)/2. Prove that nn is prime if and only if (m!)2≡(−1)m+1(modn).(m!)^2\equiv(-1)^{m+1}\pmod n.

Hint 1

When n is prime, pair each residue with its multiplicative inverse to evaluate (n−1)!(n-1)!.

Hint 2

When n is odd and composite, it has a prime divisor no larger than (n−1)/2(n-1)/2.

Worked solution 1

First let n=pn=p be prime. Each nonzero residue modulo pp has a unique inverse. The only residues equal to their own inverse satisfy x2=1x^2=1, so p∣(x−1)(x+1)p\mid(x-1)(x+1), forcing x=1x=1 or −1-1. All other residues pair with a different inverse and contribute product 1. Therefore (p−1)!≡−1(modp)(p-1)!\equiv-1\pmod p.

Pairing instead jj with p−jp-j, for 1≤j≤m1\le j\le m, gives (p−1)!≡(−1)m(m!)2(modp)(p-1)!\equiv(-1)^m(m!)^2\pmod p. Combining the two evaluations yields (m!)2≡(−1)m+1(modp)(m!)^2\equiv(-1)^{m+1}\pmod p.

Conversely, suppose the displayed congruence holds and nn is composite. Choose a prime divisor qq of nn with q≤nq\le\sqrt n. Since nn is odd, writing n=qvn=qv gives v≥3v\ge3, and thus q≤n/3≤(n−1)/2=mq\le n/3\le(n-1)/2=m. Hence q∣m!q\mid m!. Reducing the assumed congruence modulo qq gives 0≡10\equiv1 or 0≡−10\equiv-1, both impossible. Thus nn must be prime.

Conclusion: The congruence holds exactly for odd primes.

Question 2

Find every function f:R→Rf:\mathbb R\to\mathbb R satisfying f(xy)=f(x)f(y),f(x+1)=f(x)+1\begin{gathered}f(xy)=f(x)f(y),\\ f(x+1)=f(x)+1\end{gathered} for all real x,yx,y. No continuity is assumed.

Hint 1

First find f(0)f(0) and f(1)f(1). For x≠0x\ne0, write x+y=x(1+y/x)x+y=x(1+y/x).

Hint 2

Deduce additivity. Then use positivity of squares to prove monotonicity before using rational approximation.

Worked solution 2

Multiplicativity at 1 gives f(1)=0f(1)=0 or 1. If f(1)=0f(1)=0, the translation rule gives f(0)=−1f(0)=-1, contradicting f(0)=f(0)2f(0)=f(0)^2. Hence f(1)=1f(1)=1 and f(0)=0f(0)=0. For x≠0x\ne0, f(x)f(1/x)=1f(x)f(1/x)=1, so f(x)≠0f(x)\ne0.

For x≠0x\ne0, f(x+y)=f(x)f(1+y/x)=f(x)(1+f(y/x))=f(x)+f(y).f(x+y)=f(x)f(1+y/x)=f(x)\bigl(1+f(y/x)\bigr)=f(x)+f(y). The case x=0x=0 is immediate. Thus ff is additive.

Why no continuity assumption is needed. If t>0t>0, write t=s2t=s^2 with s≠0s\ne0. Then f(t)=f(s)2>0f(t)=f(s)^2>0. For y>xy>x, additivity gives f(y)−f(x)=f(y−x)>0f(y)-f(x)=f(y-x)>0; therefore ff is strictly increasing.

Additivity and f(1)=1f(1)=1 give f(k)=kf(k)=k for all integers, including negatives. For positive qq, multiplicativity gives qf(p/q)=f(p)=pqf(p/q)=f(p)=p, so f(r)=rf(r)=r for every rational rr.

If f(x)>xf(x)>x, choose a rational rr strictly between them. Then x<rx<r forces f(x)<f(r)=rf(x)<f(r)=r, a contradiction. If f(x)<xf(x)<x, choose a rational between these two numbers and argue the same way. Rationals exist between any two reals by choosing a sufficiently fine grid of fractions with one common denominator. Thus f(x)=xf(x)=x for every real xx. Direct substitution verifies this function.

Conclusion: The unique solution is f(x)=x.

Question 3

A nondegenerate triangle ABCABC is inscribed in a circle with centre OO and radius RR. Its centroid is GG. As PP moves around the circle, determine the minimum and maximum of PA2+PB2+PC2PA^2+PB^2+PC^2 in terms of RR and OGOG, and describe all equality positions.

Distance sums from a moving circle pointA, B and C lie on a circle centred at O. G is their centroid and P is another point on the circle.ABCPOG

Hint 1

Place O at the coordinate origin. If G≠OG\ne O, take OG as the positive horizontal axis.

Hint 2

Expand the three squared distances. The coordinates of A, B and C sum to three times the coordinates of G.

Worked solution 3

Put g=OGg=OG. First suppose g>0g>0, and take perpendicular coordinates with O=(0,0)O=(0,0), G=(g,0)G=(g,0). Write the vertex coordinates as (a1,a2),(b1,b2),(c1,c2)(a_1,a_2),(b_1,b_2),(c_1,c_2). The point whose coordinates are the vertex averages lies on every median: if M is the midpoint of BC, that candidate equals one third of A plus two thirds of M, coordinate by coordinate. It is therefore the intersection of the medians, namely G. Therefore a1+b1+c1=3ga_1+b_1+c_1=3g and a2+b2+c2=0a_2+b_2+c_2=0.

For P=(u,v)P=(u,v) on the circle, u2+v2=R2u^2+v^2=R^2. Each vertex also has squared distance R2R^2 from the origin. Expanding and adding yields PA2+PB2+PC2=6R2−2u(3g)−2v(0)=6R2−6gu.PA^2+PB^2+PC^2=6R^2-2u(3g)-2v(0)=6R^2-6gu. On the circle, −R≤u≤R-R\le u\le R. Thus the minimum is 6R2−6Rg6R^2-6Rg, attained only at P=(R,0)P=(R,0), and the maximum is 6R2+6Rg6R^2+6Rg, attained only at P=(−R,0)P=(-R,0). These are the two intersections of line OGOG with the circle, with the minimum on the ray OGOG.

If G=OG=O, use any perpendicular axes. Both coordinate sums vanish, so the same expansion gives the constant value 6R26R^2 at every point PP. In that case every circle point attains both extrema.

Conclusion: Minimum 6R²−6R·OG and maximum 6R²+6R·OG; if O=G the value is constant.

Session 2 · 3 problems · invitation determines timing

Question 4

Every pair among NN labelled vertices is joined. Edges sharing a vertex must receive different colours. Determine the least number of colours needed when N=2nN=2n and when N=2n+1N=2n+1, for n≥1n\ge1, and give explicit constructions.

Hint 1

One colour can contain at most ⌊N/2⌋\lfloor N/2\rfloor edges. For odd N, count all edges to strengthen the degree bound.

Hint 2

For odd N, label vertices by residues and colour the edge {a,b}\{a,b\} by a+ba+b. For even N, use an odd number of finite labels and one extra vertex.

Worked solution 4

At any vertex the N−1N-1 incident edges need different colours, so at least N−1N-1 colours are necessary. When N=2n+1N=2n+1, a colour can contain at most nn pairwise disjoint edges. There are n(2n+1)n(2n+1) edges altogether, so at least 2n+12n+1 colours are needed.

For N=2n+1N=2n+1, label vertices 0,1,…,2n0,1,\ldots,2n, working modulo 2n+12n+1. Colour {a,b}\{a,b\} by a+ba+b modulo 2n+12n+1. At a fixed vertex aa, different neighbours bb produce different colours. This gives a valid colouring using at most 2n+12n+1 colours, matching the lower bound.

For N=2nN=2n, let m=2n−1m=2n-1, and use vertices 0,1,…,m−10,1,\ldots,m-1 together with one extra vertex ∞\infty. Use mm colours, labelled modulo mm. Give each finite edge {a,b}\{a,b\} colour a+ba+b, and give edge {∞,a}\{\infty,a\} colour 2a2a. At a finite vertex aa, its finite neighbours yield every colour except 2a2a, because the omitted neighbour is aa itself. The edge to ∞\infty fills precisely that missing colour. At ∞\infty, the colours 2a2a are distinct, because mm is odd and multiplication by 2 is invertible modulo mm. For m=1m=1, there is simply one edge and one colour.

Thus the minima are 2n−12n-1 colours for 2n2n vertices and 2n+12n+1 colours for 2n+12n+1 vertices.

Conclusion: The minima are 2n−1 for 2n vertices, and 2n+1 for 2n+1 vertices.

Question 5

Let n≥1n\ge1. A real polynomial PP has degree at most nn, and ∣P(j)∣≤1|P(j)|\le1 for j=0,1,…,nj=0,1,\ldots,n. Find the greatest possible value of ∣P(n+1)∣|P(n+1)|, and describe every polynomial attaining it.

Hint 1

Build degree-n polynomials LjL_j that are 1 at j and 0 at all the other specified integer nodes.

Hint 2

Evaluate Lj(n+1)L_j(n+1); the absolute values of these coefficients are binomial coefficients.

Worked solution 5

For j=0,…,nj=0,\ldots,n, define Lj(x)=∏0≤k≤nk≠jx−kj−k.L_j(x)=\prod_{\substack{0\le k\le n\\k\ne j}}\frac{x-k}{j-k}. This is 1 at x=jx=j and 0 at every other specified node. Consequently P(x)=∑j=0nP(j)Lj(x)P(x)=\sum_{j=0}^nP(j)L_j(x): the difference has degree at most nn and vanishes at n+1n+1 distinct points, so it is the zero polynomial.

At the next integer, the numerator product is (n+1)!/(n+1−j)(n+1)!/(n+1-j), while the denominator is (−1)n−jj!(n−j)!(-1)^{n-j}j!(n-j)!. Therefore Lj(n+1)=(−1)n−j(n+1j).L_j(n+1)=(-1)^{n-j}\binom{n+1}{j}. It follows that ∣P(n+1)∣≤∑j=0n(n+1j)∣P(j)∣≤∑j=0n(n+1j)=2n+1−1.|P(n+1)|\le\sum_{j=0}^n\binom{n+1}{j}|P(j)|\le\sum_{j=0}^n\binom{n+1}{j}=2^{n+1}-1.

All the binomial coefficients are positive. Equality requires every ∣P(j)∣=1|P(j)|=1, and all the signed terms (−1)n−jP(j)(-1)^{n-j}P(j) to have the same sign. Thus the only possible node values are P(j)=ε(−1)n−jP(j)=\varepsilon(-1)^{n-j}, with one common ε∈{1,−1}\varepsilon\in\{1,-1\}. They determine the two polynomials P(x)=ε∑j=0n(−1)n−jLj(x).P(x)=\varepsilon\sum_{j=0}^n(-1)^{n-j}L_j(x). These polynomials satisfy the node bounds and attain ∣P(n+1)∣=2n+1−1|P(n+1)|=2^{n+1}-1, proving both the maximum and the complete equality classification.

Conclusion: Maximum 2ⁿ⁺¹−1; exactly the two interpolants with alternating node values ±1 attain it.

Question 6

For a prime pp, let vp(t)v_p(t) be the exponent of pp in a nonzero integer tt. Let pp be odd, and let a,ba,b be positive integers with a>ba>b, p∣a−bp\mid a-b, and p∤abp\nmid ab. Prove, for every positive integer nn, vp(an−bn)=vp(a−b)+vp(n).v_p(a^n-b^n)=v_p(a-b)+v_p(n). Hence determine the exact power of 7 dividing 87k−18^{7^k}-1 for every nonnegative integer kk.

Hint 1

First compare Xp−YpX^p-Y^p with X−YX-Y, using X=Y+ptcX=Y+p^tc where p∤cp\nmid c.

Hint 2

Separate n into a power of p and a factor coprime to p. The geometric-sum factor has a simple residue modulo p.

Worked solution 6

Write t=vp(a−b)≥1t=v_p(a-b)\ge1. We first prove a one-step rule. Suppose X−Y=pscX-Y=p^sc, where s≥1s\ge1, p∤cp\nmid c, and p∤XYp\nmid XY. Expand (Y+psc)p−Yp=pYp−1psc+∑j=2p−1(pj)Yp−jpsjcj+pspcp.(Y+p^sc)^p-Y^p=pY^{p-1}p^sc+\sum_{j=2}^{p-1}\binom pjY^{p-j}p^{sj}c^j+p^{sp}c^p. The first term is divisible by ps+1p^{s+1} but not ps+2p^{s+2}. Each middle binomial coefficient is divisible by pp, because pp is prime and its denominator has no factor pp. Hence every middle term is divisible by p1+2sp^{1+2s}, which is at least ps+2p^{s+2}. The last term is also divisible by ps+2p^{s+2}, since sp≥s+2sp\ge s+2 for odd pp and s≥1s\ge1. After division by ps+1p^{s+1}, only the first term is nonzero modulo pp. Thus vp(Xp−Yp)=s+1v_p(X^p-Y^p)=s+1.

Now write n=pkun=p^ku, where p∤up\nmid u. Factoring gives au−bua−b=au−1+au−2b+⋯+bu−1≡ubu−1≢0(modp).\frac{a^u-b^u}{a-b}=a^{u-1}+a^{u-2}b+\cdots+b^{u-1}\equiv u b^{u-1}\not\equiv0\pmod p. Therefore vp(au−bu)=tv_p(a^u-b^u)=t. Apply the one-step rule kk times, successively raising au,bua^u,b^u to their pp-th powers. Their difference exponent increases by 1 each time, so its final value is t+kt+k. This proves the formula.

For a=8,b=1,p=7,n=7ka=8,b=1,p=7,n=7^k, the initial difference is 7, of exponent 1. Thus v7(87k−1)=k+1v_7(8^{7^k}-1)=k+1: it is divisible by 7k+17^{k+1} and not by 7k+27^{k+2}.

Conclusion: The exponent is vₚ(a−b)+vₚ(n); the exact power in the example is 7ᵏ⁺¹.

After this paper

Choose one gap in your proof to repair, study the linked idea, and write a complete solution again before the next mock.

Choose another paper · Check your German selection route

Format reference: official organiser information. Questions and explanations are independent practice material.