The question is already in the title.
Show that if $\gcd(a,b)=1$ then $\gcd(a^2+b^2,a+2ab)=1$ or $5$.
I saw yesterday this exercise in a book and I tried many things but I managed to show only that if some prime $p$ ($p$ must be $\equiv1\pmod{4}$)
divides $a^2+b^2$ and $a+2ab$ then $p\mid2b+1$ , $p\mid4a^2+1$ and $p\mid b-2a^2$ but all these seem pointless.
Am I missing something obvious here?
Isn't a=9, b=19 a counter example?