1

I would like to write the equation, $$I=\begin{cases} k & N \text{ even} \\ 0 & N \text{ odd} \end{cases}$$ as a function of $N$ in a non-piecewise format.

Any guidance/suggestions would be appreciated.

HVW
  • 87

1 Answers1

1

$$I = \frac{k\left(1+(-1)^N\right)}{2} $$

blamocur
  • 1,153