Calculate the Jacobi symbol $\left(\frac{n^4+n^2+1}{2n^2+1} \right)$ for every integer $n>0$.
Using the properties of the Jacobi symbol,
$$\left(\frac{n^4+n^2+1}{2n^2+1} \right)=\left(\frac{2n^2+1}{n^2-n+1} \right)\left(\frac{2n^2+1}{n^2+n+1} \right)=\left(\frac{2n-1}{n^2-n+1} \right)\left(\frac{2n-1}{n^2+n+1} \right).$$
However I don't see how this brings me any further. I am clueless, every hint is appreciated