I'm looking at lecture notes on quadratic residues, and it states:
Let's start with the multiplicative group $Z^*_p$ (...) if $x^2 = a \mod p$ then also $(x -p)^2 = a \mod p$".
It must be a mistake that it's called a group, right? We have here both addition and multiplication...
Also, after trying to solve a question on the topic, I've encountered a situation where it would be useful if I could solve for $s$ below, given $a,t,p$, and would like to justify the following transitions, but I'm now not sure whether these are valid:
$$ a = (sp+t)^2 \mod p^2$$ $$ a = s^2p^2+2spt+t^2 \mod p^2$$ $$ a -t^2 = 2spt \mod p^2$$ $$ 2^{-1}(a -t^2)(pt)^{-1} = s \mod p^2$$
Am I right in both cases? To clarify - If I assume this is a ring, then I think I can justify the transitions up to the last one, using ring operation definitions, but since I haven't yet formally learned about rings, I'm uncertain whether that $2^{-1}$ is valid, since it came from the addition of two elements.
Thanks for any help.