I heard that in general De Moivre's formula:
$$(\sin a + i \cos a)^n= \sin na + i \cos na $$ can be used when n has a particular (real number? ) condition.
I can't figure out how to narrow the exponent down (specialize it) to an integer.
Help me please.