Olympiad Maths Prep

Library / /4 of 6

Number theory Difficulty 5.8 AIME, harder Prove it Czech Republic

Let nn be a positive integer. Prove that nn is a power of two if and only if there exists an integer mm such that 2n12^n - 1 is a divisor of m2+9m^2 + 9.

Solutions — 2

Solution 1

We first show that if 2n12^n - 1 is a divisor of m2+9m^2 + 9 for some number mm, then nn is the power of number 2. Otherwise the nn has some odd divisor 3\ell \ge 3 and so 212^\ell - 1 is a divisor of m2+9m^2 + 9 because 212^\ell - 1 divide 2n12^n - 1. But for 3\ell \ge 3 we have 211(mod4)2^\ell - 1 \equiv -1 \pmod 4, and therefore the 212^\ell - 1 has prime divisors pp such that the p1(mod4)p \equiv -1 \pmod 4. Firstly, we deal with p3p \ne 3. Since pm2+32p \mid m^2 + 3^2 by Fermat little theorem we have
1mp1(m2)(p1)/2(9)(p1)/2(1)(p1)/23p11(modp) 1 \equiv m^{p-1} \equiv (m^2)^{(p-1)/2} \equiv (-9)^{(p-1)/2} \equiv (-1)^{(p-1)/2} \cdot 3^{p-1} \equiv -1 \pmod{p}
But this is impossible, so p=3p=3. But then for odd \ell we have 21≢1(mod3)2^\ell \equiv -1 \not\equiv -1 \pmod 3, which is a contradiction. Consider n=2kn=2^k now. For n=1n=1, the claim is true. If k1k \ge 1 then
2n1=3(22+1)(222+1)(22k1+1) 2^n - 1 = 3(2^2 + 1)(2^{2^2} + 1)\cdots(2^{2^{k-1}} + 1)
Therefore, if 2n12^n - 1 divides m2+9m^2 + 9, also 2+12^\ell + 1 divides m2+9m^2 + 9 for each =1,2,,k1\ell = 1, 2, \dots, k-1. Moreover if αβ\alpha \ne \beta the numbers 22α+12^{2\alpha} + 1 and 22β+12^{2\beta} + 1 are relatively prime because if d>2d > 2 is the greatest common divisor and α>β\alpha > \beta, then
122α(22β)2αβ1(modd) -1 \equiv 2^{2\alpha} \equiv (2^{2\beta})^{2^{\alpha-\beta}} \equiv 1 \pmod{d}
which is a contradiction. So it is necessarily d=1d=1 (d2d \ne 2, because both are odd).
Then, according to the Chinese remainder theorem there is a natural number cc such that
c22(mod22+1),=0,1,,k2 c \equiv 2^{2\ell} \pmod{2^{2^{\ell+1}}}, \quad \forall \ell = 0, 1, \dots, k-2
Then c2+10(mod22+1)c^2 + 1 \equiv 0 \pmod{2^{2\ell+1}} for =0,1,,k2\ell = 0, 1, \dots, k-2, and thus 2n12^n - 1 divides (3c)2+9(3c)^2 + 9. \square

Solution 2

We claim that, if 2n12^n - 1 divides m2+9m^2 + 9 for some mNm \in \mathbb{N}, then nn must be a power of 2. Suppose otherwise that nn has an odd divisor d>1d > 1. Then 2d12n12^d - 1 \mid 2^n - 1 is also a divisor of m2+9=m2+32m^2 + 9 = m^2 + 3^2. However, 2d12^d - 1 has some prime divisor pp of the form 4k14k-1, and by a well-known pp divides both mm and 3. Hence p=3p=3 divides 2d12^d - 1, which is impossible because, for dd odd, 2d2(mod3)2^d \equiv 2 \pmod 3. Hence n=2rn = 2^r for some rNr \in \mathbb{N}.
Now let n=2rn = 2^r. We prove the existence of mm by induction on rr. The case r=1r=1 is trivial. Now for any r>1r > 1 note that
22r1=(22r11)(22r1+1) 2^{2r} - 1 = (2^{2^{r-1}} - 1)(2^{2^{r-1}} + 1)
The induction hypothesis claims that there exists an m1m_1 such that 22r11m12+92^{2^{r-1}} - 1 \mid m_1^2 + 9. We also observe that 22r1+1m22+92^{2^{r-1}} + 1 \mid m_2^2 + 9 for simple m2=322r2m_2 = 3 \cdot 2^{2^{r-2}}. By the Chinese remainder theorem, there is an mNm \in \mathbb{N} that satisfies mm1(mod22r11)m \equiv m_1 \pmod{2^{2^{r-1}} - 1} and mm2(mod22r1+1)m \equiv m_2 \pmod{2^{2^{r-1}} + 1}. It is easy to see that this m2+9m^2 + 9 will be divisible by both 22r112^{2^{r-1}} - 1 and 22r1+12^{2^{r-1}} + 1.
This completes the induction. \square

Looking for a route rather than 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.