In my textbook there's the following definition:
Let $n$ be an odd number and $n = \prod_{i=1}^s q_i^{r_i}$ its prime factorization. Then the Jacobi symbol is defined as \begin{equation*} \left( \frac{a}{n} \right) = \prod_{i=1}^s\left( \frac{a}{q_i} \right)^{r_i} \, . \end{equation*} If $a$ is a quadratic residue modulo $n$, then the Jacobi symbol is $1$. Yet the reverse doesn't necessarily hold.
The symbol on the right side of the equation is the Legendre symbol (confusingly the symbol is "recycled" for the Jacobi symbol).
There is no explanation given whatsoever why this:
If $a$ is a quadratic residue modulo $n$, then the Jacobi symbol is $1$.
is true. Is it trivial and I don't see it? Ok, it seems to follow from the fact that the projection $\phi\colon \mathbb{Z}/n\mathbb{Z} \rightarrow \prod_{i=1}^s (\mathbb{Z}/q_i\mathbb{Z})^{r_i}$ is a ring homomorphism, right?
Ok, and now a counterexample for the assertion:
Yet the reverse doesn't necessarily hold.
Quadratic residues modulo $15$ are $$ 0, 1, 4, 6, 9, 10 $$ but $$ \left( \frac{2}{15} \right) = \left( \frac{2}{5} \right) \left( \frac{2}{3} \right) = (-1)\cdot(-1) = 1\,.$$ Am I right here?