All neighbor sum is 0 on a chessboard












4














Neighbor cells of a cell is defined as all the cells where they have common edge of a cell in a matrix. A matrix is formed by putting numerical values in each cell with real numbers.



Form a matrix with the dimension of $8$x$8$ (like a chessboard) where sum of all neighbors of each cell will be $0$.




What is the least amount of 0 valued cells possible after forming the matrix?











share|improve this question





























    4














    Neighbor cells of a cell is defined as all the cells where they have common edge of a cell in a matrix. A matrix is formed by putting numerical values in each cell with real numbers.



    Form a matrix with the dimension of $8$x$8$ (like a chessboard) where sum of all neighbors of each cell will be $0$.




    What is the least amount of 0 valued cells possible after forming the matrix?











    share|improve this question



























      4












      4








      4







      Neighbor cells of a cell is defined as all the cells where they have common edge of a cell in a matrix. A matrix is formed by putting numerical values in each cell with real numbers.



      Form a matrix with the dimension of $8$x$8$ (like a chessboard) where sum of all neighbors of each cell will be $0$.




      What is the least amount of 0 valued cells possible after forming the matrix?











      share|improve this question















      Neighbor cells of a cell is defined as all the cells where they have common edge of a cell in a matrix. A matrix is formed by putting numerical values in each cell with real numbers.



      Form a matrix with the dimension of $8$x$8$ (like a chessboard) where sum of all neighbors of each cell will be $0$.




      What is the least amount of 0 valued cells possible after forming the matrix?








      mathematics logical-deduction






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 3 hours ago

























      asked 3 hours ago









      Oray

      15.6k435149




      15.6k435149






















          2 Answers
          2






          active

          oldest

          votes


















          2














          Least amount of zero valued cells is




          zero




          One such possible grid is:




          enter image description here




          Because the grid size is even in both directions, I used the following algorithms to fill it:




          1. Fill 1 (or -1) in first two cells. Some other number will also work.

          2. Copy the same number to the second end of row and zero sum inverse in opposite col (or vice versa).

          3. Fill rest of the number in a way that constraints are met.




          I got the above algorithm as an intuition. I am still figuring an easy way to explain/prove why does it work?






          share|improve this answer































            2














            This works for any given $a,b,c,d$:




            $$begin{array} {|c|c|c|c|c|c|c|c|}hline a&b&c&d&d&c&b&a\hline -b&-a-c&-b-d&-c-d&-c-d&-b-d&-a-c&-b\hline c&b+d&a+c+d&b+c+d&b+c+d&a+c+d&b+d&c\hline -d&-c-d&-b-c-d&-a-b-c-d&-a-b-c-d&-b-c-d&-c-d&-d\hline d&c+d&b+c+d&a+b+c+d&a+b+c+d&b+c+d&c+d&d\hline -c&-b-d&-a-c-d&-b-c-d&-b-c-d&-a-c-d&-b-d&-c\hline b&a+c&b+d&c+d&c+d&b+d&a+c&b\hline -a&-b&-c&-d&-d&-c&-b&-a\hline end{array}$$




            so:




            zero zeroes are needed.







            share|improve this answer





















            • very good explanation and a proof, but not any a,b,c,d actually, but any a,b,c,d where their any kind of sum or itself is not 0 :)
              – Oray
              2 mins ago













            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: "559"
            };
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2fpuzzling.stackexchange.com%2fquestions%2f78188%2fall-neighbor-sum-is-0-on-a-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









            2














            Least amount of zero valued cells is




            zero




            One such possible grid is:




            enter image description here




            Because the grid size is even in both directions, I used the following algorithms to fill it:




            1. Fill 1 (or -1) in first two cells. Some other number will also work.

            2. Copy the same number to the second end of row and zero sum inverse in opposite col (or vice versa).

            3. Fill rest of the number in a way that constraints are met.




            I got the above algorithm as an intuition. I am still figuring an easy way to explain/prove why does it work?






            share|improve this answer




























              2














              Least amount of zero valued cells is




              zero




              One such possible grid is:




              enter image description here




              Because the grid size is even in both directions, I used the following algorithms to fill it:




              1. Fill 1 (or -1) in first two cells. Some other number will also work.

              2. Copy the same number to the second end of row and zero sum inverse in opposite col (or vice versa).

              3. Fill rest of the number in a way that constraints are met.




              I got the above algorithm as an intuition. I am still figuring an easy way to explain/prove why does it work?






              share|improve this answer


























                2












                2








                2






                Least amount of zero valued cells is




                zero




                One such possible grid is:




                enter image description here




                Because the grid size is even in both directions, I used the following algorithms to fill it:




                1. Fill 1 (or -1) in first two cells. Some other number will also work.

                2. Copy the same number to the second end of row and zero sum inverse in opposite col (or vice versa).

                3. Fill rest of the number in a way that constraints are met.




                I got the above algorithm as an intuition. I am still figuring an easy way to explain/prove why does it work?






                share|improve this answer














                Least amount of zero valued cells is




                zero




                One such possible grid is:




                enter image description here




                Because the grid size is even in both directions, I used the following algorithms to fill it:




                1. Fill 1 (or -1) in first two cells. Some other number will also work.

                2. Copy the same number to the second end of row and zero sum inverse in opposite col (or vice versa).

                3. Fill rest of the number in a way that constraints are met.




                I got the above algorithm as an intuition. I am still figuring an easy way to explain/prove why does it work?







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 1 hour ago

























                answered 2 hours ago









                Mohit Jain

                2,8251841




                2,8251841























                    2














                    This works for any given $a,b,c,d$:




                    $$begin{array} {|c|c|c|c|c|c|c|c|}hline a&b&c&d&d&c&b&a\hline -b&-a-c&-b-d&-c-d&-c-d&-b-d&-a-c&-b\hline c&b+d&a+c+d&b+c+d&b+c+d&a+c+d&b+d&c\hline -d&-c-d&-b-c-d&-a-b-c-d&-a-b-c-d&-b-c-d&-c-d&-d\hline d&c+d&b+c+d&a+b+c+d&a+b+c+d&b+c+d&c+d&d\hline -c&-b-d&-a-c-d&-b-c-d&-b-c-d&-a-c-d&-b-d&-c\hline b&a+c&b+d&c+d&c+d&b+d&a+c&b\hline -a&-b&-c&-d&-d&-c&-b&-a\hline end{array}$$




                    so:




                    zero zeroes are needed.







                    share|improve this answer





















                    • very good explanation and a proof, but not any a,b,c,d actually, but any a,b,c,d where their any kind of sum or itself is not 0 :)
                      – Oray
                      2 mins ago


















                    2














                    This works for any given $a,b,c,d$:




                    $$begin{array} {|c|c|c|c|c|c|c|c|}hline a&b&c&d&d&c&b&a\hline -b&-a-c&-b-d&-c-d&-c-d&-b-d&-a-c&-b\hline c&b+d&a+c+d&b+c+d&b+c+d&a+c+d&b+d&c\hline -d&-c-d&-b-c-d&-a-b-c-d&-a-b-c-d&-b-c-d&-c-d&-d\hline d&c+d&b+c+d&a+b+c+d&a+b+c+d&b+c+d&c+d&d\hline -c&-b-d&-a-c-d&-b-c-d&-b-c-d&-a-c-d&-b-d&-c\hline b&a+c&b+d&c+d&c+d&b+d&a+c&b\hline -a&-b&-c&-d&-d&-c&-b&-a\hline end{array}$$




                    so:




                    zero zeroes are needed.







                    share|improve this answer





















                    • very good explanation and a proof, but not any a,b,c,d actually, but any a,b,c,d where their any kind of sum or itself is not 0 :)
                      – Oray
                      2 mins ago
















                    2












                    2








                    2






                    This works for any given $a,b,c,d$:




                    $$begin{array} {|c|c|c|c|c|c|c|c|}hline a&b&c&d&d&c&b&a\hline -b&-a-c&-b-d&-c-d&-c-d&-b-d&-a-c&-b\hline c&b+d&a+c+d&b+c+d&b+c+d&a+c+d&b+d&c\hline -d&-c-d&-b-c-d&-a-b-c-d&-a-b-c-d&-b-c-d&-c-d&-d\hline d&c+d&b+c+d&a+b+c+d&a+b+c+d&b+c+d&c+d&d\hline -c&-b-d&-a-c-d&-b-c-d&-b-c-d&-a-c-d&-b-d&-c\hline b&a+c&b+d&c+d&c+d&b+d&a+c&b\hline -a&-b&-c&-d&-d&-c&-b&-a\hline end{array}$$




                    so:




                    zero zeroes are needed.







                    share|improve this answer












                    This works for any given $a,b,c,d$:




                    $$begin{array} {|c|c|c|c|c|c|c|c|}hline a&b&c&d&d&c&b&a\hline -b&-a-c&-b-d&-c-d&-c-d&-b-d&-a-c&-b\hline c&b+d&a+c+d&b+c+d&b+c+d&a+c+d&b+d&c\hline -d&-c-d&-b-c-d&-a-b-c-d&-a-b-c-d&-b-c-d&-c-d&-d\hline d&c+d&b+c+d&a+b+c+d&a+b+c+d&b+c+d&c+d&d\hline -c&-b-d&-a-c-d&-b-c-d&-b-c-d&-a-c-d&-b-d&-c\hline b&a+c&b+d&c+d&c+d&b+d&a+c&b\hline -a&-b&-c&-d&-d&-c&-b&-a\hline end{array}$$




                    so:




                    zero zeroes are needed.








                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 23 mins ago









                    JonMark Perry

                    17.7k63585




                    17.7k63585












                    • very good explanation and a proof, but not any a,b,c,d actually, but any a,b,c,d where their any kind of sum or itself is not 0 :)
                      – Oray
                      2 mins ago




















                    • very good explanation and a proof, but not any a,b,c,d actually, but any a,b,c,d where their any kind of sum or itself is not 0 :)
                      – Oray
                      2 mins ago


















                    very good explanation and a proof, but not any a,b,c,d actually, but any a,b,c,d where their any kind of sum or itself is not 0 :)
                    – Oray
                    2 mins ago






                    very good explanation and a proof, but not any a,b,c,d actually, but any a,b,c,d where their any kind of sum or itself is not 0 :)
                    – Oray
                    2 mins ago




















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Puzzling 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%2fpuzzling.stackexchange.com%2fquestions%2f78188%2fall-neighbor-sum-is-0-on-a-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

                    404 Error Contact Form 7 ajax form submitting

                    How to know if a Active Directory user can login interactively

                    Refactoring coordinates for Minecraft Pi buildings written in Python