I have found a question in Beachy and Blair: Abstract algebra. I have been trying for some days now and I cannot solve it:
Assume that $n$ is not a prime power. Show that $\mathbb{Z}_n$ has idempotent elements different from $[0], [1]$.
Hint: Suppose that $n=bc$ with $\mathrm{gcd}(b,c)=1$ and solve the simultaneous congruences $$ x\equiv 1 \ (\mathrm{mod} \ b),\qquad x\equiv 0 \ (\mathrm{mod} \ c). $$
So I assume this $x$ is that is going to be the idempotent element. Solving the system of congruences is by the "standard method"
$$ (b,c)=1\quad \Rightarrow \quad \exists p,q\in\mathbb{Z},\quad 1=bp+qc $$ therefore $$ x=0\cdot bp+1\cdot qc $$ fulfills the above congruences. But here I am stuck since since $0\cdot bp=0$, right? Which leaves us with $x=qc$. Did I make some mistake somewhere?
Any help is appreciated :)