Maths Olympiad Prep

Library / India — Team Selection Test /73 of 77

India — Team Selection Test

Number theory Difficulty 8.4 Shortlist Prove it India

* a2n−aa^{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.

Solutions — 2

Solution 1

Let nn be a positive integer. Call a positive integer aa good for nn if n∣a2n−an \mid a^{2n} - a.
Define dn(a)=dd_n(a) = d to be the smallest positive integer such that n∣a2d−an \mid a^{2d} - a. Then a2d+k≡a2k(modn)a^{2d+k} \equiv a^{2k} \pmod{n} holds for k≥0  ⟹  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 d∣nd \mid n. So d∣n∣a2d−a  ⟹  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,j≤ni, j \le n such that a2i+i≡a2j+j(modn)a^{2i} + i \equiv a^{2j} + j \pmod{n}. Let d=dn(a)d = d_n(a). Then d∣nd \mid n, d<nd < n and aa is good for dd as well. So a2i+i≡a2j+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, i≡j(modd)i \equiv j \pmod{d}.
But then a2i≡a2j(modn)  ⟹  i≡j(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 t∈Nt \in \mathbb{N}.
Proof. n∣a2n−a∣at⋅2n−atn \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 0≤i≤20240 \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=1na2k≡0(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 m≤2024m \le 2024. Then by Lemma A1,
∑k=1n(a2k+k)m+1≡∑k=1nkm+1(modn)  ⟹  ∑i=0m(m+1i)∑k=1nkia(m+1−i)2k≡0(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+1−i)2k \sum_{k=1}^{n} k^i a^{(m+1-i)2k}
for 0≤i≤m−10 \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+1≤2025m+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
n∣∑k=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 p∤mp \nmid m. Then for any integer i≥1i \ge 1, if pi∣a2m⋅pi−ap^i \mid a^{2^{m \cdot p^i}} - a then for any ≤α≤2024\le \alpha \le 2024,
pi∣∑k=1m⋅pikα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 n∣a2n−an \mid a^{2^n} - a then n∣∑k=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=2⋅10122024 = 2 \cdot 1012 and 2025=4522025 = 45^2 are not primes.
Thus, we just prove Claim B1!
Proof of Claim B1.
Lemma B1. If pi∣a2m⋅pi−ap^i \mid a^{2^{m \cdot p^i}} - a then pi∣a2m⋅pi−1−ap^i \mid a^{2^{m \cdot p^{i-1}}} - a.
Lemma B2. If t∈Nt \in \mathbb{N} and t<p−1t < p-1 then
p∣1t+2t+⋯+(p−1)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=1m⋅pkαa2k≡∑k=1m∑j=0p−1a2k+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=0p−1(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=0p−1jt))(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<p−10 < t \le \alpha \le 2024 < p-1, by Lemma B2,
p∣0t+1t+2t+⋯+(p−1)t p \mid 0^t + 1^t + 2^t + \dots + (p-1)^t
Now, for the induction step i+1>1i+1 > 1:
∑k=1m⋅pi+1kαa2k≡∑k=1mpi∑j=0p−1a2k+pimj(k+pimj)α(mod pi+1)≡∑k=1mpia2k(∑j=0p−1(k+pimj)α)(mod pi+1)≡∑k=1mpia2k(pkα+αpim(∑j=1p−1j))(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 pi∣∑k=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,⋯ ,p−1}\{1, \cdots, p-1\} such that ct−1≢0(modp)c^t - 1 \not\equiv 0 \pmod{p}. This exists since xt−1x^t - 1 can only have t<p−1t < p-1 roots (mod pp).
Then,
∑j=1p−1jt≡∑j=1p−1(cj)t≡ct∑j=1p−1jt  ⟹  (ct−1)(∑j=1p−1jt)≡0(modp)  ⟹  ∑j=1p−1jt≡0(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=0tjt≡∑j=1p−2gjt≡g(p−1)t−1gt−1≡0(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 gt≠0g^t \neq 0 and g(p−1)t≡1(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,…,p−1}\{0, 1, 2, \dots, p-1\} and {0,g,2g,…,(p−1)g}\{0, g, 2g, \dots, (p-1)g\} and compare the sum of ttht^{th} powers) □\square

Proof of Lemma B1.
Lemma B3. If k∣ab−1k|a^b - 1 then k∣ac−1k|a^c - 1 then k∣agcd⁡(b,c)−1k|a^{\gcd(b,c)} - 1.
Proof. This follows since, if we let 0<d0 < d be the lowest number such that k∣ad−1k|a^d - 1 then, we if b=dq+rb = dq + r then k∣adqar−1  ⟹  k∣ar−1k | a^{dq}a^r - 1 \implies k | a^r - 1 but r<dr < d. Thus, r=0r = 0 and d∣bd|b. Similarly, d∣cd|c. Now, d∣gcd⁡(b,c)d|\gcd(b,c) so (ad)gcd⁡(b,c)/d−1≡1(modk)(a^d)^{\gcd(b,c)/d} - 1 \equiv 1 \pmod{k}. □\square

In particular, this means that if k∣ab−1k|a^b - 1 then gcd⁡(a,k)=1\gcd(a, k) = 1, so k∣agcd⁡(b,ϕ(k))−1k|a^{\gcd(b, \phi(k))} - 1 since k∣aϕ(k)−1k|a^{\phi(k)} - 1.
Applying this to our problem, if pi∣a2mpi−ap^i \mid a^{2^{mp^i}} - a and p∣ap \mid a then we have that pi∣ap^i \mid a so p∣a2mpi−1−ap \mid a^{2^{mp^i-1}} - a.
And now if, gcd⁡(a,p)=1\gcd(a, p) = 1 then we have that
pi∣a2mpi−1−1  ⟹  pi∣agcd⁡(2mpi−1,(p−1)pi−1)−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⁡(p−1,2mpi−1)=gcd⁡(p−1,2gcd⁡(mpi),ϕ(p−1)−1)=gcd⁡(p−1,2gcd⁡(m),ϕ(p−1)−1)=gcd⁡(p−1,2mpi−1−1) \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 p∣2mpi−1p|2^{mp^i} - 1, then p∣2m−1p \mid 2^m - 1. Thus, νp(2mpi−1)=i+νp(2m−1)\nu_p(2^{mp^i} - 1) = i + \nu_p(2^m - 1). Thus, if p∣2m−1p|2^m - 1, then pi∣2mpi−1−1p^i \mid 2^{mp^{i-1}} - 1. If p∤2m−1p \nmid 2^m - 1, then p∤2mpi−1−1p \nmid 2^{mp^{i-1}} - 1. Thus, gcd⁡(pi−1,2mpi)=gcd⁡(pi−1,2mpi−1)\gcd(p^{i-1}, 2^{mp^i}) = \gcd(p^{i-1}, 2^{mp^{i-1}}). Thus,
gcd⁡(2mpi−1,(p−1)pi−1)=gcd⁡(2mpi−1−1,(p−1)pi−1) \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 pi∣a2mpi−1−1−1  ⟹  pi∣a2mpi−1−ap^i \mid a^{2^{mp^{i-1}} - 1} - 1 \implies p^i \mid a^{2^{mp^{i-1}}} - a 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.