1−2icosθ1+icosθ is purely imaginary
n=1−2icosθ1+icosθ×1+2icosθ1+2icosθ=1+4cos2θ1+3icosθ−2cos2θ
n=1+4cos2θ1−2cos2θ+i(1+4cos2θ3cosθ)
n is purely imaginary
⇒1+4cos2θ1−2cos2θ=0
⇒cos2θ=21
⇒cosθ=±21
θ can be 4π,4−π,43π,4−3π,45π,47π
Sum of all possible values of θ=3π