I would just like to add a bit ........
To find
, lets look at it in this way
Let
, where z= a+ib=any complex number
Now taking complex powers (i) on both sides .We get
.
Now
which is in turn = i
Therefore By comparing
We get
a=0 and sinb=1
Thus
n belongs to I
Therefore
= 
Therefore 
The smallest being = 