How many pairs of values of ( x,y) satisfy the equation 3x + y <= 6 , given that x and y are positive integers.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Note: Using this method is a good practice to solve linear Diophantine equations
We both posted a solution at the same time!
y ≤ 3 ( 2 − x ) , since both x and y are positive integers, therefore the only permitted value of x is 1 , and the only possible pairs are determined by y ≤ 3 , the pairs are ( x , y ) = ( 1 , 1 ) , ( 1 , 2 ) , ( 1 , 3 ) . So, there are 3 pairs.
x , y > 0 , 3 x + y ≤ 6 x 1 2 y 1 , 2 , 3 , 4 ( 3 x + y ≤ 6 ) 0 ( > 0 ) Total pairs of ( x , y ) = 3
Equations of these types are known as Diaphontine's eqution. Diaphontine's equation wiki link Since x and y are linear these are called as linear diaphontine's equation. The possible values of (x,y) which satisfy the equation 3x+ y <= 6 given that x and y are integers, are (1,1) (1,2) and (1,3). So there are 3 solutions to this linear diaphontine's equation.
Problem Loading...
Note Loading...
Set Loading...
3 ( p + 1 ) + ( q + 1 ) ≤ 6 ⟹ 3 p + q ≤ 2
q ≤ 2 ⟹ q ∈ { 0 , 1 , 2 }