The correct options are
A S=0, when n is odd
C S=1, when n is even
S=1+i2+i4+…+i2n
This is clearly a G.P. having n+1 terms with first term a=1 and common ratio r=i2.
∴S=a(1−rn+1)1−r⇒S=1(1−(i2)n+1)1−i2⇒S=1−(−1)n+12
⇒S=⎧⎪
⎪⎨⎪
⎪⎩1−12=0,when n is odd1+12=1,when n is even
Alternate solution:
We know i4m=1 and i4m+2=−1
∴S=(1−1)+(1−1)+...+i2n
If n is even then 2n will be of the form4m
So, S=(1−1)+(1−1)+(1...−1)+1
∴S=1
If n is odd then 2n will be of the form4m+2
So, S=(1−1)+(1−1)+1...+(1−1)
∴S=0