Let $p \geq 7$ be a prime number and $$S = \bigg\{jp+1 : 1 \leq j \leq \frac{p-5}{2}\bigg\}.$$Prove that at least one element of $S$ can be written as $x^2+y^2$, where $x, y$ are integers.
Problem
Source: 2019 Brazil Ibero TST P4
Tags: number theory, prime numbers, Sets, Sum of Squares
28.09.2024 01:26
Remark: This reminded me immediately of Iran Third Round 2015 P5: https://artofproblemsolving.com/community/c6h1139099p31447239
05.11.2024 19:28
Headsolved with erkosfobiladol. e have $(\pm \frac{3}{5})^2+(\pm \frac{4}{5})^2\equiv 1(mod \ p)$. Choose $a\equiv \pm \frac{3}{5},b\equiv \pm \frac{4}{5}(mod \ p)$ such that $a,b\leq \frac{p-1}{2}$. Since $\frac{(p-1)^2}{4}+\frac{(p-1)^2}{4}\equiv \frac{1}{2}(mod \ p)$ and $\frac{(p-1)^2}{4}+\frac{(p-3)^2}{4}\equiv \frac{5}{2}(mod \ p)$, we see that $a^2+b^2\leq \frac{(p-1)^2}{4}+\frac{(p-5)^2}{4}=\frac{p^2-6p+13}{2}<\frac{p(p-5)}{2}$ hence the number $a^2+b^2$ holds the conditions for $p\geq 13$. For $p=7,11$, pick $8,34$.$\blacksquare$