If z2+z+1=0, where z is a complex number, then values of S=z+1z2+z2+1z22+z3+1z32+⋯+z6+1z62 is
12
18
54
6
z2+z+1=0 ⇒ z=ω,ω2.
Let z=ω then (ω+ω2)2 =ω2+ω42=ω4+ω82=ω5+ω102=1
and ω3+ω62=ω6+ω122=4.
Thus, S=12.