-6

I want to find all integer solutions of the equation $9x+5y=77$. This equation obviously has a whole family of solutions which I was also able to see on Wolfram Alpha but I dont know to get to that solution. Can anyone explain how to get there? Thanks a lot!

Bill Dubuque
  • 272,048
Mathman
  • 7
  • 4

1 Answers1

0

Taking the equation mod $5$, you get $$ 4 x \equiv 2 \mod 5$$ so $$ x \equiv 2 \cdot 4^{-1} \equiv 3 \mod 5 $$ Similarly, taking the equation mod $9$, you get $$ y \equiv 5 \cdot 5^{-1} \equiv 1 \mod 9 $$ Now with $x = 3 + 5 s$ and $y = 1 + 9 t$ your equation becomes $$ 32 + 45s + 45t = 77$$ or $$ 45 s + 45 t = 45 $$ Thus $s+t = 1$: the solution can be written as $$ x = 3 + 5 s,\ y = 1 + 9 (1-s) = 10 - 9 s$$ where $s$ is an integer.

Robert Israel
  • 448,999