Maths Olympiad Prep

Library / /2 of 3

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 akba^k - b and bkab^k - a is divisible by 2n2^n.

Solution

Lemma. For any integer p2p \ge 2, if c12p(mod2p+1)c-1 \equiv 2^p \pmod{2^{p+1}}, then c212p+1(mod2p+2)c^2 - 1 \equiv 2^{p+1} \pmod{2^{p+2}}.
*Proof.* Write c21=(c1)(c+1)c^2 - 1 = (c-1)(c+1). By hypothesis, c1c-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 c21c^2 - 1, whence the conclusion of the lemma.
Let 2α2^\alpha and 2β2^\beta be the highest powers of 2 dividing a1a-1 and b1b-1, respectively. By hypothesis, α2\alpha \ge 2 and β2\beta \ge 2. Note that a12α(mod2α+1)a-1 \equiv 2^\alpha \pmod{2^{\alpha+1}} and b12β(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)(b1)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 akba^k - b be divisible by 2n2^n for some k1k \ge 1. If it is divisible by 2n+12^{n+1} we are done, so let akb2n(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 n3n \ge 3. If a=1a=1 or b=1b=1, the conclusion follows by Euler's theorem, so let a5a \ge 5 and b5b \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 2m<n2 \le m < n, let Sm={2mu+1:u=0,,2nm1}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(mod2nm)w_0 = w \pmod{2^{n-m}} falls in the range 0 through 2nm12^{n-m} - 1 and write w=2nmw+w0w = 2^{n-m}w' + w_0. Then xy=2m(2nmw+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 a1a-1 and b1b-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αn12 \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 as1(mod2n)a^s \equiv 1 \pmod{2^n}. By minimality, ss divides 2n12^{n-1}, as a2n11(mod2n)a^{2^{n-1}} \equiv 1 \pmod{2^n}. Write
a2nα1=(a1)(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 a1a-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α11(mod2n)a^{2^{n-\alpha-1}} \equiv 1 \pmod{2^n}, so 2n2^n divides (a1)(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 a1a-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 n3n \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 Z2n2×Z2\mathbb{Z}_{2^{n-2}} \times \mathbb{Z}_2 with generators 55, of order 2n22^{n-2}, and 2n12^n-1, of order 22. Thus every unit has the form 5γ(2n1)ϵ5^\gamma (2^n-1)^\epsilon, γ=0,1,,2n21\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 2n22^{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 2n22^{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 2n22^{n-2}; say, α/2m\alpha/2^m is odd and let α\alpha' be its inverse modulo 2n22^{n-2}. Then k=αβ/2mk = \alpha'\beta/2^m makes αkβ\alpha k - \beta divisible by 2n22^{n-2}, as desired.

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

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.