Given are integers $a, b, c$ and an odd prime $p.$ Prove that $p$ divides $x^2 + y^2 + ax + by + c$ for some integers $x$ and $y.$ (A. Golovanov )
Problem
Source: Tuymaada 2022 Junior P-2
Tags: number theory, polynomial
12.09.2022 11:49
By completing the square mod $p$ (using that $p$ is odd), we may assume that $a=b=0$ so that we want $p \mid x^2+y^2+c$. Write this as $x^2 \equiv -y^2-c$ and note that both sides take $\frac{p+1}{2}$ different values modulo $p$ (by the count of quadratic residues) so that we are done by the Pigeonhole Principle.
31.01.2023 14:45
You can't just assume $a=b=0$. $a$ and $b$ are given integers
31.01.2023 18:45
Bexultan wrote: You can't just assume $a=b=0$. $a$ and $b$ are given integers Huh? Did you even read my post? Of course $a$ and $b$ are given but we can always replace $x$ with $x+\frac{a}{2}$ and hence w.l.o.g. assume that $a=b=0$ (i.e. we reduce the case of general $a,b$ to the special case $a=b=0$).
01.02.2023 03:04
Doesn’t that only work if $a/2$ is an integer?
01.02.2023 09:24
FFAmplify wrote: Doesn’t that only work if $a/2$ is an integer? $a \cdot 2^{-1} (2 \cdot 2^{-1} \equiv 1 \pmod p)$
01.02.2023 11:14
FFAmplify wrote: Doesn’t that only work if $a/2$ is an integer? This is a valid point, but this is exactly why I mentioned that $p$ is odd at that point since this allows us to divide by $2$ modulo $p$. In more concrete terms, if $a$ is even you can use $\frac{a}{2}$ and if $a$ is odd you can use $\frac{a+p}{2}$.