In my Abstract Algebra book I am asked to answer the following question.
Let $gcd(a,n)=d$ and $gcd(b,d) \neq 1$. Prove that $ax \equiv b \space(mod \space n)$ does not have a solution.
As soon as I read this it struct me as false since I studied this stuff in Number Theory, I came up with the following counter example. Let $a=24$ $n=10$ $b=6$ then $d=gcd(24,10)=2$ and $gcd(2,6)=2 \neq 1$ yet $x=4$ is a solution.
Am I missing something with this question or is it just wrong?