Author |
Topic: can pennies equal nickels? (Read 311 times) |
|
gkwal
Newbie
Posts: 25
|
|
can pennies equal nickels?
« on: Jul 16th, 2007, 9:30pm » |
Quote Modify
|
A machine gives out five pennies for each nickel inserted into it. The machine also gives out five nickels for each penny. Can Peter, who starts out with one penny, use the machine in such a way as to end up with an equal number of nickels and pennies?
|
|
IP Logged |
|
|
|
towr
wu::riddles Moderator Uberpuzzler
Some people are average, some are just mean.
Gender:
Posts: 13730
|
|
Re: can pennies equal nickels?
« Reply #1 on: Jul 17th, 2007, 1:39am » |
Quote Modify
|
Let the number of time you exchange a nickel for 5 pennies be N and the number of times you exchange a penny for 5 nickels be P then the number of pennies is 5N - P + 1 and the number of nickels is 5P - N 6N + 1 can't be 6P for integer P and N, so it can't be done.
|
|
IP Logged |
Wikipedia, Google, Mathworld, Integer sequence DB
|
|
|
rmsgrey
Uberpuzzler
Gender:
Posts: 2873
|
|
Re: can pennies equal nickels?
« Reply #2 on: Jul 17th, 2007, 9:42am » |
Quote Modify
|
A simpler proof: hidden: | Every transaction loses one coin and gains 5, for a net gain of 4 coins. To end up with an equal number of each type, you need an even total number of coins. The actual total will always be 4k+1 (where k is the number of transactions) so will never be even. |
|
« Last Edit: Jul 17th, 2007, 9:44am by rmsgrey » |
IP Logged |
|
|
|
|