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

Home > Just Math
Cows and buffaloes. (Posted on 2015-01-07) Difficulty: 2 of 5
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.)
Solution 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    4
90   30 120   96   20
105 35 140   112 36
120 40 160   128 52
135 45 180   144 68
150 50 200   160 84
165 55 220   176 100
180 60 240   192 116
195 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
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (17)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information