Consider the cubic polynomial $x^3-ax+b$ for $a,b\in\mathbb N$.

It has three real roots which, by Cardano's formula, can of course be written in closed form using thirds of angles or cube roots of complex numbers.

Now, in some cases, there is a much nicer way (at least in my opinion, how objective can this be??) of writing the roots: as a **rational expression of trig functions of rational angles**. Let's call such a polynomial **nice** in honour of Mathlinks, where this kind of roots are traditionally referred to as "nice roots", presumably starting with this one.

For example, we can write

the roots of $x^3-3x+1=0$ as $2\cos\dfrac{k\pi}9,\ k=2,4,8$,

the roots of $x^3-21x+7=0$ as $\dfrac3{2\cos\frac{k\pi}7}+2,\ k=2,4,8$,

the roots of $x^3-19x+19=0$ as $\dfrac7{2(\cos k\omega+\cos7k\omega+\cos49k\omega)}-2,$ where $\omega=\dfrac{\pi}{19}$ and $k=1,3,9$, or equivalently,

$ \dfrac{\sqrt{19}}{2(\sin k\omega+\sin 7k\omega+\sin 49k\omega)} $ or $ \dfrac{2\sqrt{19}}{\csc k\omega+\csc 7k\omega+\csc 49k\omega}. $

The last example (see also here) shows that it makes sense to also admit square roots. (Probably that doesn't change anything, by virtue of identities of type $ \tan\frac{{3\pi }}{{11}}+4\sin\frac{{2\pi }}{{11}}=\sqrt{11} $, but it can obviously allow to write roots in a more elegant way.)

## Question:

*Is it possible to characterize the pairs $(a,b)$ that yield nice polynomials?*

## Some ideas

- For any angle $\frac{k\pi} n$ involved in a nice root, $\mathbb Z_3$ must be a subgroup of the multiplicative group $\mathbb Z_n^*$.
- For a nice polynomial $x^3-ax+b$, its discriminant $\Delta=4a^3-27b^2$ is always a square. (See theorem 2 here).
- It appears that if the involved fractions of $\pi$ have a common prime denominator, this prime divides both $a$ and $b$. (Why?)
- The article Kurt Girstmair, On root polynomials of cyclic cubic equations, ARCHIV DER MATHEMATIK, Vol. 36, N° 1, 313-326, DOI: 10.1007/BF01223707 may possibly be helpful, but I can't access it.
- Maybe nice polynomials have something in common with the ones mentioned in this MO thread, e.g. in the sense that in the definition of a nice cubic polynomial, if we replace "trig functions of rational angles" by "roots of unity", nothing essential changes?