VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: sup guys the NPR Weekend Edition puzzle was really easy today  (Read 1370 times)

Triarius Fidelis

  • Vecteloper
  • Vectorian
  • ****
  • Posts: 2399
  • Domine, exaudi vocem meam
    • my website

"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
Logged
"Leatherface, you BITCH! Ho Chi Minh, hah hah hah!"

Formerly known as "Epic Fail Guy" and "Döden" in recent months

wcs

  • Packager
  • Vectorian
  • ****
  • Posts: 1144
Re: sup guys the NPR Weekend Edition puzzle was really easy today
« Reply #1 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.
Logged

Triarius Fidelis

  • Vecteloper
  • Vectorian
  • ****
  • Posts: 2399
  • Domine, exaudi vocem meam
    • my website
Re: sup guys the NPR Weekend Edition puzzle was really easy today
« Reply #2 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
Logged
"Leatherface, you BITCH! Ho Chi Minh, hah hah hah!"

Formerly known as "Epic Fail Guy" and "Döden" in recent months