De Moivre's Theorem states that for any complex number as given below:
z = r ∙ cosθ + i ∙ r ∙ sinθ
the following statement is true:
zn = rn (cosθ + i ∙ sin(nθ)), where n is an integer.
If the imaginary part of the complex number is equal to zero or i = 0, we have:
z = r ∙ cosθ and zn = rn (cosθ)