All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 Cows and buffaloes. (Posted on 2015-01-07)
A dairy farm's cattle consists of 75% cows and 25% buffaloes.
Exactly 80% of all these animals are producing milk.
There are 76 milk-producing cows in the farm.
The above data defines uniquely the total number of animals in the farm.

What is it?

This is an old problem from Hindu Math. sources.

 See The Solution Submitted by Ady TZIDON Rating: 3.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
 computer solution | Comment 1 of 2
For cows = 75 To 201 Step 3
buffaloes = cows / 3
tot = cows + buffaloes
producing = tot * 4 / 5
If producing = Int(producing) And producing >= 76 Then
Text1.Text = Text1.Text & cows & Str(buffaloes) & Str(tot) & Str(producing) & Str(producing - 76) & crlf
End If
Next

`cows bf tot   producers`
`              tot  buf 75   25 100    80    490   30 120    96   20105  35 140   112   36120  40 160   128   52135  45 180   144   68150  50 200   160   84165  55 220   176  100180  60 240   192  116195  65 260   208  132`

Beyond 140 animals (the third line), there are more producing buffaloes than there are buffaloes, and the first line is not valid as there are fewer than 76 cows (the program started at 75 just to set the divisibility by 3).

So there are 90 cows and 30 buffaloes for a total of 120 animals, excluding any goats, etc. that might also be on the farm.

 Posted by Charlie on 2015-01-07 10:30:39

 Search: Search body:
Forums (0)