wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

I buy 40 animals consisting of rams at 4 pounds, pigs at 2 pounds, and oxen at 17 pounds. if I spend 301 pounds, how many of each do I buy?

Open in App
Solution

Let number of rams be x, pigs be y and oxen be z

x+y+z=40 .......(i)

4x+2y+17z=301

Using x from (i), we have

4(40yz)+2y+17z=301

1604y4z+2y+17z=301

13z2y=141 ..........(ii)

We will approach the question by finding the positive integral solutions of the equations as the number of animals can olny be some positive integer.

13z2y=1412

6z+z2y=70+12

6zy+z12=70

As y and z are integers

z12= integer

Let the integer be p

z12=p

z=2p+1 ..........(iii)

Substituting z in (ii)

13(2p+1)2y=141

2y=26p128

y=13p64 .........(iv)

Substituting y and z in (i)

x+13p64+2p+1=40

x=10315p ........(v)

We can see from (iv) that y<0 for integer p<5 and from (v) x<0 for integer p>6 , which is not possible as x and y can only be positive integers.

So, p can take values 5,6

Substituting p in (iii),(iv) and (v) , we get

z=11,13y=1,14x=28,13

So, he can buy 28 rams, 1 pig and 11 oxen or 13 rams, 14 pig and 13 oxen.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Equations
QUANTITATIVE APTITUDE
Watch in App
Join BYJU'S Learning Program
CrossIcon