I wrote it in the form $$S(n)=\frac{i^{2n}+1}{i^n}$$
$$=\frac{(-1)^n+1}{i^n}$$
If n is odd, then the value will be zero.
If n is even then it will become $$\frac{2}{-1}$$
So I can find only 2 distinct values of $S(n)$ but the answer says there are 3. What is the third value?