I am working on vector bundles on algebraic surfaces and all my work has brought me to a Diophantine equation that I need to know if it always has a solution. Said equation is:
$$\left(2+{c\over (c,d)}m\right)x+\left(4-{d\over (c,d)}m\right)y=1,$$
where
- $c,d\geq 0$ fixed,
- $(c,d)$ denotes the greatest common divisor of $c$ and $d$,
- $m\in\mathbb{Z}$ is not fixed.
I know that the equation has a solution (and in this case infinitely many) if and only if
$$\left(2+{c\over (c,d)}m, 4-{d\over (c,d)}m\right)|1 \Leftrightarrow \left(2+{c\over (c,d)}m, 4-{d\over (c,d)}m\right)=1.$$
I have been doing cases for concrete values of $c$ and $d$ (if they are coprime and also if they are not) and I have always found an integer $m\in\mathbb{Z}$ such that the greatest common divisor of the resulting expression is $1$, which has made me wonder if said value $m$ always exists. Does anyone have a hint how to approach the problem?
I will thank you very much.