How do I solve trigonometric equations of the type $$\cos \frac{\pi}k - \cos \frac{2\pi}k = P$$ where P is a real constant within the range of the left side.
(By solving, I mean finding the value of k)
I could convert this into product of two $\sin$ functions but I don't think that will help. The value of P could indeed shed light on the value of k.
For example: If $P = \large\frac{\sqrt 3 - 1}2$; A little guess work and you get $k=6$. But this guess work almost instantly fails for $\large\frac{\sqrt 3 + 1}2$.
All help will be appreciated.