Number of possible bishop moves on an $n times m$ chessboard
$begingroup$
For rook we have obviously
$$R(n,m)=nm(n+m-2)$$
and for bishop
$$B(n,m)=4left(mbinom{n}{2}-binom{n+1}{3}+binom{n-m+1}{3}right)$$
if we assume $binom{n}{k}=0$ for $n<0$.
Is there a way to write it in more simple and nice form?
binomial-coefficients closed-form chessboard
$endgroup$
add a comment |
$begingroup$
For rook we have obviously
$$R(n,m)=nm(n+m-2)$$
and for bishop
$$B(n,m)=4left(mbinom{n}{2}-binom{n+1}{3}+binom{n-m+1}{3}right)$$
if we assume $binom{n}{k}=0$ for $n<0$.
Is there a way to write it in more simple and nice form?
binomial-coefficients closed-form chessboard
$endgroup$
1
$begingroup$
Expand and calculate?
$endgroup$
– greedoid
Dec 27 '18 at 21:00
$begingroup$
@greedoid, I mean something special, for example using floor function or nice looking sum.
$endgroup$
– user514787
Dec 27 '18 at 22:23
$begingroup$
Maybe not an exact duplicate, but this question asked (among other things) for the number of ways you can put two bishops on a chessboard so that they don't attack each other, which is trivially equivalent to asking the number of ways you can put two bishops on a chessboard so that they do attack each other, which is half the number of possible bishop moves.
$endgroup$
– bof
Dec 28 '18 at 7:03
add a comment |
$begingroup$
For rook we have obviously
$$R(n,m)=nm(n+m-2)$$
and for bishop
$$B(n,m)=4left(mbinom{n}{2}-binom{n+1}{3}+binom{n-m+1}{3}right)$$
if we assume $binom{n}{k}=0$ for $n<0$.
Is there a way to write it in more simple and nice form?
binomial-coefficients closed-form chessboard
$endgroup$
For rook we have obviously
$$R(n,m)=nm(n+m-2)$$
and for bishop
$$B(n,m)=4left(mbinom{n}{2}-binom{n+1}{3}+binom{n-m+1}{3}right)$$
if we assume $binom{n}{k}=0$ for $n<0$.
Is there a way to write it in more simple and nice form?
binomial-coefficients closed-form chessboard
binomial-coefficients closed-form chessboard
edited Dec 28 '18 at 8:52
Andreas Caranti
56.6k34395
56.6k34395
asked Dec 27 '18 at 20:46
user514787user514787
744310
744310
1
$begingroup$
Expand and calculate?
$endgroup$
– greedoid
Dec 27 '18 at 21:00
$begingroup$
@greedoid, I mean something special, for example using floor function or nice looking sum.
$endgroup$
– user514787
Dec 27 '18 at 22:23
$begingroup$
Maybe not an exact duplicate, but this question asked (among other things) for the number of ways you can put two bishops on a chessboard so that they don't attack each other, which is trivially equivalent to asking the number of ways you can put two bishops on a chessboard so that they do attack each other, which is half the number of possible bishop moves.
$endgroup$
– bof
Dec 28 '18 at 7:03
add a comment |
1
$begingroup$
Expand and calculate?
$endgroup$
– greedoid
Dec 27 '18 at 21:00
$begingroup$
@greedoid, I mean something special, for example using floor function or nice looking sum.
$endgroup$
– user514787
Dec 27 '18 at 22:23
$begingroup$
Maybe not an exact duplicate, but this question asked (among other things) for the number of ways you can put two bishops on a chessboard so that they don't attack each other, which is trivially equivalent to asking the number of ways you can put two bishops on a chessboard so that they do attack each other, which is half the number of possible bishop moves.
$endgroup$
– bof
Dec 28 '18 at 7:03
1
1
$begingroup$
Expand and calculate?
$endgroup$
– greedoid
Dec 27 '18 at 21:00
$begingroup$
Expand and calculate?
$endgroup$
– greedoid
Dec 27 '18 at 21:00
$begingroup$
@greedoid, I mean something special, for example using floor function or nice looking sum.
$endgroup$
– user514787
Dec 27 '18 at 22:23
$begingroup$
@greedoid, I mean something special, for example using floor function or nice looking sum.
$endgroup$
– user514787
Dec 27 '18 at 22:23
$begingroup$
Maybe not an exact duplicate, but this question asked (among other things) for the number of ways you can put two bishops on a chessboard so that they don't attack each other, which is trivially equivalent to asking the number of ways you can put two bishops on a chessboard so that they do attack each other, which is half the number of possible bishop moves.
$endgroup$
– bof
Dec 28 '18 at 7:03
$begingroup$
Maybe not an exact duplicate, but this question asked (among other things) for the number of ways you can put two bishops on a chessboard so that they don't attack each other, which is trivially equivalent to asking the number of ways you can put two bishops on a chessboard so that they do attack each other, which is half the number of possible bishop moves.
$endgroup$
– bof
Dec 28 '18 at 7:03
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
The number of possible bishop moves on an $mtimes n$ chessboard is equal to $4$ times the number of $ktimes k$ squares, $2le klemin(m,n)$, on that chessboard, since each bishop move is a move from one corner to the opposite corner of one of those squares.
From this we get the formula
$$B(m,n)=4sum_{k=2}^{min(m,n)}(m+1-k)(n+1-k)$$$$=8binom{min(m,n)}3+4(|m-n|+1)binom{min(m,n)}2$$
which you may or may not consider "simple and nice". For square chessboards it becomes simpler and nicer:
$$B(n,n)=4sum_{k=2}^n(n+1-k)^2=4left[1^2+2^2+3^2+cdots+(n-1)^2right]$$$$=8binom n3+4binom n2=frac23(n-1)n(2n-1).$$
See also the answer to the question How many ways can you put: a) two bishops b) two knights c) two queens on a chessboard in such a way that one piece does not attack the other?.
$endgroup$
$begingroup$
Thank you for answer and for edition too! English not my native, sorry. Formulas in your answer which you linked need to be more popular. It also can be generalized to any figure for which some of 4 directions (|a|,|b|) are allowed. Another criteria - max length of move (in selected direction). Thinking about it show how primitive basic chess rules (but it still hard to play).
$endgroup$
– user514787
Jan 1 at 0:40
1
$begingroup$
You're welcome!
$endgroup$
– bof
Jan 1 at 0:55
add a comment |
$begingroup$
As greedoid commented, it is so simple to expand and simplify.
$$B(n,m)=4left(mbinom{n}{2}-binom{n+1}{3}+binom{n-m+1}{3}right)=frac{2}{3} m(m-1) (3 n-m-1)$$
$endgroup$
$begingroup$
Thank you for answer! But this holds only for $n+2>m$.
$endgroup$
– user514787
Dec 28 '18 at 11:11
add a comment |
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%2f3054342%2fnumber-of-possible-bishop-moves-on-an-n-times-m-chessboard%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
The number of possible bishop moves on an $mtimes n$ chessboard is equal to $4$ times the number of $ktimes k$ squares, $2le klemin(m,n)$, on that chessboard, since each bishop move is a move from one corner to the opposite corner of one of those squares.
From this we get the formula
$$B(m,n)=4sum_{k=2}^{min(m,n)}(m+1-k)(n+1-k)$$$$=8binom{min(m,n)}3+4(|m-n|+1)binom{min(m,n)}2$$
which you may or may not consider "simple and nice". For square chessboards it becomes simpler and nicer:
$$B(n,n)=4sum_{k=2}^n(n+1-k)^2=4left[1^2+2^2+3^2+cdots+(n-1)^2right]$$$$=8binom n3+4binom n2=frac23(n-1)n(2n-1).$$
See also the answer to the question How many ways can you put: a) two bishops b) two knights c) two queens on a chessboard in such a way that one piece does not attack the other?.
$endgroup$
$begingroup$
Thank you for answer and for edition too! English not my native, sorry. Formulas in your answer which you linked need to be more popular. It also can be generalized to any figure for which some of 4 directions (|a|,|b|) are allowed. Another criteria - max length of move (in selected direction). Thinking about it show how primitive basic chess rules (but it still hard to play).
$endgroup$
– user514787
Jan 1 at 0:40
1
$begingroup$
You're welcome!
$endgroup$
– bof
Jan 1 at 0:55
add a comment |
$begingroup$
The number of possible bishop moves on an $mtimes n$ chessboard is equal to $4$ times the number of $ktimes k$ squares, $2le klemin(m,n)$, on that chessboard, since each bishop move is a move from one corner to the opposite corner of one of those squares.
From this we get the formula
$$B(m,n)=4sum_{k=2}^{min(m,n)}(m+1-k)(n+1-k)$$$$=8binom{min(m,n)}3+4(|m-n|+1)binom{min(m,n)}2$$
which you may or may not consider "simple and nice". For square chessboards it becomes simpler and nicer:
$$B(n,n)=4sum_{k=2}^n(n+1-k)^2=4left[1^2+2^2+3^2+cdots+(n-1)^2right]$$$$=8binom n3+4binom n2=frac23(n-1)n(2n-1).$$
See also the answer to the question How many ways can you put: a) two bishops b) two knights c) two queens on a chessboard in such a way that one piece does not attack the other?.
$endgroup$
$begingroup$
Thank you for answer and for edition too! English not my native, sorry. Formulas in your answer which you linked need to be more popular. It also can be generalized to any figure for which some of 4 directions (|a|,|b|) are allowed. Another criteria - max length of move (in selected direction). Thinking about it show how primitive basic chess rules (but it still hard to play).
$endgroup$
– user514787
Jan 1 at 0:40
1
$begingroup$
You're welcome!
$endgroup$
– bof
Jan 1 at 0:55
add a comment |
$begingroup$
The number of possible bishop moves on an $mtimes n$ chessboard is equal to $4$ times the number of $ktimes k$ squares, $2le klemin(m,n)$, on that chessboard, since each bishop move is a move from one corner to the opposite corner of one of those squares.
From this we get the formula
$$B(m,n)=4sum_{k=2}^{min(m,n)}(m+1-k)(n+1-k)$$$$=8binom{min(m,n)}3+4(|m-n|+1)binom{min(m,n)}2$$
which you may or may not consider "simple and nice". For square chessboards it becomes simpler and nicer:
$$B(n,n)=4sum_{k=2}^n(n+1-k)^2=4left[1^2+2^2+3^2+cdots+(n-1)^2right]$$$$=8binom n3+4binom n2=frac23(n-1)n(2n-1).$$
See also the answer to the question How many ways can you put: a) two bishops b) two knights c) two queens on a chessboard in such a way that one piece does not attack the other?.
$endgroup$
The number of possible bishop moves on an $mtimes n$ chessboard is equal to $4$ times the number of $ktimes k$ squares, $2le klemin(m,n)$, on that chessboard, since each bishop move is a move from one corner to the opposite corner of one of those squares.
From this we get the formula
$$B(m,n)=4sum_{k=2}^{min(m,n)}(m+1-k)(n+1-k)$$$$=8binom{min(m,n)}3+4(|m-n|+1)binom{min(m,n)}2$$
which you may or may not consider "simple and nice". For square chessboards it becomes simpler and nicer:
$$B(n,n)=4sum_{k=2}^n(n+1-k)^2=4left[1^2+2^2+3^2+cdots+(n-1)^2right]$$$$=8binom n3+4binom n2=frac23(n-1)n(2n-1).$$
See also the answer to the question How many ways can you put: a) two bishops b) two knights c) two queens on a chessboard in such a way that one piece does not attack the other?.
edited Dec 31 '18 at 14:06
answered Dec 28 '18 at 7:23
bofbof
51.9k558121
51.9k558121
$begingroup$
Thank you for answer and for edition too! English not my native, sorry. Formulas in your answer which you linked need to be more popular. It also can be generalized to any figure for which some of 4 directions (|a|,|b|) are allowed. Another criteria - max length of move (in selected direction). Thinking about it show how primitive basic chess rules (but it still hard to play).
$endgroup$
– user514787
Jan 1 at 0:40
1
$begingroup$
You're welcome!
$endgroup$
– bof
Jan 1 at 0:55
add a comment |
$begingroup$
Thank you for answer and for edition too! English not my native, sorry. Formulas in your answer which you linked need to be more popular. It also can be generalized to any figure for which some of 4 directions (|a|,|b|) are allowed. Another criteria - max length of move (in selected direction). Thinking about it show how primitive basic chess rules (but it still hard to play).
$endgroup$
– user514787
Jan 1 at 0:40
1
$begingroup$
You're welcome!
$endgroup$
– bof
Jan 1 at 0:55
$begingroup$
Thank you for answer and for edition too! English not my native, sorry. Formulas in your answer which you linked need to be more popular. It also can be generalized to any figure for which some of 4 directions (|a|,|b|) are allowed. Another criteria - max length of move (in selected direction). Thinking about it show how primitive basic chess rules (but it still hard to play).
$endgroup$
– user514787
Jan 1 at 0:40
$begingroup$
Thank you for answer and for edition too! English not my native, sorry. Formulas in your answer which you linked need to be more popular. It also can be generalized to any figure for which some of 4 directions (|a|,|b|) are allowed. Another criteria - max length of move (in selected direction). Thinking about it show how primitive basic chess rules (but it still hard to play).
$endgroup$
– user514787
Jan 1 at 0:40
1
1
$begingroup$
You're welcome!
$endgroup$
– bof
Jan 1 at 0:55
$begingroup$
You're welcome!
$endgroup$
– bof
Jan 1 at 0:55
add a comment |
$begingroup$
As greedoid commented, it is so simple to expand and simplify.
$$B(n,m)=4left(mbinom{n}{2}-binom{n+1}{3}+binom{n-m+1}{3}right)=frac{2}{3} m(m-1) (3 n-m-1)$$
$endgroup$
$begingroup$
Thank you for answer! But this holds only for $n+2>m$.
$endgroup$
– user514787
Dec 28 '18 at 11:11
add a comment |
$begingroup$
As greedoid commented, it is so simple to expand and simplify.
$$B(n,m)=4left(mbinom{n}{2}-binom{n+1}{3}+binom{n-m+1}{3}right)=frac{2}{3} m(m-1) (3 n-m-1)$$
$endgroup$
$begingroup$
Thank you for answer! But this holds only for $n+2>m$.
$endgroup$
– user514787
Dec 28 '18 at 11:11
add a comment |
$begingroup$
As greedoid commented, it is so simple to expand and simplify.
$$B(n,m)=4left(mbinom{n}{2}-binom{n+1}{3}+binom{n-m+1}{3}right)=frac{2}{3} m(m-1) (3 n-m-1)$$
$endgroup$
As greedoid commented, it is so simple to expand and simplify.
$$B(n,m)=4left(mbinom{n}{2}-binom{n+1}{3}+binom{n-m+1}{3}right)=frac{2}{3} m(m-1) (3 n-m-1)$$
answered Dec 28 '18 at 3:53
Claude LeiboviciClaude Leibovici
122k1157134
122k1157134
$begingroup$
Thank you for answer! But this holds only for $n+2>m$.
$endgroup$
– user514787
Dec 28 '18 at 11:11
add a comment |
$begingroup$
Thank you for answer! But this holds only for $n+2>m$.
$endgroup$
– user514787
Dec 28 '18 at 11:11
$begingroup$
Thank you for answer! But this holds only for $n+2>m$.
$endgroup$
– user514787
Dec 28 '18 at 11:11
$begingroup$
Thank you for answer! But this holds only for $n+2>m$.
$endgroup$
– user514787
Dec 28 '18 at 11:11
add a comment |
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%2f3054342%2fnumber-of-possible-bishop-moves-on-an-n-times-m-chessboard%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
1
$begingroup$
Expand and calculate?
$endgroup$
– greedoid
Dec 27 '18 at 21:00
$begingroup$
@greedoid, I mean something special, for example using floor function or nice looking sum.
$endgroup$
– user514787
Dec 27 '18 at 22:23
$begingroup$
Maybe not an exact duplicate, but this question asked (among other things) for the number of ways you can put two bishops on a chessboard so that they don't attack each other, which is trivially equivalent to asking the number of ways you can put two bishops on a chessboard so that they do attack each other, which is half the number of possible bishop moves.
$endgroup$
– bof
Dec 28 '18 at 7:03