If w=cos(πn)+isin(πn), then value of 1+w+w2+⋯+wn−1 is
1+icotπ2n
To find the value of 1+w+w2+⋯+wn−1
This is a Geometric Progression with first term as 1 and and common ratio as w
⇒ Sum =1−wn1−w=1−(cosπ+isinπ)1−cosπn−isinπn
=21−1+2sin2π2n−2isinπ2ncosπ2n [Using cos2θ=1−2sin2θ and sin2θ=2sinθcosθ]
=22sinπ2n(sinπ2n−icosπ2n)
=sinπ2n+icosπ2nsinπ2n(sinπ2n−icosπ2n)×(sinπ2n+icosπ2n) [Multiplying and dividing by (sinπ2n+icosπ2n)]
=sinπ2n+icosπ2nsinπ2n(sin2π2n+cos2π2n)
=sinπ2n+icosπ2nsinπ2n
=1+icotπ2n