Maths Olympiad Prep

Track / Stage 4 / 283 of 340 #1183 of 2604

Problem 1183

AMC 12 late, AIME early
Number theory Difficulty 4.9 Prove it Croatian Mathematical Competitions · Croatia

Determine all primes pp for which there exist positive integers xx and yy such that
{p+1=2x2p2+1=2y2. \begin{cases} p + 1 = 2x^2 \\ p^2 + 1 = 2y^2. \end{cases}

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

Subtracting the given equations we get p(p−1)=2(y−x)(y+x)p(p-1) = 2(y-x)(y+x).
From this we conclude
p∣y+x, p \mid y + x,
because otherwise pp would be a divisor of y−xy - x, and p−1p - 1 would be a multiple of number y+xy + x, which is impossible (we would have p−1≥y+x>y−x≥pp - 1 \ge y + x > y - x \ge p then).
Since p>yp > y (from the second equation) and y>xy > x, we have 2p>y+x2p > y + x, therefore p=y+xp = y + x.
It follows that p−1=2(y−x)p - 1 = 2(y - x). By eliminating yy we get p+1=4xp + 1 = 4x. By plugging that in the first equation we easily get that the only solution is p=7p = 7 (x=2,y=5x = 2, y = 5).

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