Consider the equation below:
$$\cos\dfrac{\pi}{m}=2\cos\dfrac{\pi}{r}\cos\dfrac{\pi}{n},$$ where $m,n$ and $r$ are non-zero integers.
Equality holds when $m=2$ and $r=2$ (or $n=2$), and also when $m=n$ and $r=3$ (alternatively $m=r$ and $n=3$).
I would like to know any general conditions (if there are) between $m,n$ and $r$ for equality to hold.