eytanz
Level: Smitemaster
Rank Points: 2708
Registered: 02-05-2003
IP: Logged
|
Re: Puzzle "tag" (0)
Ok, here's my solution:
Bill wins for n = 1, or for all n such that m is also a winning number from bob and n = 2m+1.
Note first that it's only the largest pile that you have that will determine if you win or lose, assuming both players play optimally. Proof: Imagine that there was some pile size x that you would always lose if you have it, no matter what other piles you have. But if you have a pile larger than x, you could give x to your opponent, and he would therefore lose - a contradiction. Similarly, for winning piles. The only way a pile x could determine your victory or loss is if you have no larger piles.
Now, it's easy to see that any player loses if his or her largest pile is 1, wins if it is 2, and loses if it is 3.
Now, for any pile size that Alice starts with, she can ensure that Bob loses if she manages to ensure that his largest pile size is 3. If n<=6, she can do this easily - but if she has 7 stones, she has to give him a pile of size 4-6, which means he wins. Therefore, whoever has 7 loses. So for piles for size 8-14, Alice can win by giving Bill a 7-stone pile. But for 15, she must give him a pile of size 8-14; and so forth - for each losing pile size, Alice can ensure that Bill has it if she has up to twice the amount of stones in that pile; but if she has exactly twice that number plus one, she loses.
I hope that was clear.
____________________________
I got my avatar back! Yay!
|