For what values of $n$ does there exist an $n$-gon inscribed in a unit circle, such that all the side lengths are rational, and all the diagonal lengths are irrational?
My thoughts
$n$ cannot be $3$, because a triangle has no diagonals.
$n$ can be $4$. Assuming the unit circle is $x^2+y^2=1$, the vertices could be $(1,0) \left(\frac{1}{2},\frac{\sqrt3}{2}\right) \left(-\frac{1}{2},\frac{\sqrt3}{2}\right) (-1,0)$, so the side lengths are $1,1,1,2$ and the diagonal lengths are $\sqrt3, \sqrt3$.
For $n=5$, we can inscribe in the unit circle an $n$-gon with rational side lengths (in fact, it is possible to do this for any $n\ge 3$). For example, the vertices could be $(1,0) \left(\frac{1}{2},\frac{\sqrt3}{2}\right) \left(-\frac{1}{2},\frac{\sqrt3}{2}\right) (-1,0) \left(\frac{7}{25},-\frac{24}{25}\right)$, so the side lengths are $1,1,1,\frac85,\frac65$. However, in this example the length of the diagonal between $(1,0)$ and $(-1,0)$ is rational.
Here is a visualisation of the case $n=5$. The dashed curve is a unit circle. Can the black line segments all have rational lengths while the colored line segments all have irrational lengths?
For all $n$, we can rule out the regular $n$-gon. According to Niven's Theorem, the only regular $n$-gon inscribed in the unit circle with rational side lengths is the regular $6$-gon, but in the regular $6$-gon some of the diagonal lengths are rational.
Context
This is just another question I've thought of, related to circles and rational numbers. Other questions are here and here.
