How do you solve 5x + 9y = 181?

  • Thread starter David Carroll
  • Start date
In summary: So the solutions are x= 29, y= 4; x= 20, y= 9; x= 11, y= 14; x= 2, y= 19. In summary, the problem is to solve a Diophantine equation of the form Xa + Yb = Z, where X, Y, and Z are positive integer constants and a and b are positive integer variables. The Chinese remainder theorem and the concept of an arithmetic progression can be used to find all possible solutions. In the given example of 5x + 9y = 181, the solutions for x and y are found by setting x and y as multiples of 9 and 5 respectively, and
  • #1
David Carroll
181
13
Sorry for the misleading title. My question is: how do you solve Xa + Yb = Z, where X, Y, and Z are positive integer constants and a and b are positive integer variables?

For example, consider 5x + 9y = 181. The problem is: solve for all possible answers for x and y, where x and y are both positive integers. Is it just trial and error or is there some equation that would lead me directly to all the solutions?
 
Mathematics news on Phys.org
  • #2
David Carroll said:
Sorry for the misleading title. My question is: how do you solve Xa + Yb = Z, where X, Y, and Z are positive integer constants and a and b are positive integer variables?

For example, consider 5x + 9y = 181. The problem is: solve for all possible answers for x and y, where x and y are both positive integers. Is it just trial and error or is there some equation that would lead me directly to all the solutions?
Look up Diophantine equation (http://en.wikipedia.org/wiki/Diophantine_equation) and the Chinese remainder theorem.
 
  • #3
hddd123456789 said:
you can choose any b and get a corresponding a.

Not if a and b are both required to be integers.
 
  • #4
I noticed in the particular example I proposed that the solutions to y are those integers that differ from 9 by a multiple of 5 (or zero). Thus, the solutions to y are 4, 9, 14, and 19 which is an arithmetic progression modulo 5. As far as x goes, it seems a little more tricky: x differs from 5 by integers that are multiples of 3, which is a divisor of 9. 9 seems to be the limiting agent here.
 
  • #5
Oh, duh...all the x's are in an arithmetic progression congruent 2 modulo 9: 2, 11, 20, 29. Why it starts at 2 is a little perplexing.
 
  • #6
As an example, for the equation 5x+ 9y= 181, 5 divides into 9 once with remainder 4: 9- 5= 4. 4 divides into 5 once with remainder 1: 5- 4= 1. Replacing the "4" in that last equation with 9- 5, 5- (9- 5)= 5(2)+ 9(-1)= 1. Multiply both sides of the equation by 181: 5(362)+ 9(-181)= 181. Thus x= 362, y= -181 is a solution. But it is easy to see that x= 362- 9k, y= -181+ 5k is also a solution for any integer k: 5(362- 9k)+ 9(-181+ 5k)= 5(362)- 45k- 9(181)+ 45k= 5(362)- 9(181)= 181.

In particular, if x and y are required to be positive, we must have -181+ 5k> 0 so 5k> 181, k> 36; as well as 362- 9k> 0 so 9k< 362, k< 41. Taking k= 37 gives x= 362- 9(37)= 29, y= -181+ 5(37)= 4. Taking k= 38, x= 362- 9(38)= 20, y= -181+ 5(38)= 9. Taking k= 39, x= 362- 9(39)= 11, y= -181+ 5(39)= 14. Taking k= 40, x= 362- 9(40)= 2, y= -181+ 5(40)= 19. Values of k less than 37 make y negative, values of k larger than 40 make x negative.
 
  • Like
Likes David Carroll

FAQ: How do you solve 5x + 9y = 181?

1. What is the general formula for solving an equation like 5x + 9y = 181?

The general formula for solving a linear equation in two variables, such as 5x + 9y = 181, is to isolate one variable on one side of the equation and then substitute the resulting expression into the other variable on the other side of the equation.

2. How do you solve 5x + 9y = 181 by substitution?

To solve by substitution, isolate either x or y in terms of the other variable. In this case, we can isolate x by subtracting 9y from both sides to get x = (181 - 9y)/5. Then substitute this expression for x into the original equation, 5x + 9y = 181, to get a new equation with only one variable. Solve for y and then substitute the value back into the expression for x to get the solution.

3. Is there another method for solving 5x + 9y = 181?

Yes, another method for solving linear equations in two variables is by graphing. Plot the equation as a line on a coordinate plane and find the point where the line intersects the x and y axes. This point represents the solution to the equation.

4. Can you solve 5x + 9y = 181 using the elimination method?

Yes, the elimination method is another way to solve linear equations in two variables. In this method, you eliminate one of the variables by adding or subtracting equations together. In this case, we can eliminate x by multiplying the first equation by -5 and the second equation by 9, which results in -25x - 45y = -905 and 45x + 81y = 1630. Adding these two equations together eliminates x and we can solve for y. Then substitute the value of y into either of the original equations to solve for x.

5. How many solutions are there to 5x + 9y = 181?

There are infinitely many solutions to this equation, as there are infinitely many possible combinations of x and y that satisfy the equation. These solutions can be represented as an ordered pair (x,y) where x and y are both real numbers.

Similar threads

Replies
5
Views
1K
Replies
2
Views
1K
Replies
4
Views
1K
Replies
5
Views
2K
Replies
2
Views
1K
Replies
5
Views
3K
Replies
2
Views
2K
Replies
1
Views
1K
Back
Top