Let z=a+b3i be in Z[3i]. If a2+3b2=1, show that z must be a unit. Show that the only units of Z[3i] are 1 and −1.
Hint. Note that z−1=1/(a+b3i)=(a−b3i)/(a2+3b2) is in Z[3i] if and only if a2+3b2=1. The only integer solutions to the equation are a=±1,b=0.