For positive integers $${n_1},{n_2}$$ the value of the expression $${\left( {1 + i} \right)^{{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