Apply de Moivre's theorem for integer powers