in reply to CarTalk Puzzler
There are 20,000 lights on. A person comes through and pulls the cord on every second light. A third person comes along and pulls the cord on every third light, etc. When someone comes who pulls every 20,000th chain, which lights are on?
I mean, I'm all for trying to solve things programmatically, but do we need a program for this?
--
tbone1, YAPS (Yet Another Perl Schlub)
And remember, if he succeeds, so what.
- Chick McGee
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CarTalk Puzzler
by Aristotle (Chancellor) on Nov 18, 2005 at 13:35 UTC | |
|
Re^2: CarTalk Puzzler
by chas (Priest) on Nov 17, 2005 at 20:20 UTC |