Let be $ f(x,y)= 6xy-3x-2y+1 $
How can I show that the congruence $ f(x,y) \equiv 0 \pmod m $
has a solution in $ \mathbb{Z}^2 $ for any $ m \in \mathbb{N} $?
I know from here that we can factor $f$ as $(3x-1)(2y-1)$ but I don't know how to proceed further.
Hint $ $ Let $\,m = 2^kn,\ \color{#c00}{n\ \rm odd}.\,$ To solve $\,2^k n\mid (3x\!-\!1)(2y\!-\!1)^{\phantom{|^|}}\!\!$ it suffices to solve $\, 2^k\mid 3x\!-\!1\,$ & $\,n\mid 2y\!-\!1^{\phantom{|^|}}\!\!\!,\,$ i.e. $\,x\equiv 3^{-1}\!\pmod{\!2^k}\,$ & $\, y \equiv 2^{-1}\!\pmod{\!n}^{\phantom{|^|}}\!\!;\,$ both exist by $\,(3,2^k)\! =\! 1\! =\! \color{#c00}{(2,n)}^{\phantom{|^|}}\!\!$
Remark $ $ The factorization follows from: completing a square generalizes to completing a product, using the AC-method, viz. $$\begin{eqnarray} &&axy + bx + cy\, =\, d,\ \ a\ne 0\\ \overset{\times\,a}\iff\, &&\!\! (ax+c)(ay+b)\, =\, ad+bc\end{eqnarray}\qquad\qquad$$