I've read that if the complex numbers $a_1$, $a_2$ and $a_3$ are the vertices of a triangle in the complex plane such that $ a_1^2+a_2^2+a_3^2=a_1a_2+a_2a_3+a_1a_3 $ then the vertices are actually those of an equilateral triangle.
I tried to see why this by first shifting the vertex $a_1$ to the origin, and considering the triangle with vertices $0$, $a_2-a_1$ and $a_3-a_1$. The given equation holds if and only if $ (a_2-a_1)^2+(a_3-a_1)^2=(a_2-a_1)(a_3-a_1) $ which is equivalent to saying $ \frac{a_2-a_1}{a_3-a_1}+\frac{a_3-a_1}{a_2-a_1}=1. $ Letting $\frac{a_2-a_1}{a_3-a_1}=x$, this gives the quadratic $x+\frac{1}{x}=1$, and so I solve for $x$ to be $ \frac{a_2-a_1}{a_3-a_1}=x=\frac{1\pm\sqrt{-3}}{2}=e^{\pm i\pi/3}.$
I'm not sure where I'm going now. How can I conclude that such a relation implies the vertices form an equilateral triangle? Thank you.