Everything2
Near Matches
Ignore Exact
Full Text
Everything2

How many chickens?

created by evan927

(idea) by mE123 (10 mon) (print)   ?   I like it! Thu Aug 17 2000 at 15:47:15

Your father gives you $100 to go to town and buy 100 chickens, the prices are as follows:

You have to buy at least one of each kind of chicken, what are the numbers of each kind of chicken you need?


Solution:


Well, I kinda cheated to get the answer. I wrote a Qbasic program to figure all the permutations that work. I did optimizes it, I went though the Chicks in steps of 2 (to get rid of the decimal). I also only went up to 20 Hens because at that point you are already out of money. But other then that I just did the equivalent of smashing the circle block in to the square slot with a hammer.


Here are my answers, I got a total of 11:
  1. 1 Rooster
    91 Hens
    8 Chicks

  2. 2 Roosters
    82 Hens
    16 Chicks

  3. 3 Roosters
    73 Hens
    24 Chicks

  4. 4 Roosters
    64 Hens
    32 Chicks

  5. 5 Roosters
    55 Hens
    40 Chicks

  6. 6 Roosters
    46 Hens
    48 Chicks

  7. 7 Roosters
    37 Hens
    56 Chicks

  8. 8 Roosters
    28 Hens
    64 Chicks

  9. 9 Roosters
    19 Hens
    72 Chicks

  10. 10 Roosters
    10 Hens
    80 Chicks

  11. 11 Roosters
    1 Hen
    88 Chicks


printable version
chaos

The Problem of the Prisoners Brain Teaser Triangle Challenge I have Jesus in my asshole, does that count?
Reverend Kirkman's schoolgirls Brain tumor 14233221 coloured hat puzzles
Old chestnut: The oldest chestnut You make that sound like a bad thing Strip Mind-Teasers magic sucks
Old Chestnut Q.E.D. Catching a squirrel Making someone feel loved
Number Brain Teaser: Five Hats old chestnut: convoluted states I old chestnut: truel
grandson Roald Dahl Duct tape does not make a good bra Planet X Fingers
No more writeups are being accepted for this node. If you feel you have something to add to this node, post it on your Scratch Pad and contact an editor.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Things you could have written:
Buffy the Vampire Slayer
Ralph Waldo Emerson
Where were you when someone asked where you were when something happened
Aloha
Letter from a Newbie to an Old Master
Indian Recipes
It's only love: at the end of the day, there are still thunderstorms and sunsets
The Wire
Loch Ness
Thunder, Perfect Mind
Heidi Hammel
toast soldiers
There is Power in a Union
New Writeups
jqwerty
The Anime Laws of Physics(person)
jjen
Sorrier than I ever thought I would be(personal)
locke baron
Moskva class antisubmarine cruiser(thing)
Wuukiee
May 15, 2008(idea)
locke baron
Kuznetsov class aircraft carrier(thing)
_lesra
for abby(thing)
Adaptive Child
Annie's garden salsa(recipe)
Simulacron3
Zig-Zag(thing)
Ouzo
Special Grilled Cheese(fiction)
Noung
Tiananmen Square Massacre(idea)
aneurin
Lord St Clair(person)
artman2003
Assholes and Douchebags: A Comparison(person)
locke baron
Tyan Thunder K8WE(thing)
locke baron
Udaloy class destroyer(thing)
Scaevola
Same-sex marriage(idea)
Everything 2 is brought to you by the letter C and The Everything Development Company