Artificial intelligent assistant

About the vertices of a regular polygon in the plane having rational coordinates I have to prove that, except in the case $n=4$, the vertices of a regular $n$-agon in the Euclidean plane cannot have all rational coordinates $(x,y)$. Some idea?

Assuming that all the vertices of a regular $n$-agon ($n\
eq 4$) have rational coordinates, by the shoelace formula the area of such a polygon is a rational number. On the other hand, the area is given by:

$$ A=\frac{nl^2}{4}\,\cot\frac{\pi}{n} $$ but $\cot\frac{\pi}{n}$ is an irrational number for every $n\geq 3,n\
eq 4$: that leads to a contradiction.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 3cd7d6e69cc98aeca70881a4a9300dad