Maths Olympiad Prep

Track / Stage 9 / 49 of 52 #1929 of 1964

Problem 1929

IMO P2/P5; hard shortlist
Number theory Difficulty 9.1 Prove it IMO Team Selection Tests · Vietnam · 2015

a) Find all positive integers kk with the property T(20)T(20), where a positive integer kk has the property T(m)T(m) if for any positive integer aa, there exists a positive integer nn such that
1k+2k++nka(modm). 1^k + 2^k + \dots + n^k \equiv a \pmod{m}.

b) Find the smallest positive integer kk with the property T(2015)T(20^{15}).

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

Let sk(n)=1k+2k++nks_k(n) = 1^k + 2^k + \dots + n^k. We rewrite the property T(m)T(m) as follows: a positive integer kk has the property T(m)T(m) if sk(n)s_k(n) covers the complete residue system modulo mm when nn is a positive integer.

a.
We note that if k>1k > 1 has the property T(20)T(20) then so does k+4k + 4. This fact follows from the property that nk+4nkn^{k+4} - n^k is divisible by 2020 for all nn, k>1k > 1. So, we only need to check the property T(20)T(20) for k=1,2,3,4,5k = 1, 2, 3, 4, 5. By direct computation, we have k=4k = 4 has the property T(20)T(20) while k=1,2,3,5k = 1, 2, 3, 5 do not. Therefore, the positive integer kk has the property T(20)T(20) if and only if kk is divisible by 44.

b.
From part a), k=1,2,3k = 1, 2, 3 do not have the property T(2015)T(20^{15}). We will show that k=4k = 4 has the property T(2015)T(20^{15}). It suffices to show that s4(n)s_4(n) covers the complete residue system modulo 201520^{15} when nn is a positive integer. Let S(n)=30s4(n)S(n) = 30s_4(n), we only need to show that for any integer aa, there exists an integer nn such that s4(n)a(mod2015)s_4(n) \equiv a \pmod{20^{15}}, or S(n)30a(mod30×2015=3×231×516)S(n) \equiv 30a \pmod{30 \times 20^{15} = 3 \times 2^{31} \times 5^{16}}. Since S(n)S(n) is an integer polynomial, S(n)a(modm)S(n) \equiv a \pmod{m} then S(n+km)a(modm)S(n+km) \equiv a \pmod{m} for all integer kk. It follows from the Chinese Remainder Theorem, we only need to show that for any aa, each of the following congruent equations has a solution
S(n)30a(mod3)S(n)30a(mod231)S(n)30a(mod516). \begin{align*} S(n) &\equiv 30a \pmod{3} \\ S(n) &\equiv 30a \pmod{2^{31}} \\ S(n) &\equiv 30a \pmod{5^{16}}. \end{align*}
For the first equation, it is clear that S(0)30a(mod3)S(0) \equiv 30a \pmod{3}.

Now we show that the second equation has a solution for any aa. We will prove by induction on rr that for any rr, the equation S(n)30a(mod2r)S(n) \equiv 30a \pmod{2^r} is solvable. When r=1r=1, one can take n=0n=0. Suppose that the statement holds for rr, that is, there exists n0n_0 such that S(n0)30a(mod2r)S(n_0) \equiv 30a \pmod{2^r}. We write n=n0+2rqn = n_0 + 2^r q, then
S(n)S(n0)2rq(mod2r+1). S(n) \equiv S(n_0) - 2^r q \pmod{2^{r+1}}.
It follows that if we take qr(mod2)q \equiv r \pmod 2 then S(n)30a(mod2r+1)S(n) \equiv 30a \pmod{2^{r+1}}. Hence, the statement holds for r+1r+1. By the induction principle, the statement holds for all rr. In other words, the second equation has an integer solution for any aa.

The solvability of the third equation can be done similarly. Therefore, the minimum value of kk having the property T(2015)T(20^{15}) is k=4k=4.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.