How many solutions there are for $x \in Z_6$ in the following equations?
$x\cdot[3]_6 = [4]_6$
$x\cdot[5]_6 = [4]_6$
$x\cdot[5]_6 = [3]_6$
$x\cdot[3]_6 = [3]_6$
I can find the number of solutions simply by testing all (6) possible x's, but I'd like a smart explanation of the behavior of the number of solutions of these different equations.
For an equation $$ [a]x=[b] $$ (where $a,b\in\Bbb Z$ and $x\in\Bbb Z_n$ for some natural $n$), there are either $\gcd(a,n)$ solutions, or no solutions. These solutions exist iff $b$ is a multiple of $\gcd(a,n)$.
First of all, the smallest positive integer $k$ such that $[a]x=[k]$ has a solution is $\gcd(a,n)$ (the extended Euclidean algorithm or Bézout's identity can tell you this). Further, any multiple of $k$ also clearly gives solutions. Finally, if $\ell$ is an integer which is not a multiple of $k$, then there cannot be any solutions to $[a]x=[\ell]$, as that would imply a solution to $[a]x=[\gcd(k,\ell)]$, where $0<\gcd(k,\ell)<k$, which can't happen by definition of $k$.
And why are there $\gcd(a,n)$ solutions? Because by the above characterisation of which conjugacy classes $[b]$ give solutions, there are $\frac{n}{\gcd(a,n)}$ such classes. And each of them have an equal number of solutions.
So in your case, for instance, the equations $[3]x=[b]$ will have $\gcd(3,6)$ solutions iff $b$ is a multiple of $\gcd(3,6)$, and no solutions otherwise.