The roots of $z^6+z^4+z^2+1=0$ are the vertices of a convex polygon in the complex plane.  Find the sum of the squares of the side lengths of the polygon.
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
The roots of $z^6+z^4+z^2+1=0$ are the vertices of a convex polygon in the complex plane.  Find the sum of the squares of the side lengths of the polygon.
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
12 - 4 \sqrt{2}
The roots of $z^6+z^4+z^2+1=0$ are the vertices of a convex polygon in the complex plane.  Find the sum of the squares of the side lengths of the polygon.
train