VectorLinux

The Vectorian Lounge => The Lounge => Topic started by: Triarius Fidelis on June 29, 2008, 06:26:50 am

Title: sup guys the NPR Weekend Edition puzzle was really easy today
Post by: Triarius Fidelis on June 29, 2008, 06:26:50 am
"From a 19th century trade card advertising Bassetts Horehound Troches, a remedy for coughs and colds: A man buys 20 pencils for 20 cents and gets three kinds of pencils in return. Some of the pencils cost 4 cents each, some are two for a penny and the rest are four for a penny. How many pencils of each type does the man get?"

Hints: Gauss, unique integer solution

heh heh heh (pretty cool) eh heh heh (thank you very much) eh heh heh
Title: Re: sup guys the NPR Weekend Edition puzzle was really easy today
Post by: wcs on August 15, 2008, 04:08:21 pm
I've just reached a negative number for one of the pencil types.
Obviously somehting is very wrong... ...  ;D
I'll give it another try one of these days.
Title: Re: sup guys the NPR Weekend Edition puzzle was really easy today
Post by: Triarius Fidelis on August 15, 2008, 05:50:39 pm
The Weekend Edition problem is really the classic 'hundred fowls' problem in a different guise. Actually, scratch 'classic', it's 'exceedingly old'. This one's been around forever.

Here's how to solve it if you're really stuck.

http://www.daviddarling.info/encyclopedia/H/hundred_fowls_problem.html