I'm trying to find the GCD of $4+22i$ and $17+i$ in $Z[i]$. I started by using Euclid's and did the following steps:
$4 + 22i = (17 + i) \cdot i + (5 + 5i)$
$17 + i = (5 + 5i) \cdot (1 - i) + (7 + i)$
Now when I try to divide $5 + 5i$ by $7 + i$ I get
$\frac{5 + 5i}{7 + i} = \frac{5 + 5i}{7 + i} \cdot \frac{7 - i}{7 - i} = \frac{40}{50} + \frac{30i}{50}$
I'm not sure where to go from here (or if I've made a mistake along the way) because this would seem to give a quotient of $0$ which will cause the algorithm to loop.