I am trying to understand the Complex Fourier series solution for the following function, as printed on "Fundamentals of Electric Circuits" by Alexander & Sadiku:

The solution printed on the solutions manual is:

Please note the highlighted functions inside the red squares.
Take for example the identity inside the first red square (the one on the left). I was under the impression that $e^{jn\pi/2}$ was equal to $jsin(n\pi/2)$ only when 'n' is odd, meaning that:
\begin{array}{l l} cos(n\pi/2) & \quad \text{if $n$ is even}\\ jsin(n\pi/2) & \quad \text{if $n$ is odd} \end{array}
Or in other words: \begin{array}{l l} (-1)^{n/2} & \quad \text{if $n$ is even}\\ j(-1)^{(n-1)/2} & \quad \text{if $n$ is odd} \end{array}
Is any scenario possible in which the identities inside the red squares are true for any n, regardless if n is odd or even?