Q. For positive integers $n_{1}, n_{2}$ the value of the expression $(1+i)^{n_{1}}+\left(1+i^{3}\right)^{n_{1}}+\left(1+i^{5}\right)^{n_{2}}+\left(1+i^{7}\right)^{n_{2}}$, where $i=\sqrt{-1}$ is a real number if and only if
Complex Numbers and Quadratic Equations
Solution: