[step:Handle the squarefree case via a non-residue modulo $p$ and $1$ modulo $m$]Assume (a). Since $N$ is composite and squarefree, write $N = p m$ where $p$ is a prime divisor of $N$ and $m = N/p$, with $\gcd(p, m) = 1$ and $m \geq 3$ odd (the last because $N$ is odd and composite, so $m > 1$ and odd, and $m = 2$ is impossible).
Since $p$ is odd, exactly half of the non-zero residues modulo $p$ are quadratic non-residues (see [Count of Quadratic Residues](/theorems/???)), so there exists $u \in \mathbb{Z}$ with $\gcd(u, p) = 1$ and
\begin{align*}
\left(\tfrac{u}{p}\right) &= -1,
\end{align*}
where $\left(\tfrac{\cdot}{p}\right)$ is the Legendre symbol.
By the [Chinese Remainder Theorem](/theorems/???), since $\gcd(p, m) = 1$, the natural ring map $\mathbb{Z}/N\mathbb{Z} \to \mathbb{Z}/p\mathbb{Z} \times \mathbb{Z}/m\mathbb{Z}$ is an isomorphism. We choose $b \in \mathbb{Z}$ satisfying
\begin{align*}
b &\equiv u \pmod{p}, & b &\equiv 1 \pmod{m}.
\end{align*}
Then $\gcd(b, p) = 1$ (since $\gcd(u, p) = 1$) and $\gcd(b, m) = 1$ (since $b \equiv 1 \pmod m$), hence $\gcd(b, N) = 1$.
We compute the Jacobi symbol $\left(\frac{b}{N}\right)$. By [Properties of the Jacobi Symbol](/theorems/???), since $N = pm$ with $p, m$ odd,
\begin{align*}
\left(\tfrac{b}{N}\right) &= \left(\tfrac{b}{p}\right)\left(\tfrac{b}{m}\right).
\end{align*}
Using $b \equiv u \pmod p$ we have $\left(\frac{b}{p}\right) = \left(\frac{u}{p}\right) = -1$. Using $b \equiv 1 \pmod m$ we have $\left(\frac{b}{m}\right) = \left(\frac{1}{m}\right) = 1$. Thus
\begin{align*}
\left(\tfrac{b}{N}\right) &= (-1) \cdot 1 = -1.
\end{align*}
On the other side of the Euler congruence, $b \equiv 1 \pmod m$ forces
\begin{align*}
b^{(N-1)/2} &\equiv 1^{(N-1)/2} = 1 \pmod{m}.
\end{align*}
If the Euler test succeeded, i.e. $b^{(N-1)/2} \equiv \left(\frac{b}{N}\right) = -1 \pmod{N}$, then reducing modulo $m$ would give $1 \equiv -1 \pmod{m}$, i.e. $m \mid 2$. This contradicts $m \geq 3$. Therefore
\begin{align*}
b^{(N-1)/2} &\not\equiv \left(\tfrac{b}{N}\right) \pmod{N},
\end{align*}
and $N$ fails the Euler test to base $b$.[/step]