Application of Demoivre's Theorem