Suppose that $d$ is a positive odd integer such that the Jacobi symbol $(\frac {-1}{d}) = 1$. Is $−1$ necessarily a square in $\mathbb {Z}/d\mathbb{Z}$? Either give a proof, or provide a counter-example.
I think it is absolutely a square, but I'm not sure how to prove it.
I know that because of Quadratic Reciprocity, is for some odd positive integer $b$ it is the case that $\frac {-1}{b} = 1$, then $b$ is congruent to $1$ (mod $4$). Then $d$ is congruent to $1$ mod ($4$) and is a square in $\mathbb {Z}/d\mathbb{Z}$. Is this reasoning all correct?
$\newcommand{\jac}[2]{\left( \frac{#1}{#2} \right)}$Consider $d = 3 \cdot 7 = 21$. Then $$ \jac{-1}{21} = \jac{-1}{3} \cdot \jac{-1}{7} = \dots $$
Note that $-1$ is not a square modulo $3$ nor $7$. Can it be a square modulo $21$?