Evaluate $\frac{q}{1+q^2}+\frac{q^2}{1+q^4}+\frac{q^3}{1+q^6}$, where $q^7=1$ and $q\neq 1$. 
Let $q$ be a complex number such that $q^7=1$ and $q\neq 1$. Evaluate $$\frac{q}{1+q^2}+\frac{q^2}{1+q^4}+\frac{q^3}{1+q^6}.$$
  The given answer is $\frac{3}{2}$ or $-2$. But my answer is $\pm 2$.

At first, I tried to evaluate it directly. And the LHS equals to
\begin{align}
\frac{q}{1+q^2}+\frac{q^2}{1+q^4}+\frac{q^3}{1+q^6} 
 & = \frac{q}{1+q^2}+\frac{q^2}{1+q^4}\cdot\frac{q^3}{q^3}+\frac{q^3}{1+q^6}\cdot\frac{q}{q} \\
 & = \frac{q}{1+q^2}+\frac{q^5}{1+q^3}+\frac{q^4}{1+q} \\
 & = q\cdot\frac{(1+q)(1+q^3)+q^4(1+q)(1+q^2)+q^3(1+q^2)(1+q^3)}{(1+q)(1+q^2)(1+q^3)} \\ 
 & = q\cdot\frac{1+q+q^3+q^4+q^4+q^5+q^6+1+q^3+q^5+q^6+q}{(1+q)(1+q^2)(1+q^3)} \\
 & = \frac{-2q^3}{(1+q)(1+q^2)(1+q^3)} \\ 
\end{align}
And 
$$(x-q)(x-q^2)(x-q^3)(x-q^4)(x-q^5)(x-q^6)=x^6+x^5+x^4+x^3+x^2+x+1$$
Let $x=-1$ I get that
$$(1+q)(1+q^2)(1+q^3)(1+q^4)(1+q^5)(1+q^6)=1$$
and
$$(1+q)(1+q^2)(1+q^3)\cdot q^4(q^3+1)\cdot q^5(q^2+1)\cdot q^6(q+1)=1$$
therefore
$$\left[(1+q)(1+q^2)(1+q^3)\right]^2=\frac{1}{q^{15}}=\frac{1}{q}$$
hence
$$\left[\frac{-2q^3}{(1+q)(1+q^2)(1+q^3)}\right]^2=\frac{q}{1}\cdot 4q^6=4$$
$$\frac{-2q^3}{(1+q)(1+q^2)(1+q^3)}=\pm 2$$
And I try for a solution as a polar-form method$.\\$Suppose $q=\cos\frac{2j\pi}{7}+i\sin\frac{2j\pi}{7}$
$$\frac{q^k}{1+q^{2k}}=\frac{\cos\frac{2jk\pi}{7}+i\sin\frac{2jk\pi}{7}}{2\cos\frac{2jk\pi}{7}\left(\cos\frac{2jk\pi}{7}+i\sin\frac{2jk\pi}{7}\right)}=\frac{1}{2\cos\frac{2jk\pi}{7}}$$
Am I going to the right direction? How I finish it? And please help to figure out what's wrong with my calculation at the first part. I appreciate for your help.

Let $7x=2k\pi$ where $k=\pm1,\pm2,\pm3$
like Prove that $\cos(\pi/7)$ is root of equation $8x^3-4x^2-4x+1=0$
$q_k=2\cos\dfrac{2k\pi}7; k=1,2,3$ are the roots of $$c^3+c^2-2c-1=0$$ 
Use Veita's formula $$\sum_{k=1}^3\dfrac1{q_k}=\dfrac{q_1q_2+q_2q_3+q_3q_1}{q_1q_2q_3}=\dfrac{-\dfrac21}{\dfrac11}$$
