So, coming off of this question, I know how to find out what the remainder is, so after figuring whether the remainder is $1$ or $5$, would I just plug in $p = 6q + (1\ \text{or}\ 5)$ into $p^2+1$?
As in, making it $(6q+1)^2+1$ or $(6q+5)^2+1$?
So, coming off of this question, I know how to find out what the remainder is, so after figuring whether the remainder is $1$ or $5$, would I just plug in $p = 6q + (1\ \text{or}\ 5)$ into $p^2+1$?
As in, making it $(6q+1)^2+1$ or $(6q+5)^2+1$?