(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

I needed to solve this single equation with two unknowns.

199x - 98y = -5

0< x <=99

0< y <=99

I typed the equation into Wolfram Alpha and got an integer solution of:

x = 98n + 31

y = 199n +63 when n is an integer

Since I know my restriction on x and y I can conclude that my solution is:

x = 31

y = 63 when n = 0

My question is, how do I obtain that integer solution that Wolfram Alpha gave me?

[edit, changed the + to a - sign from an error Ray Vickson pointed out, thanks.]

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: 1 equation, 2 unknowns, need integer solution

**Physics Forums | Science Articles, Homework Help, Discussion**