I'm trying to prove this equality (unsuccessfully): $$\sum_{n=0}^\infty \frac{i^nt^n}{n!}=\sum_{n=0}^\infty \frac{(-1)^nt^{2n}}{(2n)!}+i\sum_{n=0}^{\infty}\frac{(-1)^nt^{2n+1}}{(2n+1)!}\ , $$ which I know is true because: the left hand side is $e^{it}$ while the right hand side is $\cos t+i\sin t$.
I have tried to manipulate the RHS of several ways, but I can't see the trick! Thanks in advance.