Päevaülesanne

Juhuslik

Harjutuskomplekt

Balti Tee 2017 · Ülesanne 20

Arvuteooria

Let SS be the set of all ordered pairs (a,b)(a, b) of integers with 0<2a<2b<20170<2 a<2 b<2017 such that a2+b2a^{2}+b^{2} is a multiple of 2017. Prove that

∑(a,b)∈Sa=12∑(a,b)∈Sb\sum_{(a, b) \in S} a=\frac{1}{2} \sum_{(a, b) \in S} b
Muuda valikut

Kui oled valmis

Ülevaatematerjal muutub kättesaadavaks järgmise päevaülesannete komplektiga.

Ülevaade

Teemad

Diofantilised võrrandid

Lahendused

Lahendus

Let A={a:(a,b)∈S}A=\{a:(a, b) \in S\} and B={b:(a,b)∈S}B=\{b:(a, b) \in S\}. The claim is equivalent to

2∑a∈Aa=∑b∈Bb2 \sum_{a \in A} a=\sum_{b \in B} b

Assume that for some x,y,z∈{1,2,…,1008}x, y, z \in\{1,2, \ldots, 1008\} both, x2+y2x^{2}+y^{2} and x2+z2x^{2}+z^{2}, are multiples of 2017. By

(x2+y2)−(x2+z2)=y2−z2=(y+z)(y−z)≡0( mod 2017),\left(x^{2}+y^{2}\right)-\left(x^{2}+z^{2}\right)=y^{2}-z^{2}=(y+z)(y-z) \equiv 0(\bmod 2017),

0<y+z<20170<y+z<2017 and the fact that 2017 is a prime number, it follows that y=zy=z. Hence, AA and BB are disjoint, and there is a bijection f:A↦Bf: A \mapsto B such that for any a∈Aa \in A and b∈Bb \in B the pair (a,b)(a, b) is in SS if and only if b=f(a)b=f(a).

We show that the mapping gg defined by g(a)=f(a)−ag(a)=f(a)-a for a∈Aa \in A is a bijection from AA to AA. Then (2) follows by

∑a∈Aa=∑a∈Ag(a)=∑a∈Af(a)−∑a∈Aa=∑b∈Bb−∑a∈Aa\sum_{a \in A} a=\sum_{a \in A} g(a)=\sum_{a \in A} f(a)-\sum_{a \in A} a=\sum_{b \in B} b-\sum_{a \in A} a

Let a∈Aa \in A, and let h(a)=min⁡{a+f(a),2017−(a+f(a))}h(a)=\min \{a+f(a), 2017-(a+f(a))\}. Then 0<2h(a)<20170<2 h(a)<2017 and, by the definition of g,0<2g(a)<g, 0<2 g(a)< 2017. Furthermore,

g(a)2+h(a)2≡(a−f(a))2+(a+f(a))2≡2(a2+f(a)2)≡0( mod 2017).g(a)^{2}+h(a)^{2} \equiv(a-f(a))^{2}+(a+f(a))^{2} \equiv 2\left(a^{2}+f(a)^{2}\right) \equiv 0(\bmod 2017) .

If a+f(a)≤1008a+f(a) \leq 1008, then g(a)=f(a)−a<f(a)+a=h(a)g(a)=f(a)-a<f(a)+a=h(a). If a+f(a)>1008a+f(a)>1008, then g(a)=f(a)−a<(f(a)−a)+(2017−2f(a))=g(a)=f(a)-a<(f(a)-a)+(2017-2 f(a))= 2017−(a+f(a))=h(a)2017-(a+f(a))=h(a). Consequently, g(a)∈Ag(a) \in A with f(g(a))=h(a)f(g(a))=h(a).

It remains to show that gg is injective. Assume that g(a1)=g(a2)g\left(a_{1}\right)=g\left(a_{2}\right) for some a1,a2∈Aa_{1}, a_{2} \in A, i.e.,

b1−a1=b2−a2,b_{1}-a_{1}=b_{2}-a_{2},

where bi=f(ai)b_{i}=f\left(a_{i}\right) for i=1,2i=1,2. Clearly, we also have h(a1)=h(a2)h\left(a_{1}\right)=h\left(a_{2}\right) then. If h(a1)=a1+b1h\left(a_{1}\right)=a_{1}+b_{1} and h(a2)=a2+b2h\left(a_{2}\right)=a_{2}+b_{2}, then subtracting (3) from a1+b1=a2+b2a_{1}+b_{1}=a_{2}+b_{2} gives a1=a2a_{1}=a_{2}. Similarly, if h1(a1)=2017−(a1+b1)h_{1}\left(a_{1}\right)=2017-\left(a_{1}+b_{1}\right) and h2=2017−(a2+b2)h_{2}=2017-\left(a_{2}+b_{2}\right), then we obtain a1=a2a_{1}=a_{2}. Finally, if h(a1)=a1+b1h\left(a_{1}\right)=a_{1}+b_{1} and h2=2017−(a2+b2)h_{2}=2017-\left(a_{2}+b_{2}\right), then 2(a1+b2)=20172\left(a_{1}+b_{2}\right)=2017, a contradiction.

Remark: The proof as given above obviously works for any prime congruent to 1 modulo 4 in the place of 2017. With a little more effort, one can show that the statement is true for any positive odd nn (vacuously, if nn has a prime factor congruent to 3 modulo 4).

Võistluse kontekst

Balti Tee tulemused 2017

11 võistkonda

Keskmine tulemus
0,6 / 5
4 või 5 punkti
1 / 11
Eesti
0 / 5

Punktijaotus

08
12
20
30
40
51
Kõigi võistkondade punktid
VõistkondPunktid
St. Petersburg1 / 5
Germany0 / 5
Poland0 / 5
Denmark5 / 5
Estonia0 / 5
Lithuania0 / 5
Sweden0 / 5
Norway1 / 5
Finland0 / 5
Iceland0 / 5
Latvia0 / 5