The second problem is an extremely nice and difficult problem I found in a math book. I had to spend several hours on it. One thing that makes it difficult is the familarity with a beautiful identity:

Which can be found
here.
But I will give the derivation of that identity here because there I did it a little messy.
Given the polynomial,

It is a known result (see "roots of unity" above) that we can factor it as,

where

(since

).
Thus,

(where

, called the "absolute value" of complex number).
Thus,

.
But (details can be found in link),

.
Thus,

.
Now we can return to the problem. Eventhough it was posed with 7 points, it works in general with

points with a simple formula. Note, instead of doing this in general, I will do it specifically for

and

. Because there are minor changes in the proof depending whether

is even or odd. And once that is done you can easily generalize this in general by following similar reasoning. I just do not want to do the general case at once because it is a little longer to type and it might be more difficult to follow.
Seven Points: Using the Roots of Unity approach again we can think of these points in the complex plane without lose of generality we can say those are

with

.
Given two points

their distance is

where

means "absolute value" and was defined above.
Thus, we all the segments we get for

points are:

We just wrote them out conviently in rows, we will see why that is convient soon.
But notice that,

. And

and so one.... Using this simplification trick we find:

Again we keep them conviently in those rows.
Now let us write them out using the fact that

(details omiited, but this is basic trigonometry).
Thus, keeping them in convient rows,
Now we need to multiply those numbers out

. But do not worry it is not that bad, we still have that identity above sines above which we never used.
Do the following steps:
-------------------------
1)Multiply all elements in Row 1. That is simply the identity above and we get

.
2)Multiply all the elements in Row 2 with Row 6 and use the fact that

. So we get the identity again! (Sneaky ... I know). Thus we get

again.
3)Multiply all the elements in Row 3 with Row 5 and use the fact that

and

. So we get the identity again! (Even more sneaky). Thus we get

again.
4)We are left with Row 4. What do we pair it with we exhausted all the cases? We can pair it with itself. Meaning, let

.
Thus,

Thus,

Thus,

.
So in total when we multiply Steps 1 through 4 we get:

.
Eight Points: Follow the exact same idea as above. But here the problem gets a little easier. Because we do not need to pair the middle row to itself and take square roots. We can in fact pair everything together using the Sine Reduction trick since there is an even number of terms. The answer you should get is

.
In General: By succesfully doing 7 and 8 points you should get the general idea. Which is the,

.
Q.E.D.