First consider a triangle ABC and its circumcenter O. Then the area of ABC is 2R2(sin2∠A+sin2∠B+sin2∠C). Notice that if ∠B>90∘ then sin2∠B<0.

So the sum is equal to the sum of the areas of triangles OAiAj with a plus sign or a minus sign, depending on the third vertex Ak of the triangle AiAjAk: if Ak lies on the major arc AiAj then we have a plus sign; else we have a minus sign (it won't matter if AiAj is a diameter, because in that case the area of OAiAj is zero).
Therefore, if AiAj subtend a minor arc of k⋅n2π, 1≤k≤⌊n/2⌋, the area of the triangle OAiAj appears with a minus sign k−1 times and with a plus sign n−(k−1)−2=n−k−1 times. So it contributes with the sum n−k−1−(k−1)=n−2k times.

S=2nk=1∑⌊n/2⌋(n−2k)sinkθ=2n2k=1∑⌊n/2⌋sinkθ−nk=1∑⌊n/2⌋ksinkθ
Consider the sums S1(θ)=∑k=1⌊n/2⌋sinkθ and S2(θ)=∑k=1⌊n/2⌋coskθ⟹S2′(θ)=−∑k=1⌊n/2⌋ksinkθ. So we want to compute 2n2S1(θ)+n⋅S2′(θ).
S2(θ)+iS1(θ)=k=1∑⌊n/2⌋coskθ+isinkθ=k=1∑⌊n/2⌋ωk=ω⋅ω−1ω⌊n/2⌋−1=ω⌊n/2⌋/2+1/2ω1/2−ω−1/2ω⌊n/2⌋/2−ω−⌊n/2⌋/2=(cos(2(⌊n/2⌋+1)θ)+isin(2(⌊n/2⌋+1)θ))⋅sin(θ/2)sin(⌊n/2⌋θ/2),
S1S2=sin(θ/2)sin(2(⌊n/2⌋+1)θ)sin(2⌊n/2⌋θ)=2sin(θ/2)cos(θ/2)−cos((⌊n/2⌋+1/2)θ)=21cot(θ/2)−2sin(θ/2)cos((⌊n/2⌋+1/2)θ)=sin(θ/2)cos(2(⌊n/2⌋+1)θ)sin(2⌊n/2⌋θ)=2sin(θ/2)sin(θ/2)+sin((⌊n/2⌋+1/2)θ)=21+2sin(θ/2)sin((⌊n/2⌋+1/2)θ)
S2′(θ)=2sin2(θ/2)(⌊2n⌋+21)cos((⌊2n⌋+21)θ)sin(2θ)−21cos(2θ)sin((⌊2n⌋+21)θ)=2⌊n/2⌋sin(θ/2)cos((⌊n/2⌋+1/2)θ)−41sin2(θ/2)sin(⌊n/2⌋θ)
So the required sum is
2n2(21cot(θ/2)−2sin(θ/2)cos((⌊n/2⌋+1/2)θ))+n(2⌊n/2⌋sin(θ/2)cos((⌊n/2⌋+1/2)θ)−41sin2(θ/2)sin(⌊n/2⌋θ))
If n is even, ⌊n/2⌋=n/2 and substituting θ=n2π the sum simplifies to
4n2cotnπ
If n is odd, ⌊n/2⌋=(n−1)/2 and substituting θ=n2π the sum also simplifies to
4n2cotnπ
4n2cotnπ