# Math Help - very simple Fourier series question

1. ## very simple Fourier series question

simple for anyone but myself obviously or else I wouldn't be posting it here!

I know the simple rule $cos(n\pi) = (-1)^n$
but is there a similarly simple way of writing
$cos (n \frac{\pi}{2})$
and
$sin (n \frac{\pi}{2})$
?

2. $\cos\left(\frac{n\pi}{2}\right)=\frac{i^n}{2}(1+(-1)^n)$

$\sin\left(\frac{n\pi}{2}\right)=\frac{i^{n-1}}{2}(1-(-1)^n)$