Just substitute into the equation.

1)You would need to use angle sum formulas here:

2)And you will need to use

3)You will also use and

As you can see #3 is saying it depends on where is even or odd. Which is not supprising why your answer depends only on odd numbers.