$$A=\frac{e^{i \pi k}-1}{e^{i \pi k h}-1}$$
Where
$k=p+q$, $p$ and $q$ natural numbers
$h\in]0,1[$ real number
We can consider that the denominator is never $0$.
The result may be someway like this:
if $k$ is even then $Re(A)= 0$ (or $1$, I dont know but it should be $0$ or $1$ or $-1$)
if $k$ is odd then...
(I): $Re\left(a\cdot b\right)=Re\left(a\right)\cdot Re\left(b\right)-Im\left(a\right)\cdot Im\left(b\right), Im\left(a\cdot b\right)=Re\left(a\right)\cdot Im\left(b\right)+Im\left(a\right)\cdot Re\left(b\right)$ (II) $Re\left(z\right)=\frac{z+\bar{z}}{2}, Im\left(z\right)=\frac{z-\bar{z}}{2i}$ (III)for $z=Ae^{ib}$ holds $Re\left(z\right)=A cos\left(b\right)$ and $Im\left(z\right)=A sin\left(b\right)$
then start with $A=Re\left(A\right)+iIm\left(A\right)$ and get the denominator on the other side.
– Max Mar 10 '14 at 19:58