- #1
Shackleford
- 1,656
- 2
Homework Statement
When will there exist solutions to ax + (a+2)y = c?
Homework Equations
GCD
The Attempt at a Solution
Of course, this is a linear Diophantine equation. I know that a solution will exist when gcd(a, (a+2)) | c.
gcd(a, (a+2)) = d ⇒ ∃ x,y ∈ ℤ ∋ xa + y(a+2) = d
a = 0(a+2) + a
a+2 = (a) + 2
a = β(2) + r