Number of possible bishop moves on an $n times m$ chessboard












1














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?










share|cite|improve this question




















  • 1




    Expand and calculate?
    – greedoid
    Dec 27 '18 at 21:00












  • @greedoid, I mean something special, for example using floor function or nice looking sum.
    – user514787
    Dec 27 '18 at 22:23










  • 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.
    – bof
    Dec 28 '18 at 7:03


















1














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?










share|cite|improve this question




















  • 1




    Expand and calculate?
    – greedoid
    Dec 27 '18 at 21:00












  • @greedoid, I mean something special, for example using floor function or nice looking sum.
    – user514787
    Dec 27 '18 at 22:23










  • 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.
    – bof
    Dec 28 '18 at 7:03
















1












1








1







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?










share|cite|improve this question















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






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 28 '18 at 8:52









Andreas Caranti

56.1k34295




56.1k34295










asked Dec 27 '18 at 20:46









user514787

695210




695210








  • 1




    Expand and calculate?
    – greedoid
    Dec 27 '18 at 21:00












  • @greedoid, I mean something special, for example using floor function or nice looking sum.
    – user514787
    Dec 27 '18 at 22:23










  • 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.
    – bof
    Dec 28 '18 at 7:03
















  • 1




    Expand and calculate?
    – greedoid
    Dec 27 '18 at 21:00












  • @greedoid, I mean something special, for example using floor function or nice looking sum.
    – user514787
    Dec 27 '18 at 22:23










  • 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.
    – bof
    Dec 28 '18 at 7:03










1




1




Expand and calculate?
– greedoid
Dec 27 '18 at 21:00






Expand and calculate?
– greedoid
Dec 27 '18 at 21:00














@greedoid, I mean something special, for example using floor function or nice looking sum.
– user514787
Dec 27 '18 at 22:23




@greedoid, I mean something special, for example using floor function or nice looking sum.
– user514787
Dec 27 '18 at 22:23












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.
– bof
Dec 28 '18 at 7:03






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.
– bof
Dec 28 '18 at 7:03












2 Answers
2






active

oldest

votes


















1














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?.






share|cite|improve this answer























  • 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).
    – user514787
    Jan 1 at 0:40






  • 1




    You're welcome!
    – bof
    Jan 1 at 0:55





















3














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)$$






share|cite|improve this answer





















  • Thank you for answer! But this holds only for $n+2>m$.
    – user514787
    Dec 28 '18 at 11:11











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
});


}
});














draft saved

draft discarded


















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









1














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?.






share|cite|improve this answer























  • 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).
    – user514787
    Jan 1 at 0:40






  • 1




    You're welcome!
    – bof
    Jan 1 at 0:55


















1














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?.






share|cite|improve this answer























  • 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).
    – user514787
    Jan 1 at 0:40






  • 1




    You're welcome!
    – bof
    Jan 1 at 0:55
















1












1








1






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?.






share|cite|improve this answer














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?.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Dec 31 '18 at 14:06

























answered Dec 28 '18 at 7:23









bof

50.5k457119




50.5k457119












  • 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).
    – user514787
    Jan 1 at 0:40






  • 1




    You're welcome!
    – bof
    Jan 1 at 0:55




















  • 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).
    – user514787
    Jan 1 at 0:40






  • 1




    You're welcome!
    – bof
    Jan 1 at 0:55


















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).
– user514787
Jan 1 at 0:40




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).
– user514787
Jan 1 at 0:40




1




1




You're welcome!
– bof
Jan 1 at 0:55






You're welcome!
– bof
Jan 1 at 0:55













3














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)$$






share|cite|improve this answer





















  • Thank you for answer! But this holds only for $n+2>m$.
    – user514787
    Dec 28 '18 at 11:11
















3














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)$$






share|cite|improve this answer





















  • Thank you for answer! But this holds only for $n+2>m$.
    – user514787
    Dec 28 '18 at 11:11














3












3








3






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)$$






share|cite|improve this answer












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)$$







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Dec 28 '18 at 3:53









Claude Leibovici

119k1157132




119k1157132












  • Thank you for answer! But this holds only for $n+2>m$.
    – user514787
    Dec 28 '18 at 11:11


















  • Thank you for answer! But this holds only for $n+2>m$.
    – user514787
    Dec 28 '18 at 11:11
















Thank you for answer! But this holds only for $n+2>m$.
– user514787
Dec 28 '18 at 11:11




Thank you for answer! But this holds only for $n+2>m$.
– user514787
Dec 28 '18 at 11:11


















draft saved

draft discarded




















































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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

File:DeusFollowingSea.jpg