In the quadratic number ring Z[i], find the remainder r=a+bi, where a>0, b>0, on dividing 51+17i by 8−4i.
Find z=c+di such that 51+17i=(8−4i)z+r:
z = \input
Now, find the remainder:
r = \input