Maths Olympiad Prep

Track / Stage 8 / 37 of 180 #1737 of 1964

Problem 1737

IMO Shortlist mid-range; USAMO P2/P5
Number theory Difficulty 8.1 Prove it

Let S S be a set of all positive integers which can be represented as a2\plus5b2 a^2 \plus{} 5b^2 for some integers a,b a,b such that ab a\bot b. Let p p be a prime number such that p\equal4n\plus3 p \equal{} 4n \plus{} 3 for some integer n n. Show that if for some positive integer k k the number kp kp is in S S, then 2p 2p is in S S as well.

Here, the notation ab a\bot b means that the integers a a and b b are coprime.

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.

Official solution

1. Given Conditions and Initial Setup:
- We are given a set S S of all positive integers that can be represented as a2+5b2 a^2 + 5b^2 for some integers a a and b b such that ab a \perp b (i.e., gcd(a,b)=1 \gcd(a, b) = 1 ).
- We need to show that if kpS kp \in S for some positive integer k k and a prime p3(mod4) p \equiv 3 \pmod{4} , then 2pS 2p \in S .

2. Existence of Solutions:
- Since kpS kp \in S , there exist integers a a and b b such that kp=a2+5b2 kp = a^2 + 5b^2 and gcd(a,b)=1 \gcd(a, b) = 1 .
- We need to show that 2p 2p can also be written in the form x2+5y2 x^2 + 5y^2 for some integers x x and y y with gcd(x,y)=1 \gcd(x, y) = 1 .

3. Properties of Quadratic Residues:
- Since p3(mod4) p \equiv 3 \pmod{4} , we know that 1 -1 is not a quadratic residue modulo p p . However, we need to consider the quadratic residue properties of 5 -5 modulo p p .
- If kp=a2+5b2 kp = a^2 + 5b^2 , then a25b2(modp) a^2 \equiv -5b^2 \pmod{p} . This implies that 5 -5 is a quadratic residue modulo p p .

4. **Constructing the Set A A :**
- Let m=p m = \lfloor \sqrt{p} \rfloor .
- Consider the set A={x+ayx,y=0,1,,m} A = \{ x + ay \mid x, y = 0, 1, \ldots, m \} .
- The size of A A is (m+1)2 (m+1)^2 , which is greater than p p since (m+1)2>p (m+1)^2 > p .

5. Pigeonhole Principle:
- By the Pigeonhole Principle, there exist distinct pairs (x1,y1) (x_1, y_1) and (x2,y2) (x_2, y_2) such that x1+ay1x2+ay2(modp) x_1 + ay_1 \equiv x_2 + ay_2 \pmod{p} .
- This implies x1x2a(y2y1)(modp) x_1 - x_2 \equiv a(y_2 - y_1) \pmod{p} .

6. Forming New Solutions:
- Let x=x1x2 x = |x_1 - x_2| and y=y1y2 y = |y_1 - y_2| . Then px2+5y2 p \mid x^2 + 5y^2 .
- Since 0<x2+5y2<6p 0 < x^2 + 5y^2 < 6p , we have x2+5y2{p,2p,3p,4p,5p} x^2 + 5y^2 \in \{p, 2p, 3p, 4p, 5p\} .

7. Eliminating Impossible Cases:
- Since p3(mod4) p \equiv 3 \pmod{4} , p p cannot be written as x2+5y2 x^2 + 5y^2 because p3(mod4) p \equiv 3 \pmod{4} implies p1(mod4) p \equiv 1 \pmod{4} if it were of the form x2+5y2 x^2 + 5y^2 .
- Similarly, 4p 4p and 5p 5p cannot be written as x2+5y2 x^2 + 5y^2 because 4p0(mod4) 4p \equiv 0 \pmod{4} and 5p1(mod4) 5p \equiv 1 \pmod{4} .

8. Possible Cases:
- Therefore, x2+5y2 x^2 + 5y^2 must be either 2p 2p or 3p 3p .

9. Case Analysis:
- If x2+5y2=2p x^2 + 5y^2 = 2p , we are done.
- If x2+5y2=3p x^2 + 5y^2 = 3p , we need to show that 2p 2p can still be written in the form x2+5y2 x^2 + 5y^2 .

10. **Detailed Case Analysis for x2+5y2=3p x^2 + 5y^2 = 3p :**
- Consider the congruence conditions modulo 3:
- x1(mod3) x \equiv 1 \pmod{3} and y1(mod3) y \equiv 1 \pmod{3}
- x1(mod3) x \equiv 1 \pmod{3} and y1(mod3) y \equiv -1 \pmod{3}
- x1(mod3) x \equiv -1 \pmod{3} and y1(mod3) y \equiv 1 \pmod{3}
- x1(mod3) x \equiv -1 \pmod{3} and y1(mod3) y \equiv -1 \pmod{3}
- For each case, we can find integers k k and l l such that:
- x=3k+1 x = 3k + 1 or x=3k1 x = 3k - 1
- y=3l+1 y = 3l + 1 or y=3l1 y = 3l - 1
- Substituting these into x2+5y2=3p x^2 + 5y^2 = 3p and simplifying, we can show that 2p 2p can be written as x2+5y2 x^2 + 5y^2 .

11. Conclusion:
- Therefore, we have shown that if kpS kp \in S , then 2pS 2p \in S as well.

\blacksquare

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