Olympiad Maths Prep

Track / Stage 6 / 331 of 400 #1331 of 2000

Problem 1331

National olympiad, first round
Number theory Difficulty 6.7 Find the answer

For an integer kk let TkT_k denote the number of kk-tuples of integers (x1,x2,...xk)(x_1,x_2,...x_k) with 0xi<730\le x_i < 73 for each ii, such that 73x12+x22+...+xk2173|x_1^2+x_2^2+...+x_k^2-1. Compute the remainder when T1+T2+...+T2017T_1+T_2+...+T_{2017} is divided by 20172017.

[i]Proposed by Vincent Huang

Official solution

To solve the problem, we need to compute the number of kk-tuples (x1,x2,,xk)(x_1, x_2, \ldots, x_k) such that 0xi<730 \le x_i < 73 for each ii and 73x12+x22++xk2173 \mid x_1^2 + x_2^2 + \cdots + x_k^2 - 1. We denote this number by TkT_k. We then need to find the remainder when T1+T2++T2017T_1 + T_2 + \cdots + T_{2017} is divided by 2017.

1. **Counting the number of solutions TkT_k:**
We start by considering the function f(x1,,xk)=x12+x22++xk21f(x_1, \ldots, x_k) = x_1^2 + x_2^2 + \cdots + x_k^2 - 1. We need to count the number of solutions (x1,,xk)(x_1, \ldots, x_k) in Z/73Zk\mathbb{Z}/73\mathbb{Z}^k that satisfy f(x1,,xk)0(mod73)f(x_1, \ldots, x_k) \equiv 0 \pmod{73}.

2. Using the roots of unity filter:
Let ζ=e2πi/73\zeta = e^{2\pi i / 73} be a primitive 73rd root of unity. The number of solutions NN can be expressed using the roots of unity filter:
73N=x1,,xkj=072ζjf(x1,,xk). 73 \cdot N = \sum_{x_1, \ldots, x_k} \sum_{j=0}^{72} \zeta^{j f(x_1, \ldots, x_k)}.
This simplifies to:
73k+j=172x1,,xkζj(x12+x22++xk21). 73^k + \sum_{j=1}^{72} \sum_{x_1, \ldots, x_k} \zeta^{j (x_1^2 + x_2^2 + \cdots + x_k^2 - 1)}.

3. Simplifying the inner sum:
x1,,xkζj(x12+x22++xk21)=ζj(x1ζjx12)(x2ζjx22)(xkζjxk2). \sum_{x_1, \ldots, x_k} \zeta^{j (x_1^2 + x_2^2 + \cdots + x_k^2 - 1)} = \zeta^{-j} \left( \sum_{x_1} \zeta^{j x_1^2} \right) \left( \sum_{x_2} \zeta^{j x_2^2} \right) \cdots \left( \sum_{x_k} \zeta^{j x_k^2} \right).
Each sum xiζjxi2\sum_{x_i} \zeta^{j x_i^2} is a Gauss sum G(j)G(j).

4. Properties of Gauss sums:
The Gauss sum G(j)G(j) is defined as:
G(j)=x=072ζjx2. G(j) = \sum_{x=0}^{72} \zeta^{j x^2}.
If j0j \neq 0, G(j)=(j73)GG(j) = \left( \frac{j}{73} \right) G, where G=G(1)G = G(1) and (j73)\left( \frac{j}{73} \right) is the Legendre symbol. For j=0j = 0, G(0)=73G(0) = 73.

5. Combining the results:
N=73k1+173j=172ζjG(j)k. N = 73^{k-1} + \frac{1}{73} \sum_{j=1}^{72} \zeta^{-j} G(j)^k.
Using the properties of Gauss sums, we get:
G(j)k=(j73)kGk. G(j)^k = \left( \frac{j}{73} \right)^k G^k.
For even kk, the sum j=172ζj(j73)k\sum_{j=1}^{72} \zeta^{-j} \left( \frac{j}{73} \right)^k evaluates to 1-1 if 73173 \nmid 1, and for odd kk, it evaluates to GG.

6. **Final expressions for TkT_k:**
For even kk:
Tk=73k173k22(1)k/2. T_k = 73^{k-1} - 73^{\frac{k-2}{2}} (-1)^{k/2}.
For odd kk:
Tk=73k1+73k12. T_k = 73^{k-1} + 73^{\frac{k-1}{2}}.

7. **Summing T1+T2++T2017T_1 + T_2 + \cdots + T_{2017}:**
We need to compute the sum of these expressions for kk from 1 to 2017 and find the remainder when divided by 2017.

k=12017Tk=odd k(73k1+73k12)+even k(73k173k22(1)k/2). \sum_{k=1}^{2017} T_k = \sum_{\text{odd } k} \left( 73^{k-1} + 73^{\frac{k-1}{2}} \right) + \sum_{\text{even } k} \left( 73^{k-1} - 73^{\frac{k-2}{2}} (-1)^{k/2} \right).

8. Modulo 2017:
Since 2017 is a prime number, we can use properties of modular arithmetic to simplify the sum. We need to compute the sum modulo 2017.

The final answer is 0\boxed{0}

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.