I was solving this question, and I'm hitting a wall.
$a_n=20+n^2\;\;\forall n\in\Bbb N,\quad d_n=\gcd(a_n,a_{n+1})$. Find with proof all values taken by $d_n$, and show by example when these values are achieved.
Here is my progress:
$\begin{align}d_n&=\gcd(a_n,a_{n+1})\\&=\gcd{(n^2+20,n^2+2n+21)}\\&=\gcd(n^2+20,2n+1)\\\end{align}$
I hesitate to multiply $2n+1$ by $n$, as if $n|20$ then it would increase the $\gcd$ by a factor of $n$.
How do I go further? Can anyone help me?
If $d=(a_n,a_{n+1})$
$d$ must divide $$a_{n+1}-a_n=2n+1$$
$d$ must divide $$2(20+n^2)-n(2n+1)=40-n$$
$d$ must divide $$2n+1+2(40-n)=81$$