For any positive integer $n$, let $f(n) = 70 + n^2$ and $g(n)$ be the HCF of $f(n)$ and $f(n+1)$ find the highest possible value of $g(n)$.
This question is from HKIMO prelims 2006. I didn't quite understand what was happening when I went through the solution.
So far all I've gotten is:
$g(n) = (70+n^2, 70+(n+1)^2)$
$g(n) = (70+n^2, 2n+1)$
Not sure what to do from here -_-
Thank you!
$g(n)$ divides $2n+1$
Also divides $2(70+n^2)-n(2n+1)=140-n$
and consequently divides $2(140-n)+2n+1=?$