I am learning how to use modular arithmetic and am struggling. I approached the problem by letting $x=19k+r$ and then showing we cannot factor out 19 when considering all the remainders. What is a more efficient solution using modular arithmetic?
Show that $x^2+1$ is not divisible by 19 using modular arithmetic
573 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail AtThere are 4 best solutions below
On
This is the same as proving that $-1\equiv x^2\mod 19$ has no solutions. So, you want to prove that $-1$ is not quadratic residue mod $19$ one way is just to check that $0^2,1^2,2^2,\dots,18^2$ are not congruent to $-1\bmod 19$. But this is long and not efficient.
If you know about theory of characters, to be more precise, the Legendre symbol. Then, one of the properties is that $\left(\frac{-1}{19}\right)=(-1)^{(19-1)/2}=-1$. The Legendre symbol $\left(\frac{-1}{19}\right)$ being equal to $-1$ means that $-1$ is a quadratic non-residue, so we are done.
Edit: So, just to show you the power of Legendre symbols: If the problem were mod a big prime like $523$, then again, since $\left(\frac{-1}{523}\right)=(-1)^{(523-1)/2}=(-1)^{261}=-1$, we have that $-1$ is not a quadratic residue mod $523$, which implies that $x^2+1$ is never divisible by $523$.
As you can see the solvability of the equation $x^2+1\equiv 0\mod p$ just reduces to know if the prime $p$ satisfies $p\equiv 1\mod 4$ or $p\equiv 3\mod 4$
You want to show that $x^2\not \equiv -1 (mod19)$, for any $x \in \mathbb{Z}/19\mathbb{Z}$.
You have $x\equiv 0, \pm1, \pm2, \pm3, \pm4, \pm5, \pm6, \pm7, \pm8, \pm9 (mod19).$
Squaring, you get that $x^2 \equiv 0, 1, 4, 9, 16, 6, 17, 11, 7, 5 (mod19)$.
So, $-1$ is not a quadratic residue.
A more general/less tedious approach:
You can notice that $19$ is a prime that satisfies $19 \equiv 3 (mod4)$ and use the following proposition:
To prove this, notice that $p | x^2+y^2 \Rightarrow x^2 \equiv -y^2 (modp) (*)$.
Since $p \equiv 3 (mod4)$, you know that $\frac{p-1}{2}$ is an odd number. So, raising $(*)$ to the $(\frac{p-1}{2})^{th}$ power, you get that: $x^{p-1} \equiv -y^{p-1} (modp)$.
Now, using Fermat's Little Theorem, if $p\not| y$, you get that $x^{p-1} \equiv -1 (modp)$, which is impossible (by Fermat's Little Theorem).
So, $p|y$ and thus $p|x$.
In our case, you can apply this for $p=19$ and $y=1$ to conclude that $19|1$, which is obviously a contradiction.