Find the value of $$n$$ if $$z=n\pm \sqrt{-i}$$ satisfies the equation $iz^{2}=1+\frac{2}{z}+\frac{3}{z^{2}}+\frac{4}{z^{3}}+...$