Maths Olympiad Prep

Library / NMO Selection Tests for BMO and IMO /43 of 47

NMO Selection Tests for BMO and IMO

Number theory Difficulty 8.8 Shortlist Prove it Romania

Let nn be a positive integer and let aa and bb be positive integers congruent to 11 modulo 44. Prove that there exists a positive integer kk such that at least one of the numbers ak−ba^k - b and bk−ab^k - a is divisible by 2n2^n.

Solution

Lemma. For any integer p≥2p \ge 2, if c−1≡2p(mod2p+1)c-1 \equiv 2^p \pmod{2^{p+1}}, then c2−1≡2p+1(mod2p+2)c^2 - 1 \equiv 2^{p+1} \pmod{2^{p+2}}.
Proof. Write c2−1=(c−1)(c+1)c^2 - 1 = (c-1)(c+1). By hypothesis, c−1c-1 is divisible by 2p2^p. As c+1c+1 leaves remainder 2 upon division by 2p2^p, it follows that 2p+12^{p+1} is the highest power of 2 dividing c2−1c^2 - 1, whence the conclusion of the lemma.
Let 2α2^\alpha and 2β2^\beta be the highest powers of 2 dividing a−1a-1 and b−1b-1, respectively. By hypothesis, α≥2\alpha \ge 2 and β≥2\beta \ge 2. Note that a−1≡2α(mod2α+1)a-1 \equiv 2^\alpha \pmod{2^{\alpha+1}} and b−1≡2β(mod2β+1)b-1 \equiv 2^\beta \pmod{2^{\beta+1}}. We may and will assume α≤β\alpha \le \beta. Apply the lemma β−α\beta - \alpha times to get a2β−α−1(mod2β+1)=2βa^{2^{\beta-\alpha}} - 1 \pmod{2^{\beta+1}} = 2^\beta, so a2β−α−b=(a2β−α−1)−(b−1)a^{2^{\beta-\alpha}} - b = (a^{2^{\beta-\alpha}} - 1) - (b-1) is divisible by 2β+12^{\beta+1}.
Now, induct on nn. By the preceding, if n≤β+1n \le \beta + 1, then a2β−α−ba^{2^{\beta-\alpha}} - b is divisible by 2n2^n, so k=2β−αk = 2^{\beta-\alpha} will do. Let n>βn > \beta.
For the induction step, let ak−ba^k - b be divisible by 2n2^n for some k≥1k \ge 1. If it is divisible by 2n+12^{n+1} we are done, so let ak−b≡2n(mod2n+1)a^k - b \equiv 2^n \pmod{2^{n+1}}.

Second solution. Clearly, k=1k=1 works for both n=1n=1 and n=2n=2, so let n≥3n \ge 3. If a=1a=1 or b=1b=1, the conclusion follows by Euler's theorem, so let a≥5a \ge 5 and b≥5b \ge 5. Note that aa and bb may be replaced by their residues modulo 2n2^n to assume them both less than 2n2^n.
For every integer 2≤m<n2 \le m < n, let Sm={2mu+1:u=0,…,2n−m−1}S_m = \{2^m u + 1 : u = 0, \dots, 2^{n-m} - 1\}. We first show that if xx and yy are in SmS_m, then so is xy(mod2n)xy \pmod{2^n}. Write x=2mu+1x = 2^mu + 1 and y=2mv+1y = 2^mv + 1. Then xy=2mv+1xy = 2^mv + 1, where w=2muv+u+vw = 2^muv + u + v. Note that w0=w(mod2n−m)w_0 = w \pmod{2^{n-m}} falls in the range 0 through 2n−m−12^{n-m} - 1 and write w=2n−mw′+w0w = 2^{n-m}w' + w_0. Then xy=2m(2n−mw′+w0)+1=2nv+2mw0+1xy = 2^m(2^{n-m}w' + w_0) + 1 = 2^nv + 2^mw_0 + 1, where 2mw0+1<2n2^mw_0 + 1 < 2^n. Consequently, xy(mod2n)=2mv+1xy \pmod{2^n} = 2^mv + 1 is in SmS_m, as stated.
Let 2α2^\alpha and 2β2^\beta be the highest powers of 2 dividing a−1a-1 and b−1b-1, respectively. We may and will assume α≤β\alpha \le \beta. Note that a=2αu+1a = 2^\alpha u + 1 belongs to SαS_\alpha, where uu is odd and 2≤α≤n−12 \le \alpha \le n-1. By the preceding, the residues modulo 2n2^n of a,a2,a3,…,a2n−αa, a^2, a^3, \dots, a^{2^{n-\alpha}} are all in SαS_\alpha.
We now show that 2n−α2^{n-\alpha} is the least positive integer ss satisfying as≡1(mod2n)a^s \equiv 1 \pmod{2^n}. By minimality, ss divides 2n−12^{n-1}, as a2n−1≡1(mod2n)a^{2^{n-1}} \equiv 1 \pmod{2^n}. Write
a2n−α−1=(a−1)(a+1)(a2+1)⋯(a2n−α−1+1). a^{2^{n-\alpha}} - 1 = (a-1)(a+1)(a^2+1)\cdots(a^{2^{n-\alpha-1}} + 1).
As 2α2^\alpha divides a−1a-1 and 2n−α2^{n-\alpha} divides (a+1)(a2+1)⋯(a2n−α−1+1)(a+1)(a^2+1)\cdots(a^{2^{n-\alpha-1}} + 1), it follows that 2n2^n divides a2n−α−1a^{2^{n-\alpha}} - 1, so a2n−α≡1(mod2n)a^{2^{n-\alpha}} \equiv 1 \pmod{2^n}.
Suppose now, if possible, that ss divides 2n−α−12^{n-\alpha-1}. Then a2n−α−1≡1(mod2n)a^{2^{n-\alpha-1}} \equiv 1 \pmod{2^n}, so 2n2^n divides (a−1)(a+1)(a2+1)⋯(a2n−α−2+1)(a-1)(a+1)(a^2+1)\cdots(a^{2^{n-\alpha-2}} + 1). As (a+1)(a2+1)⋯(a2n−α−2+1)(a+1)(a^2+1)\cdots(a^{2^{n-\alpha-2}} + 1) is divisible by 2n−α−12^{n-\alpha-1} but not by 2n−α2^{n-\alpha}, it follows that a−1a-1 is divisible by 2α+12^{\alpha+1}, contradicting the choice of α\alpha. Consequently, s=2n−αs = 2^{n-\alpha}, as stated.

Third solution. Work in Z2n\mathbb{Z}_{2^n}. Clearly, k=1k=1 works for both n=1n=1 and n=2n=2, so let n≥3n \ge 3. The units of Z2n\mathbb{Z}_{2^n} consist of all positive odd integers less than 2n2^n. They form a multiplicative copy of the additive Z2n−2×Z2\mathbb{Z}_{2^{n-2}} \times \mathbb{Z}_2 with generators 55, of order 2n−22^{n-2}, and 2n−12^n-1, of order 22. Thus every unit has the form 5γ(2n−1)ϵ5^\gamma (2^n-1)^\epsilon, γ=0,1,…,2n−2−1\gamma = 0, 1, \dots, 2^{n-2}-1, ϵ=0,1\epsilon = 0, 1.
As aa and bb are both 11 modulo 44, it follows that a=5αa = 5^\alpha and b=5βb = 5^\beta. As 55 has order 2n−22^{n-2}, it is sufficient to provide a positive integer kk such that at least one of the numbers αk−β\alpha k - \beta and βk−α\beta k - \alpha is divisible by 2n−22^{n-2}.
Let 2m2^m be the highest power of 22 dividing gcd⁡(α,β)\gcd(\alpha, \beta). Then at least one of the numbers α/2m\alpha/2^m and β/2m\beta/2^m is odd and hence invertible modulo 2n−22^{n-2}; say, α/2m\alpha/2^m is odd and let α′\alpha' be its inverse modulo 2n−22^{n-2}. Then k=α′β/2mk = \alpha'\beta/2^m makes αk−β\alpha k - \beta divisible by 2n−22^{n-2}, as desired.

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.