Maths Olympiad Prep

Library / IMO Team Selection Team Selection Test /1 of 9

IMO Team Selection Team Selection Test

Number theory Difficulty 8.4 Shortlist Prove it United States

Define a function f:N→Nf : \mathbb{N} \to \mathbb{N} by f(1)=1f(1) = 1, f(n+1)=f(n)+2f(n)f(n + 1) = f(n) + 2^{f(n)} for every positive integer nn. Prove that f(1),f(2),…,f(32013)f(1), f(2), \dots, f(3^{2013}) leave distinct remainders when divided by 320133^{2013}.

(This problem was suggested by Evan O'Dorney.)

Solution

We prove the following stronger statement: For any k≥0k \ge 0 and a≥1a \ge 1, the values f(a),f(a+1),…,f(a+3k−1)f(a), f(a+1), \dots, f(a+3^k - 1) are all distinct modulo 3k3^k; that is, these numbers form a complete set of residues modulo 3k3^k. We will induct on kk, the case k=0k=0 being trivial.

Assume the statement true for a given kk; we will prove it for k+1k+1. For any a≥1a \ge 1, we have
f(a+3k)−f(a)=[f(a+1)−f(a)]+[f(a+2)−f(a+1)]+⋯+[f(a+3k)−f(a+3k−1)]=2f(a)+2f(a+1)+⋯+2f(a+3k−1). \begin{aligned} & f(a + 3^k) - f(a) \\ &= [f(a+1) - f(a)] + [f(a+2) - f(a+1)] + \dots + [f(a + 3^k) - f(a + 3^k - 1)] \\ &= 2^{f(a)} + 2^{f(a+1)} + \dots + 2^{f(a+3^k-1)}. \end{aligned}

Note that by Euler's theorem, to know 2x2^x modulo 3k+13^{k+1} (x≥1x \ge 1), it suffices to know xx modulo φ(3k+1)=2⋅3k\varphi(3^{k+1}) = 2 \cdot 3^k. Now f(x)f(x) is always odd (this follows from the definition), while the inductive hypothesis tells us that f(a),…,f(a+3k−1)f(a), \dots, f(a+3^k-1) are distinct mod 3k3^k. Hence sets
{f(a),…,f(a+3k−1)}and{1,3,5,…,2⋅3k−1} \{f(a), \dots, f(a + 3^k - 1)\} \quad \text{and} \quad \{1, 3, 5, \dots, 2 \cdot 3^k - 1\}
are congruent to each other modulo 2⋅3k2 \cdot 3^k. Therefore, modulo 3k+13^{k+1}, we have
f(a+3k)−f(a)≡21+23+25+⋯+22⋅3k−1≡2(1+4+42+⋯+43k−1)≡2(43k−1)3. f(a + 3^k) - f(a) \equiv 2^1 + 2^3 + 2^5 + \dots + 2^{2 \cdot 3^k - 1} \equiv 2(1 + 4 + 4^2 + \dots + 4^{3^k - 1}) \equiv \frac{2(4^{3^k} - 1)}{3}.
By the binomial theorem, we have
43k−1=(1+3)3k−1=3⋅(3k1)+…, 4^{3^k} - 1 = (1 + 3)^{3^k} - 1 = 3 \cdot \binom{3^k}{1} + \dots,
where each of the remaining summands are divisible by 3k+23^{k+2}; hence
f(a+3k)−f(a)≡2⋅3k(mod3k)(20) f(a + 3^k) - f(a) \equiv 2 \cdot 3^k \pmod{3^k} \qquad (20)
for all aa.

Returning to the sequence
f(a),f(a+1),…,f(a+3k+1−1), f(a), f(a+1), \dots, f(a + 3^{k+1} - 1),
we see that, since f(b)≡f(b+3k)f(b) \equiv f(b + 3^k) modulo 3k3^k (a consequence of the inductive hypothesis), the terms congruent to one another modulo 3k3^k come in triples (f(b),f(b+3k),f(b+2⋅3k))(f(b), f(b + 3^k), f(b + 2 \cdot 3^k)). By (20), these terms, modulo 3k+13^{k+1}, are congruent to (f(b),f(b)+2⋅3k,f(b)+3k)(f(b), f(b) + 2 \cdot 3^k, f(b) + 3^k), which are pairwise distinct, completing our induction.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.