A couple days into my math lessons I learned that the formula for finding the number of diagonals in polygon is
$N_d=\frac{n\cdot(n-3)}{2},$
where $N_d$ is the number of the diagonals and $n$ is the number of sides.
I think it is because in the polygon we can put diagonal line from each point to all other points, but not for the ones that are connected with the side of polygon to us. That's why the it is $n\cdot(n-2)$ and we are dividing by the because we are counting each diagonal 2 times.
Is my thinking correct?
