Solve 7x+12y=220 in positive integers.
Given, 7x+12y=220 ........(i)
Dividing by 7, we get
x+127y=2207⇒x+y+5y7=31+37⇒x+y+5y−37=31
We have to solve the equation for positive integers, so x and y are integers which ⇒5y−37= integer.
Multiplying by 3, we get
15y−97= integer
⇒2y−1+y−27= integer
⇒y−27= integer
Let the integer be p.
y−27=p⇒y=7p+2 .......(ii)
Substituting y in (i),
7x+12(7p+2)=220⇒7x+84p=196⇒x=28−12p ......(iii)
So p can take any integral value , but from (iii), we see that x<0 fo p>2 which is not possible as we are solving the equation in positive integers.
So, p can be equal 0,1,2.
Substituting p in (ii), we get
⇒y=2,9,16
Substituting p in (iii), we get
⇒x=28,16,4
So, the solution set is {x=28,16,4y=2,9,16.