There is a farm of cows and chickens which is fenced up but I can see under it. I see 24 legs. How many possible combinations of cows and chickens are there?
Assumptions: We are assuming that a chicken has 2 legs and a cow has 4 legs and there is at least 1 of each animal. As an example, 1 cow and 1 chicken is a combination .
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.
Let the numbers of cows and chickens be a and b respectively, where a , b ≥ 1 . We know that
4 a + 2 b 2 a + b ⟹ 1 2 − 2 a 1 2 − 2 a 2 a ⟹ a = 2 4 = 1 2 = b ≥ 1 ≤ 1 1 ≤ 5 Since a is a natural number.
Therefore, there are 5 combinations of ( a , b ) = ( 1 , 1 0 ) , ( 2 , 8 ) , ( 3 , 6 ) , ( 4 , 4 ) , ( 5 , 2 ) .