Although some of the things in this problem aren't true in real life just assume they are in the question.
When growing peanuts the following happens:
for every 2 single chambered peanuts there will be one double chambered peanut
for every 2 double chambered peanuts there will be one triple chambered peanut
for every 2 triple chambered peanuts there will be one quadruple chambered peanut.
When a company packages 1000 peanuts in one bag they take peanuts randomly from a giant bin that contins all the peanuts grown. What are the odds that there will be 1000 individual nuts?
(In reply to Slight Correction
As a check, here's the program logic; it goes through all sum of compartments = 1000 and counts only those adding to 577:
90 point 25
110 for Quad=0 to int(1000/4)
130 for Trip=0 to int(T2/3)
150 for Dbl=0 to int(T3/2)
161 if Quad+Trip+Dbl+Sngl=577 then
200 print Tp
Posted by Charlie
on 2003-02-24 09:13:00