Hi,
Is it possible to find a value of ##n## for the following expression other than by exhaustive search?
$$e^{\frac{2n\pi i p}{q}}=e^{-\pi i p/q},\quad n=1,2,\cdots, q-1, \quad (p,q)\in \mathbb{N}\backslash 0$$
I can write a short program to search for the value of n, but that would...