Question 14For each prime number $p$, determine the number of residue classes modulo $p$ which can be represented as $a^2 + b^2$ modulo $p$, where $a$ and $b$ are arbitrary integers.