Let $m$ and $n$ be natural numbers such that $(mn + 1)$ is divisible by $24$. Then $m + n$ is divisible by:
- $2$
- $3$
- $8$
- $12$
- $24$
- All of the above
The answer given is 6. (all of the above). Thing is I can easily verify the answer. But how to prove it?
$24\mid mn\!+\!1\,\Rightarrow\,24k-mn = 1\,$ so $\,n\,$ is coprime to $\,3,8\,$ so $\,\color{#c00}{n^2\equiv 1}\,$ mod $\,3,8\,$ so also mod $24.$
Thus $\,{\rm mod}\ 24\!:\ 0\equiv mn\!+\!\color{#c00}1\equiv mn\!+\!\color{#c00}{n^2}\equiv(m\!+\!n)n,\,$ so $\,m\!+\!n\equiv 0,\,$ by $\,n\,$ coprime to $24$.