Olympiad Maths Prep

Track / Stage 8 / 121 of 180 #1821 of 2000

Problem 1821

IMO Shortlist mid-range; USAMO P2/P5
Number theory Difficulty 8.4 Prove it IMO TST · India

* a2naa^{2n} - a is divisible by nn,
* k=1nk2024a2k\sum_{k=1}^{n} k^{2024} a^{2k} is not divisible by nn.
Prove that nn has a prime factor *smaller* than 20242024.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solutions — 2

Solution 1

Let nn be a positive integer. Call a positive integer aa *good* for nn if na2nan \mid a^{2n} - a.
Define dn(a)=dd_n(a) = d to be the smallest positive integer such that na2dan \mid a^{2d} - a. Then a2d+ka2k(modn)a^{2d+k} \equiv a^{2k} \pmod{n} holds for k0    a2i(modn)k \ge 0 \implies a^{2i} \pmod{n} is periodic with period dd. The minimality of dd implies that it is in fact the smallest period. Therefore dnd \mid n. So dna2da    ad \mid n \mid a^{2d} - a \implies a is *good* for dd as well.
Assume n>1n > 1. If gcd(a,n)>1\gcd(a, n) > 1, then the sequence a2i(modn)a^{2i} \pmod{n} for i=1,2,,ni = 1, 2, \dots, n does not contain any residues relatively prime to nn. Else the sequence doesn't contain the residue 00. In any case the sequence cannot contain all distinct elements, so dn(a)<nd_n(a) < n.

Lemma A1. If aa is *good* for nn, then the numbers a2i+ia^{2i} + i for i=1,,ni = 1, \dots, n form a complete residue system modulo nn.
*Proof.* We will prove this by induction on nn. Base case n=1n = 1 is true since there's only one number. Consider n>1n > 1 for the induction step. Assume for the sake of contradiction that there exist distinct i,jni, j \le n such that a2i+ia2j+j(modn)a^{2i} + i \equiv a^{2j} + j \pmod{n}. Let d=dn(a)d = d_n(a). Then dnd \mid n, d<nd < n and aa is *good* for dd as well. So a2i+ia2j+j(modd)a^{2i} + i \equiv a^{2j} + j \pmod{d}. Note that, since aa is *good* for dd, reducing i,ji, j modulo dd does not change the values of a2i+i(modd)a^{2i} + i \pmod{d} and a2j+j(modd)a^{2j} + j \pmod{d}. Therefore, by induction hypothesis, ij(modd)i \equiv j \pmod{d}.
But then a2ia2j(modn)    ij(modn)a^{2i} \equiv a^{2j} \pmod{n} \implies i \equiv j \pmod{n}. Contradiction! Hence the numbers are pairwise distinct modulo nn, and so form a complete residue system. \square

Lemma A2. If aa is *good* for nn, then so is ata^t for every tNt \in \mathbb{N}.
*Proof.* na2naat2natn \mid a^{2n} - a \mid a^{t \cdot 2n} - a^t.

We return to the main problem. Clearly we must have n>1n > 1. Assume for the sake of contradiction that all the prime factors of nn are 2024\ge 2024. We will prove using induction on ii that
k=1nkia2k \sum_{k=1}^{n} k^i a^{2k}
is divisible by nn for any *good* aa and 0i20240 \le i \le 2024, which will give us the desired contradiction. For the base case, i=0i = 0. By Lemma A1,
k=1n(a2k+k)k=1nk(modn)    k=1na2k0(modn). \sum_{k=1}^{n} (a^{2k} + k) \equiv \sum_{k=1}^{n} k \pmod{n} \implies \sum_{k=1}^{n} a^{2k} \equiv 0 \pmod{n}.
Assume that the hypothesis holds for all i<mi < m for some m2024m \le 2024. Then by Lemma A1,
k=1n(a2k+k)m+1k=1nkm+1(modn)    i=0m(m+1i)k=1nkia(m+1i)2k0(modn). \sum_{k=1}^{n} (a^{2k} + k)^{m+1} \equiv \sum_{k=1}^{n} k^{m+1} \pmod{n} \implies \sum_{i=0}^{m} \binom{m+1}{i} \sum_{k=1}^{n} k^i a^{(m+1-i)2k} \equiv 0 \pmod{n}.
By Lemma A2 and induction hypothesis, all the sums of the form
k=1nkia(m+1i)2k \sum_{k=1}^{n} k^i a^{(m+1-i)2k}
for 0im10 \le i \le m-1 are divisible by nn. Hence we get
n(m+1)k=1nkma2k n \mid (m+1) \sum_{k=1}^{n} k^m a^{2^k}
But m+12025m+1 \le 2025, and 2024,20252024, 2025 are not primes. So all prime factors of m+1m+1 are <2024< 2024 which implies gcd(n,m+1)=1\gcd(n, m+1) = 1. Therefore
nk=1nkma2k n \mid \sum_{k=1}^{n} k^m a^{2^k}
which completes the induction. \square

Solution 2

We begin by observing that proving the following claim is sufficient:
Claim B1. Let pp be any prime >2025> 2025. Now, let mm be an integer such that pmp \nmid m. Then for any integer i1i \ge 1, if pia2mpiap^i \mid a^{2^{m \cdot p^i}} - a then for any α2024\le \alpha \le 2024,
pik=1mpikαa2k p^i \mid \sum_{k=1}^{m \cdot p^i} k^\alpha a^{2^k}
Observe that if the above claim follows then, we have that if nn does not have any prime factors 2025\le 2025 and na2nan \mid a^{2^n} - a then nk=1nk2024a2nn \mid \sum_{k=1}^{n} k^{2024} a^{2^n} since the divisibility follows for all prime factors of nn from Claim 1. Thus, if nn satisfies the problem conditions then it must have a prime factor 2025\le 2025 i.e. some prime factor <2024< 2024 since 2024=210122024 = 2 \cdot 1012 and 2025=4522025 = 45^2 are not primes.
Thus, we just prove Claim B1!
*Proof of Claim B1.*
Lemma B1. If pia2mpiap^i \mid a^{2^{m \cdot p^i}} - a then pia2mpi1ap^i \mid a^{2^{m \cdot p^{i-1}}} - a.
Lemma B2. If tNt \in \mathbb{N} and t<p1t < p-1 then
p1t+2t++(p1)t p \mid 1^t + 2^t + \dots + (p-1)^t
We delay the proof of Lemma B1 and Lemma B2 to the end of the proof. Now, assuming above lemmas, observe that we can prove Claim B1 by induction on ii: We begin by proving the base case i=1i=1:
k=1mpkαa2kk=1mj=0p1a2k+mj(k+mj)α(modp) \sum_{k=1}^{m \cdot p} k^{\alpha} a^{2^k} \equiv \sum_{k=1}^{m} \sum_{j=0}^{p-1} a^{2^{k+mj}} (k+mj)^{\alpha} \pmod{p}
k=1ma2k(j=0p1(k+mj)α)(modp) \equiv \sum_{k=1}^{m} a^{2^k} \left( \sum_{j=0}^{p-1} (k+mj)^{\alpha} \right) \pmod{p}
k=1ma2k(pkα+t=1α(αt)kαtmt(j=0p1jt))(modp) \equiv \sum_{k=1}^{m} a^{2^k} \left( pk^{\alpha} + \sum_{t=1}^{\alpha} \binom{\alpha}{t} k^{\alpha-t} m^t \left( \sum_{j=0}^{p-1} j^t \right) \right) \pmod{p}
0(modp) \equiv 0 \pmod{p}
The last part follows since when 0<tα2024<p10 < t \le \alpha \le 2024 < p-1, by Lemma B2,
p0t+1t+2t++(p1)t p \mid 0^t + 1^t + 2^t + \dots + (p-1)^t
Now, for the induction step i+1>1i+1 > 1:
k=1mpi+1kαa2kk=1mpij=0p1a2k+pimj(k+pimj)α(mod pi+1)k=1mpia2k(j=0p1(k+pimj)α)(mod pi+1)k=1mpia2k(pkα+αpim(j=1p1j))(mod pi+1)p(k=1mpia2kkα)(mod pi+1)0(mod pi+1) \begin{align*} \sum_{k=1}^{m \cdot p^{i+1}} k^{\alpha} a^{2^k} &\equiv \sum_{k=1}^{mp^i} \sum_{j=0}^{p-1} a^{2^{k+p^i m j}} (k+p^i m j)^{\alpha} \quad (\text{mod } p^{i+1}) \\ &\equiv \sum_{k=1}^{mp^i} a^{2^k} \left( \sum_{j=0}^{p-1} (k+p^i m j)^{\alpha} \right) \quad (\text{mod } p^{i+1}) \\ &\equiv \sum_{k=1}^{mp^i} a^{2^k} \left( p k^{\alpha} + \alpha p^i m \left( \sum_{j=1}^{p-1} j \right) \right) \quad (\text{mod } p^{i+1}) \\ &\equiv p \left( \sum_{k=1}^{mp^i} a^{2^k} k^{\alpha} \right) \quad (\text{mod } p^{i+1}) \\ &\equiv 0 \quad (\text{mod } p^{i+1}) \end{align*}
The last step follows since inductively we have pik=1mpia2kkαp^i \mid \sum_{k=1}^{mp^i} a^{2^k} k^\alpha. Thus, we are done with the proof of Claim B1! \square

Now, we just prove Lemma B1 and B2.
*Proof of Lemma B2.* Let cc be any number from {1,,p1}\{1, \cdots, p-1\} such that ct1≢0(modp)c^t - 1 \not\equiv 0 \pmod{p}. This exists since xt1x^t - 1 can only have t<p1t < p-1 roots (mod pp).
Then,
j=1p1jtj=1p1(cj)tctj=1p1jt    (ct1)(j=1p1jt)0(modp)    j=1p1jt0(modp) \sum_{j=1}^{p-1} j^t \equiv \sum_{j=1}^{p-1} (cj)^t \equiv c^t \sum_{j=1}^{p-1} j^t \implies (c^t - 1) \left( \sum_{j=1}^{p-1} j^t \right) \equiv 0 \pmod{p} \implies \sum_{j=1}^{p-1} j^t \equiv 0 \pmod{p}
Alternately, lemma B2 is often proved by letting gg be a primitive root (mod pp), then
j=0tjtj=1p2gjtg(p1)t1gt10(modp) \sum_{j=0}^{t} j^t \equiv \sum_{j=1}^{p-2} g^{jt} \equiv \frac{g^{(p-1)t} - 1}{g^t - 1} \equiv 0 \pmod{p}
This follows since gt0g^t \neq 0 and g(p1)t1(modp)g^{(p-1)t} \equiv 1 \pmod{p} by Fermat's little theorem. (Another alternative is to consider the complete residue systems {0,1,2,,p1}\{0, 1, 2, \dots, p-1\} and {0,g,2g,,(p1)g}\{0, g, 2g, \dots, (p-1)g\} and compare the sum of ttht^{th} powers) \square

*Proof of Lemma B1.*
Lemma B3. If kab1k|a^b - 1 then kac1k|a^c - 1 then kagcd(b,c)1k|a^{\gcd(b,c)} - 1.
*Proof.* This follows since, if we let 0<d0 < d be the lowest number such that kad1k|a^d - 1 then, we if b=dq+rb = dq + r then kadqar1    kar1k | a^{dq}a^r - 1 \implies k | a^r - 1 but r<dr < d. Thus, r=0r = 0 and dbd|b. Similarly, dcd|c. Now, dgcd(b,c)d|\gcd(b,c) so (ad)gcd(b,c)/d11(modk)(a^d)^{\gcd(b,c)/d} - 1 \equiv 1 \pmod{k}. \square

In particular, this means that if kab1k|a^b - 1 then gcd(a,k)=1\gcd(a, k) = 1, so kagcd(b,ϕ(k))1k|a^{\gcd(b, \phi(k))} - 1 since kaϕ(k)1k|a^{\phi(k)} - 1.
Applying this to our problem, if pia2mpiap^i \mid a^{2^{mp^i}} - a and pap \mid a then we have that piap^i \mid a so pa2mpi1ap \mid a^{2^{mp^i-1}} - a.
And now if, gcd(a,p)=1\gcd(a, p) = 1 then we have that
pia2mpi11    piagcd(2mpi1,(p1)pi1)1 p^i \mid a^{2^{mp^i}-1} - 1 \implies p^i \mid a^{\gcd(2^{mp^i}-1, (p-1)p^{i-1})} - 1
Now, observe that
gcd(p1,2mpi1)=gcd(p1,2gcd(mpi),ϕ(p1)1)=gcd(p1,2gcd(m),ϕ(p1)1)=gcd(p1,2mpi11) \gcd(p-1, 2^{mp^i}-1) = \gcd(p-1, 2^{\gcd(mp^i), \phi(p-1)}-1) = \gcd(p-1, 2^{\gcd(m), \phi(p-1)}-1) = \gcd(p-1, 2^{mp^i-1}-1)
Also, if p2mpi1p|2^{mp^i} - 1, then p2m1p \mid 2^m - 1. Thus, νp(2mpi1)=i+νp(2m1)\nu_p(2^{mp^i} - 1) = i + \nu_p(2^m - 1). Thus, if p2m1p|2^m - 1, then pi2mpi11p^i \mid 2^{mp^{i-1}} - 1. If p2m1p \nmid 2^m - 1, then p2mpi11p \nmid 2^{mp^{i-1}} - 1. Thus, gcd(pi1,2mpi)=gcd(pi1,2mpi1)\gcd(p^{i-1}, 2^{mp^i}) = \gcd(p^{i-1}, 2^{mp^{i-1}}). Thus,
gcd(2mpi1,(p1)pi1)=gcd(2mpi11,(p1)pi1) \gcd(2^{mp^i} - 1, (p-1)p^{i-1}) = \gcd(2^{mp^{i-1}} - 1, (p-1)p^{i-1})
So, we get that pia2mpi111    pia2mpi1ap^i \mid a^{2^{mp^{i-1}} - 1} - 1 \implies p^i \mid a^{2^{mp^{i-1}}} - a as desired!

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