Proving that the Nim-sum cannot be zero for two turns in a row
$begingroup$
In proving certain results about Nim, I found a lemma that is causing me trouble:
Lemma 1 If the Nim-sum is $0$ after a player’s turn, then the next move must change it.
To prove this, let the number of stones in the heaps be $x_1, x_2, ... x_n$, and $s$ be the nim-sum $$s=x_1⊕x_2⊕x_3⊕ . . . ⊕x_n$$ Let $t$ be the sum of the heaps after the move, $$t=y_1⊕y_2⊕y_3⊕ . . . ⊕y_n$$ Then if $s= 0$, the next move causes some $x_k=y_k$ and the rest of the $x_i=y_i$ for $i neq k$, since only one pile of stones is changed.
Then:
$$t=0⊕t$$
$$=s⊕s⊕t$$
$$=s⊕(x_1⊕x_2⊕...⊕x_n)⊕(y_1⊕y_2⊕...⊕y_n)$$
$$=s⊕(x_1⊕y_1)⊕(x_2⊕y_2)⊕...⊕(x_k⊕y_k)$$
$$=s⊕x_k⊕y_k$$
If $s$ is 0, then $t$ must be nonzero, since $x_k⊕y_k$ will never be 0. Therefore, if you make the nim-sum $0$ on your turn, your opponent must make it nonzero.
I understand why $x_k ⊕ y_k$ can't be $0$, but why can't it be equal to $s$? This would make the nimsum $0$ still, and I don't see why this wouldn't be possible.
game-theory combinatorial-game-theory
$endgroup$
add a comment |
$begingroup$
In proving certain results about Nim, I found a lemma that is causing me trouble:
Lemma 1 If the Nim-sum is $0$ after a player’s turn, then the next move must change it.
To prove this, let the number of stones in the heaps be $x_1, x_2, ... x_n$, and $s$ be the nim-sum $$s=x_1⊕x_2⊕x_3⊕ . . . ⊕x_n$$ Let $t$ be the sum of the heaps after the move, $$t=y_1⊕y_2⊕y_3⊕ . . . ⊕y_n$$ Then if $s= 0$, the next move causes some $x_k=y_k$ and the rest of the $x_i=y_i$ for $i neq k$, since only one pile of stones is changed.
Then:
$$t=0⊕t$$
$$=s⊕s⊕t$$
$$=s⊕(x_1⊕x_2⊕...⊕x_n)⊕(y_1⊕y_2⊕...⊕y_n)$$
$$=s⊕(x_1⊕y_1)⊕(x_2⊕y_2)⊕...⊕(x_k⊕y_k)$$
$$=s⊕x_k⊕y_k$$
If $s$ is 0, then $t$ must be nonzero, since $x_k⊕y_k$ will never be 0. Therefore, if you make the nim-sum $0$ on your turn, your opponent must make it nonzero.
I understand why $x_k ⊕ y_k$ can't be $0$, but why can't it be equal to $s$? This would make the nimsum $0$ still, and I don't see why this wouldn't be possible.
game-theory combinatorial-game-theory
$endgroup$
3
$begingroup$
$s$ is the state before the move, and is assumed to be zero. So you are effectively asking: I understand $x_k⊕y_k$ can't be zero, but why can't it be equal to zero?
$endgroup$
– Jaap Scherphuis
Jan 30 at 15:26
add a comment |
$begingroup$
In proving certain results about Nim, I found a lemma that is causing me trouble:
Lemma 1 If the Nim-sum is $0$ after a player’s turn, then the next move must change it.
To prove this, let the number of stones in the heaps be $x_1, x_2, ... x_n$, and $s$ be the nim-sum $$s=x_1⊕x_2⊕x_3⊕ . . . ⊕x_n$$ Let $t$ be the sum of the heaps after the move, $$t=y_1⊕y_2⊕y_3⊕ . . . ⊕y_n$$ Then if $s= 0$, the next move causes some $x_k=y_k$ and the rest of the $x_i=y_i$ for $i neq k$, since only one pile of stones is changed.
Then:
$$t=0⊕t$$
$$=s⊕s⊕t$$
$$=s⊕(x_1⊕x_2⊕...⊕x_n)⊕(y_1⊕y_2⊕...⊕y_n)$$
$$=s⊕(x_1⊕y_1)⊕(x_2⊕y_2)⊕...⊕(x_k⊕y_k)$$
$$=s⊕x_k⊕y_k$$
If $s$ is 0, then $t$ must be nonzero, since $x_k⊕y_k$ will never be 0. Therefore, if you make the nim-sum $0$ on your turn, your opponent must make it nonzero.
I understand why $x_k ⊕ y_k$ can't be $0$, but why can't it be equal to $s$? This would make the nimsum $0$ still, and I don't see why this wouldn't be possible.
game-theory combinatorial-game-theory
$endgroup$
In proving certain results about Nim, I found a lemma that is causing me trouble:
Lemma 1 If the Nim-sum is $0$ after a player’s turn, then the next move must change it.
To prove this, let the number of stones in the heaps be $x_1, x_2, ... x_n$, and $s$ be the nim-sum $$s=x_1⊕x_2⊕x_3⊕ . . . ⊕x_n$$ Let $t$ be the sum of the heaps after the move, $$t=y_1⊕y_2⊕y_3⊕ . . . ⊕y_n$$ Then if $s= 0$, the next move causes some $x_k=y_k$ and the rest of the $x_i=y_i$ for $i neq k$, since only one pile of stones is changed.
Then:
$$t=0⊕t$$
$$=s⊕s⊕t$$
$$=s⊕(x_1⊕x_2⊕...⊕x_n)⊕(y_1⊕y_2⊕...⊕y_n)$$
$$=s⊕(x_1⊕y_1)⊕(x_2⊕y_2)⊕...⊕(x_k⊕y_k)$$
$$=s⊕x_k⊕y_k$$
If $s$ is 0, then $t$ must be nonzero, since $x_k⊕y_k$ will never be 0. Therefore, if you make the nim-sum $0$ on your turn, your opponent must make it nonzero.
I understand why $x_k ⊕ y_k$ can't be $0$, but why can't it be equal to $s$? This would make the nimsum $0$ still, and I don't see why this wouldn't be possible.
game-theory combinatorial-game-theory
game-theory combinatorial-game-theory
edited Jan 30 at 15:30
Jaap Scherphuis
4,232717
4,232717
asked Jan 30 at 13:35
Tiwa AinaTiwa Aina
2,720421
2,720421
3
$begingroup$
$s$ is the state before the move, and is assumed to be zero. So you are effectively asking: I understand $x_k⊕y_k$ can't be zero, but why can't it be equal to zero?
$endgroup$
– Jaap Scherphuis
Jan 30 at 15:26
add a comment |
3
$begingroup$
$s$ is the state before the move, and is assumed to be zero. So you are effectively asking: I understand $x_k⊕y_k$ can't be zero, but why can't it be equal to zero?
$endgroup$
– Jaap Scherphuis
Jan 30 at 15:26
3
3
$begingroup$
$s$ is the state before the move, and is assumed to be zero. So you are effectively asking: I understand $x_k⊕y_k$ can't be zero, but why can't it be equal to zero?
$endgroup$
– Jaap Scherphuis
Jan 30 at 15:26
$begingroup$
$s$ is the state before the move, and is assumed to be zero. So you are effectively asking: I understand $x_k⊕y_k$ can't be zero, but why can't it be equal to zero?
$endgroup$
– Jaap Scherphuis
Jan 30 at 15:26
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3093531%2fproving-that-the-nim-sum-cannot-be-zero-for-two-turns-in-a-row%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3093531%2fproving-that-the-nim-sum-cannot-be-zero-for-two-turns-in-a-row%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown

3
$begingroup$
$s$ is the state before the move, and is assumed to be zero. So you are effectively asking: I understand $x_k⊕y_k$ can't be zero, but why can't it be equal to zero?
$endgroup$
– Jaap Scherphuis
Jan 30 at 15:26