First of all we have two cases: when n is even or n is odd.

I'll do the case when n is even. I think you can do the other case.

Split the sum in two other sums:

To calculate each sum, multiply both sides by and transform the products of sines in differences of cosines.

Now