Question 185Let $P$ be a regular $k$-gon inscribed in a circle of radius $1$. Find the sum of the squares of the lengths of all the sides and diagonals of $P$.