Bologna Sandwich was worried about an upcoming test in Discrete Mathematics and was finding it hard to get to sleep. Bologna awoke early in the morning, aroused by devilish laughter, only to see an impish looking homunculus sitting at the bottom of the bed next to a seemingly infinite pile of chips. Hello, Bologna, it said, would you like to play a little game? This pile contains 43546758443209876 chips and the bottom chip represents your immortal soul. The rules are quite simple. The first player removes some chips, but not all of them. After that we take turns removing some chips.
The only rule now is that a player cannot remove more than the previous player removed in his last turn. The winner is the player who takes the last chip. If I win I get to keep your soul and if you win, you get an A in the test. Would you like to go first or second? This seemed a reasonable bet to Bologna.
Can you give Bologna a strategy for playing no matter how many chips there are? (What if there were just one more chip in the initial pile?)
What if the rule were that one is allowed to take up to twice the number of chips the previous player took?
It is always better to play first,if the number is either odd or an odd multiple of 2:
If the no of chips is odd Bologna can take just 1 chip so he will it any way in the end...
If the no of chips is an odd multiple of 2 then take 2 chips in the first turn....
In the second turn based on wht the imp takes we can apply the above two rules accordingly and win.
But i have to still get the answer for the twice the number of chips
Posted by naiem
on 2004-08-04 01:53:10