$\forall n\in\mathbb{Z}$, find the $\gcd(n^2+1, (n+1)^2+1)$.
I think this is a simple exercise, but I get this:
$(n+1)^2+1=n^2+2n+2$.
$n^2+2n+2 = (n^2+1)+(2n+1)$
then $\gcd(n^2+1, (n+1)^2+1)=\gcd(n^2+1, 2n+1)$
and $\displaystyle n^2+1 = \frac{n(2n+1)}{2}+\left(-\frac{n}{2}+1\right)$
then $\gcd(n^2+1, 2n+1)=\gcd(2n+1, \frac{n}{2}-1)$.
But gcd is on integer numbers and $\dfrac{n}{2}-1$ is not always an integer number, so, I need some help?