In Gaussian integers ring $\mathbb{Z}[i]$, I wanna get a greatest common divisor of $16+7i$ and $10-5i$ using the Euclidean algorithm.
I used an Euclidean norm $N$ as $N(a+bi) = a^2+b^2 $ for $a+bi \in \mathbb{Z}[i]$.
Specifically, the more i use an Euclidean algorithm, the more a norm of remainder does increase.
I do not know how to solve it.
$\frac {16+7i}{10-5i}= \frac {16+7i}{10-5i}\frac {10+5i}{10+5i}= \frac {125+150i}{125}\approx 1+i $
$16+7i =(10-5i)(1+i)+(1+2i) $
$\frac {10-5i}{1+2i} =\frac {10-5i}{1+2i}\frac {1-2i}{1-2i}=-25i/5=-5i $ exactly.
So gcd is $1+2i $.
$10-5i=-5i(1+2i)$
and $(16+7i)/(1+2i) =$
$(16+7i)(1-2i)/(1+2i)(1-2i)$
$=(30-25i)/5=6-5i $