(1+i)^{k}=2^{\frac{k}{2}}{\Big (\cos{\frac{k\pi}{4}+i\sin{\frac{k\pi}{4}}}\Big )}