Four Magic Ellipses











up vote
8
down vote

favorite
3












These four ellipses represent four sets and all the possible ways they can intersect (a Venn diagram, in other words). There are 8 regions inside each ellipse, and 15 regions altogether.



Is it possible to assign the numbers 1 to 15 to the fifteen regions so that the sum of the numbers in each ellipse is the same?



enter image description here










share|improve this question


























    up vote
    8
    down vote

    favorite
    3












    These four ellipses represent four sets and all the possible ways they can intersect (a Venn diagram, in other words). There are 8 regions inside each ellipse, and 15 regions altogether.



    Is it possible to assign the numbers 1 to 15 to the fifteen regions so that the sum of the numbers in each ellipse is the same?



    enter image description here










    share|improve this question
























      up vote
      8
      down vote

      favorite
      3









      up vote
      8
      down vote

      favorite
      3






      3





      These four ellipses represent four sets and all the possible ways they can intersect (a Venn diagram, in other words). There are 8 regions inside each ellipse, and 15 regions altogether.



      Is it possible to assign the numbers 1 to 15 to the fifteen regions so that the sum of the numbers in each ellipse is the same?



      enter image description here










      share|improve this question













      These four ellipses represent four sets and all the possible ways they can intersect (a Venn diagram, in other words). There are 8 regions inside each ellipse, and 15 regions altogether.



      Is it possible to assign the numbers 1 to 15 to the fifteen regions so that the sum of the numbers in each ellipse is the same?



      enter image description here







      mathematics combinatorics arithmetic






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 25 at 15:12









      Bernardo Recamán Santos

      2,2151141




      2,2151141






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          10
          down vote



          accepted










          Here is a method for constructing a solution without the use of a computer.



          [EDIT: This generalises to any even number of sets, but not to odd numbers. See the edit at the end for a different method that I think will work for any number of sets.]




          Associate the first four powers of $2$ with the ellipses, i.e. label them $1$, $2$, $4$, and $8$. Then for each region, give it the number that is the sum of all the ellipse numbers it lies in.


          While this assigns the numbers $1$ to $15$ to the regions inside the ellipses, the ellipses don't all add up to the same amount. This is because of that one bit that all the regions within an ellipse share.


          To fix this problem, change every number with even bit parity to its complement, i.e. for every region that belongs to exactly $2$ or $4$ ellipses change its number to 15 minus that number. This changes four numbers in each ellipse, in such a way that each bit is used in exactly half the numbers in every ellipse. This gives the following picture:

          enter image description here


          Every ellipse adds up the the same amount, namely $60 = 4(1+2+4+8)$. Unfortunately the region that was $15$ became $0$, so the regions are now numbered 0 to 14. So all that is left to do is to add 1 to all the numbers to get the following valid solution where each ellipse adds to $68$:

          enter image description here

          $1+2+7+8+11+12+13+14=68\1+3+6+8+10+12+13+15=68\1+4+5+8+10+11+14+15=68\1+4+6+7+9+12+14+15=68$




          EDIT:

          Here is a different method that I believe generalises to any number of sets. I will use 5 sets in this description.




          Label the sets A,B,C,D,E.

          Pick any region, and calculate the number of that region as follows:


          1. Start with zero.

          2. If the region lies in an odd number of the sets A,B,C,D,E, then add $2^4=16$.

          3. If the region lies in an odd number of the sets A,B,C,D, then add $2^3=8$.

          4. If the region lies in an odd number of the sets A,B,C, then add $2^2=4$.

          5. If the region lies in an odd number of the sets A,B, then add $2^1=2$.

          6. If the region lies in an odd number of the sets A,C, then add $2^0=1$.

          The number you end up with is the number for that region.


          Put differently, if a,b,c,d,e are variables which are $1$ if the region lies in a particular set and $0$ otherwise, then the region is given a binary number where the bits are (a^b^c^d^e), (a^b^c^d), (a^b^c), (a^b), (a^c) where the ^ symbol indicates the exclusive or (XOR) operation.


          The order of the bits does not matter. I think you are even free to use any XOR expressions of the variables, as long as they are linearly independent and contain at least one XOR operation.







          share|improve this answer



















          • 2




            I assume this procedure can be generalized for Venn diagrams with any number of sets. Am I correct? Five sets in particular?
            – Bernardo Recamán Santos
            Nov 26 at 0:04






          • 1




            @BernardoRecamánSantos: I think it only works for an even number of sets, unfortunately.
            – Jaap Scherphuis
            Nov 26 at 5:43








          • 1




            @BernardoRecamánSantos I have added a different method that I think generalises to any number of sets.
            – Jaap Scherphuis
            Nov 26 at 9:36


















          up vote
          4
          down vote













          Computational Solution




          Diagram




          I only wanted to do the math if I had to, so I made a computer program to solve this problem written in C (view it on GitHub here):



          How It Works




          Each section is identified and placed in an array based on their letter's alphabetical index. The program then uses a brute-force approach. It works how you would expect, it cycles through every possible permutation and outputs a solution if the sums of each set are equal. You can view the output here.




          Example solution



          As seen in this diagram a solution is given by the following array in the alphabetical form:



          [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O]




          = [10, 9, 11, 13, 6, 8, 5, 1, 3, 7, 4, 2, 12, 14, 15]




          First Eclipse Sum




          A + B + C + D + E + F + G + H = 10 + 9 + 11 + 13 + 6 + 8 + 5 + 1 = 63




          Second Eclipse Sum




          I + J + M + B + C + E + H + N = 3 + 7 + 12 + 9 + 11 + 6 + 1 + 14 = 63




          Third Eclipse Sum




          K + L + J + M + C + E + F + D = 4 + 2 + 7 + 12 + 11 + 6 + 8 + 13 = 63




          Fourth Eclipse Sum




          L + O + M + E + N + H + G + F = 2 + 15 + 12 + 6 + 14 + 1 + 5 + 8 = 63




          Other Solutions




          I ended up finding many solutions, here are a few in the same alphabetical form:




          [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O]



          Example 1:




          [11, 9, 10, 13, 8, 7, 4, 1, 3, 6, 5, 2, 12, 14, 15]




          Example 2:




          [9, 11, 10, 13, 7, 8, 4, 1, 3, 5, 6, 2, 12, 14, 15]




          Example 3:




          [11, 10, 9, 13, 6, 8, 4, 1, 3, 7, 5, 2, 12, 14, 15]




          Conclusion




          There are many solutions based on my code. If you want to see all of them just compile and run the code linked at the top of this post. Or view the linked youtube video showing a small amount of the many there are. So it is possible and there are many solutions, not just one - given that my code is correct.







          share|improve this answer










          New contributor




          W.Ambrozic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • Nice! I was running some code too but gave up after it crashed.
            – Hugh
            Nov 25 at 19:35










          • @W.Ambrozic: Of your solutions, which has the largest magic sum, and which the least?
            – Bernardo Recamán Santos
            yesterday






          • 1




            @BernardoRecamánSantos Given that I was using brute force to find all permutations of the 15 values, finding all solutions would take days; however, I recently optimized my code, and if it worked it should have looked at every permutation while checking for a maximum and minimum sum. So far I got a maximum sum of 77 with the solution array:[4,5,14,6,15,10,12,11,3,9,2,8,13,7,1], and a minimum sum of 51 with the solution array:[12,7,3,8,1,5,13,2,15,10,14,6,4,9,11] (in the form mentioned in my answer). I'll post my results when I have time to make sure my optimization did not skip any solutions.
            – W.Ambrozic
            4 hours ago










          • @W.Ambrozic: Fascinating stuff!
            – Bernardo Recamán Santos
            4 hours 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',
          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%2f75709%2ffour-magic-ellipses%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








          up vote
          10
          down vote



          accepted










          Here is a method for constructing a solution without the use of a computer.



          [EDIT: This generalises to any even number of sets, but not to odd numbers. See the edit at the end for a different method that I think will work for any number of sets.]




          Associate the first four powers of $2$ with the ellipses, i.e. label them $1$, $2$, $4$, and $8$. Then for each region, give it the number that is the sum of all the ellipse numbers it lies in.


          While this assigns the numbers $1$ to $15$ to the regions inside the ellipses, the ellipses don't all add up to the same amount. This is because of that one bit that all the regions within an ellipse share.


          To fix this problem, change every number with even bit parity to its complement, i.e. for every region that belongs to exactly $2$ or $4$ ellipses change its number to 15 minus that number. This changes four numbers in each ellipse, in such a way that each bit is used in exactly half the numbers in every ellipse. This gives the following picture:

          enter image description here


          Every ellipse adds up the the same amount, namely $60 = 4(1+2+4+8)$. Unfortunately the region that was $15$ became $0$, so the regions are now numbered 0 to 14. So all that is left to do is to add 1 to all the numbers to get the following valid solution where each ellipse adds to $68$:

          enter image description here

          $1+2+7+8+11+12+13+14=68\1+3+6+8+10+12+13+15=68\1+4+5+8+10+11+14+15=68\1+4+6+7+9+12+14+15=68$




          EDIT:

          Here is a different method that I believe generalises to any number of sets. I will use 5 sets in this description.




          Label the sets A,B,C,D,E.

          Pick any region, and calculate the number of that region as follows:


          1. Start with zero.

          2. If the region lies in an odd number of the sets A,B,C,D,E, then add $2^4=16$.

          3. If the region lies in an odd number of the sets A,B,C,D, then add $2^3=8$.

          4. If the region lies in an odd number of the sets A,B,C, then add $2^2=4$.

          5. If the region lies in an odd number of the sets A,B, then add $2^1=2$.

          6. If the region lies in an odd number of the sets A,C, then add $2^0=1$.

          The number you end up with is the number for that region.


          Put differently, if a,b,c,d,e are variables which are $1$ if the region lies in a particular set and $0$ otherwise, then the region is given a binary number where the bits are (a^b^c^d^e), (a^b^c^d), (a^b^c), (a^b), (a^c) where the ^ symbol indicates the exclusive or (XOR) operation.


          The order of the bits does not matter. I think you are even free to use any XOR expressions of the variables, as long as they are linearly independent and contain at least one XOR operation.







          share|improve this answer



















          • 2




            I assume this procedure can be generalized for Venn diagrams with any number of sets. Am I correct? Five sets in particular?
            – Bernardo Recamán Santos
            Nov 26 at 0:04






          • 1




            @BernardoRecamánSantos: I think it only works for an even number of sets, unfortunately.
            – Jaap Scherphuis
            Nov 26 at 5:43








          • 1




            @BernardoRecamánSantos I have added a different method that I think generalises to any number of sets.
            – Jaap Scherphuis
            Nov 26 at 9:36















          up vote
          10
          down vote



          accepted










          Here is a method for constructing a solution without the use of a computer.



          [EDIT: This generalises to any even number of sets, but not to odd numbers. See the edit at the end for a different method that I think will work for any number of sets.]




          Associate the first four powers of $2$ with the ellipses, i.e. label them $1$, $2$, $4$, and $8$. Then for each region, give it the number that is the sum of all the ellipse numbers it lies in.


          While this assigns the numbers $1$ to $15$ to the regions inside the ellipses, the ellipses don't all add up to the same amount. This is because of that one bit that all the regions within an ellipse share.


          To fix this problem, change every number with even bit parity to its complement, i.e. for every region that belongs to exactly $2$ or $4$ ellipses change its number to 15 minus that number. This changes four numbers in each ellipse, in such a way that each bit is used in exactly half the numbers in every ellipse. This gives the following picture:

          enter image description here


          Every ellipse adds up the the same amount, namely $60 = 4(1+2+4+8)$. Unfortunately the region that was $15$ became $0$, so the regions are now numbered 0 to 14. So all that is left to do is to add 1 to all the numbers to get the following valid solution where each ellipse adds to $68$:

          enter image description here

          $1+2+7+8+11+12+13+14=68\1+3+6+8+10+12+13+15=68\1+4+5+8+10+11+14+15=68\1+4+6+7+9+12+14+15=68$




          EDIT:

          Here is a different method that I believe generalises to any number of sets. I will use 5 sets in this description.




          Label the sets A,B,C,D,E.

          Pick any region, and calculate the number of that region as follows:


          1. Start with zero.

          2. If the region lies in an odd number of the sets A,B,C,D,E, then add $2^4=16$.

          3. If the region lies in an odd number of the sets A,B,C,D, then add $2^3=8$.

          4. If the region lies in an odd number of the sets A,B,C, then add $2^2=4$.

          5. If the region lies in an odd number of the sets A,B, then add $2^1=2$.

          6. If the region lies in an odd number of the sets A,C, then add $2^0=1$.

          The number you end up with is the number for that region.


          Put differently, if a,b,c,d,e are variables which are $1$ if the region lies in a particular set and $0$ otherwise, then the region is given a binary number where the bits are (a^b^c^d^e), (a^b^c^d), (a^b^c), (a^b), (a^c) where the ^ symbol indicates the exclusive or (XOR) operation.


          The order of the bits does not matter. I think you are even free to use any XOR expressions of the variables, as long as they are linearly independent and contain at least one XOR operation.







          share|improve this answer



















          • 2




            I assume this procedure can be generalized for Venn diagrams with any number of sets. Am I correct? Five sets in particular?
            – Bernardo Recamán Santos
            Nov 26 at 0:04






          • 1




            @BernardoRecamánSantos: I think it only works for an even number of sets, unfortunately.
            – Jaap Scherphuis
            Nov 26 at 5:43








          • 1




            @BernardoRecamánSantos I have added a different method that I think generalises to any number of sets.
            – Jaap Scherphuis
            Nov 26 at 9:36













          up vote
          10
          down vote



          accepted







          up vote
          10
          down vote



          accepted






          Here is a method for constructing a solution without the use of a computer.



          [EDIT: This generalises to any even number of sets, but not to odd numbers. See the edit at the end for a different method that I think will work for any number of sets.]




          Associate the first four powers of $2$ with the ellipses, i.e. label them $1$, $2$, $4$, and $8$. Then for each region, give it the number that is the sum of all the ellipse numbers it lies in.


          While this assigns the numbers $1$ to $15$ to the regions inside the ellipses, the ellipses don't all add up to the same amount. This is because of that one bit that all the regions within an ellipse share.


          To fix this problem, change every number with even bit parity to its complement, i.e. for every region that belongs to exactly $2$ or $4$ ellipses change its number to 15 minus that number. This changes four numbers in each ellipse, in such a way that each bit is used in exactly half the numbers in every ellipse. This gives the following picture:

          enter image description here


          Every ellipse adds up the the same amount, namely $60 = 4(1+2+4+8)$. Unfortunately the region that was $15$ became $0$, so the regions are now numbered 0 to 14. So all that is left to do is to add 1 to all the numbers to get the following valid solution where each ellipse adds to $68$:

          enter image description here

          $1+2+7+8+11+12+13+14=68\1+3+6+8+10+12+13+15=68\1+4+5+8+10+11+14+15=68\1+4+6+7+9+12+14+15=68$




          EDIT:

          Here is a different method that I believe generalises to any number of sets. I will use 5 sets in this description.




          Label the sets A,B,C,D,E.

          Pick any region, and calculate the number of that region as follows:


          1. Start with zero.

          2. If the region lies in an odd number of the sets A,B,C,D,E, then add $2^4=16$.

          3. If the region lies in an odd number of the sets A,B,C,D, then add $2^3=8$.

          4. If the region lies in an odd number of the sets A,B,C, then add $2^2=4$.

          5. If the region lies in an odd number of the sets A,B, then add $2^1=2$.

          6. If the region lies in an odd number of the sets A,C, then add $2^0=1$.

          The number you end up with is the number for that region.


          Put differently, if a,b,c,d,e are variables which are $1$ if the region lies in a particular set and $0$ otherwise, then the region is given a binary number where the bits are (a^b^c^d^e), (a^b^c^d), (a^b^c), (a^b), (a^c) where the ^ symbol indicates the exclusive or (XOR) operation.


          The order of the bits does not matter. I think you are even free to use any XOR expressions of the variables, as long as they are linearly independent and contain at least one XOR operation.







          share|improve this answer














          Here is a method for constructing a solution without the use of a computer.



          [EDIT: This generalises to any even number of sets, but not to odd numbers. See the edit at the end for a different method that I think will work for any number of sets.]




          Associate the first four powers of $2$ with the ellipses, i.e. label them $1$, $2$, $4$, and $8$. Then for each region, give it the number that is the sum of all the ellipse numbers it lies in.


          While this assigns the numbers $1$ to $15$ to the regions inside the ellipses, the ellipses don't all add up to the same amount. This is because of that one bit that all the regions within an ellipse share.


          To fix this problem, change every number with even bit parity to its complement, i.e. for every region that belongs to exactly $2$ or $4$ ellipses change its number to 15 minus that number. This changes four numbers in each ellipse, in such a way that each bit is used in exactly half the numbers in every ellipse. This gives the following picture:

          enter image description here


          Every ellipse adds up the the same amount, namely $60 = 4(1+2+4+8)$. Unfortunately the region that was $15$ became $0$, so the regions are now numbered 0 to 14. So all that is left to do is to add 1 to all the numbers to get the following valid solution where each ellipse adds to $68$:

          enter image description here

          $1+2+7+8+11+12+13+14=68\1+3+6+8+10+12+13+15=68\1+4+5+8+10+11+14+15=68\1+4+6+7+9+12+14+15=68$




          EDIT:

          Here is a different method that I believe generalises to any number of sets. I will use 5 sets in this description.




          Label the sets A,B,C,D,E.

          Pick any region, and calculate the number of that region as follows:


          1. Start with zero.

          2. If the region lies in an odd number of the sets A,B,C,D,E, then add $2^4=16$.

          3. If the region lies in an odd number of the sets A,B,C,D, then add $2^3=8$.

          4. If the region lies in an odd number of the sets A,B,C, then add $2^2=4$.

          5. If the region lies in an odd number of the sets A,B, then add $2^1=2$.

          6. If the region lies in an odd number of the sets A,C, then add $2^0=1$.

          The number you end up with is the number for that region.


          Put differently, if a,b,c,d,e are variables which are $1$ if the region lies in a particular set and $0$ otherwise, then the region is given a binary number where the bits are (a^b^c^d^e), (a^b^c^d), (a^b^c), (a^b), (a^c) where the ^ symbol indicates the exclusive or (XOR) operation.


          The order of the bits does not matter. I think you are even free to use any XOR expressions of the variables, as long as they are linearly independent and contain at least one XOR operation.








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 26 at 9:34

























          answered Nov 25 at 19:57









          Jaap Scherphuis

          14.3k12463




          14.3k12463








          • 2




            I assume this procedure can be generalized for Venn diagrams with any number of sets. Am I correct? Five sets in particular?
            – Bernardo Recamán Santos
            Nov 26 at 0:04






          • 1




            @BernardoRecamánSantos: I think it only works for an even number of sets, unfortunately.
            – Jaap Scherphuis
            Nov 26 at 5:43








          • 1




            @BernardoRecamánSantos I have added a different method that I think generalises to any number of sets.
            – Jaap Scherphuis
            Nov 26 at 9:36














          • 2




            I assume this procedure can be generalized for Venn diagrams with any number of sets. Am I correct? Five sets in particular?
            – Bernardo Recamán Santos
            Nov 26 at 0:04






          • 1




            @BernardoRecamánSantos: I think it only works for an even number of sets, unfortunately.
            – Jaap Scherphuis
            Nov 26 at 5:43








          • 1




            @BernardoRecamánSantos I have added a different method that I think generalises to any number of sets.
            – Jaap Scherphuis
            Nov 26 at 9:36








          2




          2




          I assume this procedure can be generalized for Venn diagrams with any number of sets. Am I correct? Five sets in particular?
          – Bernardo Recamán Santos
          Nov 26 at 0:04




          I assume this procedure can be generalized for Venn diagrams with any number of sets. Am I correct? Five sets in particular?
          – Bernardo Recamán Santos
          Nov 26 at 0:04




          1




          1




          @BernardoRecamánSantos: I think it only works for an even number of sets, unfortunately.
          – Jaap Scherphuis
          Nov 26 at 5:43






          @BernardoRecamánSantos: I think it only works for an even number of sets, unfortunately.
          – Jaap Scherphuis
          Nov 26 at 5:43






          1




          1




          @BernardoRecamánSantos I have added a different method that I think generalises to any number of sets.
          – Jaap Scherphuis
          Nov 26 at 9:36




          @BernardoRecamánSantos I have added a different method that I think generalises to any number of sets.
          – Jaap Scherphuis
          Nov 26 at 9:36










          up vote
          4
          down vote













          Computational Solution




          Diagram




          I only wanted to do the math if I had to, so I made a computer program to solve this problem written in C (view it on GitHub here):



          How It Works




          Each section is identified and placed in an array based on their letter's alphabetical index. The program then uses a brute-force approach. It works how you would expect, it cycles through every possible permutation and outputs a solution if the sums of each set are equal. You can view the output here.




          Example solution



          As seen in this diagram a solution is given by the following array in the alphabetical form:



          [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O]




          = [10, 9, 11, 13, 6, 8, 5, 1, 3, 7, 4, 2, 12, 14, 15]




          First Eclipse Sum




          A + B + C + D + E + F + G + H = 10 + 9 + 11 + 13 + 6 + 8 + 5 + 1 = 63




          Second Eclipse Sum




          I + J + M + B + C + E + H + N = 3 + 7 + 12 + 9 + 11 + 6 + 1 + 14 = 63




          Third Eclipse Sum




          K + L + J + M + C + E + F + D = 4 + 2 + 7 + 12 + 11 + 6 + 8 + 13 = 63




          Fourth Eclipse Sum




          L + O + M + E + N + H + G + F = 2 + 15 + 12 + 6 + 14 + 1 + 5 + 8 = 63




          Other Solutions




          I ended up finding many solutions, here are a few in the same alphabetical form:




          [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O]



          Example 1:




          [11, 9, 10, 13, 8, 7, 4, 1, 3, 6, 5, 2, 12, 14, 15]




          Example 2:




          [9, 11, 10, 13, 7, 8, 4, 1, 3, 5, 6, 2, 12, 14, 15]




          Example 3:




          [11, 10, 9, 13, 6, 8, 4, 1, 3, 7, 5, 2, 12, 14, 15]




          Conclusion




          There are many solutions based on my code. If you want to see all of them just compile and run the code linked at the top of this post. Or view the linked youtube video showing a small amount of the many there are. So it is possible and there are many solutions, not just one - given that my code is correct.







          share|improve this answer










          New contributor




          W.Ambrozic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • Nice! I was running some code too but gave up after it crashed.
            – Hugh
            Nov 25 at 19:35










          • @W.Ambrozic: Of your solutions, which has the largest magic sum, and which the least?
            – Bernardo Recamán Santos
            yesterday






          • 1




            @BernardoRecamánSantos Given that I was using brute force to find all permutations of the 15 values, finding all solutions would take days; however, I recently optimized my code, and if it worked it should have looked at every permutation while checking for a maximum and minimum sum. So far I got a maximum sum of 77 with the solution array:[4,5,14,6,15,10,12,11,3,9,2,8,13,7,1], and a minimum sum of 51 with the solution array:[12,7,3,8,1,5,13,2,15,10,14,6,4,9,11] (in the form mentioned in my answer). I'll post my results when I have time to make sure my optimization did not skip any solutions.
            – W.Ambrozic
            4 hours ago










          • @W.Ambrozic: Fascinating stuff!
            – Bernardo Recamán Santos
            4 hours ago















          up vote
          4
          down vote













          Computational Solution




          Diagram




          I only wanted to do the math if I had to, so I made a computer program to solve this problem written in C (view it on GitHub here):



          How It Works




          Each section is identified and placed in an array based on their letter's alphabetical index. The program then uses a brute-force approach. It works how you would expect, it cycles through every possible permutation and outputs a solution if the sums of each set are equal. You can view the output here.




          Example solution



          As seen in this diagram a solution is given by the following array in the alphabetical form:



          [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O]




          = [10, 9, 11, 13, 6, 8, 5, 1, 3, 7, 4, 2, 12, 14, 15]




          First Eclipse Sum




          A + B + C + D + E + F + G + H = 10 + 9 + 11 + 13 + 6 + 8 + 5 + 1 = 63




          Second Eclipse Sum




          I + J + M + B + C + E + H + N = 3 + 7 + 12 + 9 + 11 + 6 + 1 + 14 = 63




          Third Eclipse Sum




          K + L + J + M + C + E + F + D = 4 + 2 + 7 + 12 + 11 + 6 + 8 + 13 = 63




          Fourth Eclipse Sum




          L + O + M + E + N + H + G + F = 2 + 15 + 12 + 6 + 14 + 1 + 5 + 8 = 63




          Other Solutions




          I ended up finding many solutions, here are a few in the same alphabetical form:




          [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O]



          Example 1:




          [11, 9, 10, 13, 8, 7, 4, 1, 3, 6, 5, 2, 12, 14, 15]




          Example 2:




          [9, 11, 10, 13, 7, 8, 4, 1, 3, 5, 6, 2, 12, 14, 15]




          Example 3:




          [11, 10, 9, 13, 6, 8, 4, 1, 3, 7, 5, 2, 12, 14, 15]




          Conclusion




          There are many solutions based on my code. If you want to see all of them just compile and run the code linked at the top of this post. Or view the linked youtube video showing a small amount of the many there are. So it is possible and there are many solutions, not just one - given that my code is correct.







          share|improve this answer










          New contributor




          W.Ambrozic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • Nice! I was running some code too but gave up after it crashed.
            – Hugh
            Nov 25 at 19:35










          • @W.Ambrozic: Of your solutions, which has the largest magic sum, and which the least?
            – Bernardo Recamán Santos
            yesterday






          • 1




            @BernardoRecamánSantos Given that I was using brute force to find all permutations of the 15 values, finding all solutions would take days; however, I recently optimized my code, and if it worked it should have looked at every permutation while checking for a maximum and minimum sum. So far I got a maximum sum of 77 with the solution array:[4,5,14,6,15,10,12,11,3,9,2,8,13,7,1], and a minimum sum of 51 with the solution array:[12,7,3,8,1,5,13,2,15,10,14,6,4,9,11] (in the form mentioned in my answer). I'll post my results when I have time to make sure my optimization did not skip any solutions.
            – W.Ambrozic
            4 hours ago










          • @W.Ambrozic: Fascinating stuff!
            – Bernardo Recamán Santos
            4 hours ago













          up vote
          4
          down vote










          up vote
          4
          down vote









          Computational Solution




          Diagram




          I only wanted to do the math if I had to, so I made a computer program to solve this problem written in C (view it on GitHub here):



          How It Works




          Each section is identified and placed in an array based on their letter's alphabetical index. The program then uses a brute-force approach. It works how you would expect, it cycles through every possible permutation and outputs a solution if the sums of each set are equal. You can view the output here.




          Example solution



          As seen in this diagram a solution is given by the following array in the alphabetical form:



          [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O]




          = [10, 9, 11, 13, 6, 8, 5, 1, 3, 7, 4, 2, 12, 14, 15]




          First Eclipse Sum




          A + B + C + D + E + F + G + H = 10 + 9 + 11 + 13 + 6 + 8 + 5 + 1 = 63




          Second Eclipse Sum




          I + J + M + B + C + E + H + N = 3 + 7 + 12 + 9 + 11 + 6 + 1 + 14 = 63




          Third Eclipse Sum




          K + L + J + M + C + E + F + D = 4 + 2 + 7 + 12 + 11 + 6 + 8 + 13 = 63




          Fourth Eclipse Sum




          L + O + M + E + N + H + G + F = 2 + 15 + 12 + 6 + 14 + 1 + 5 + 8 = 63




          Other Solutions




          I ended up finding many solutions, here are a few in the same alphabetical form:




          [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O]



          Example 1:




          [11, 9, 10, 13, 8, 7, 4, 1, 3, 6, 5, 2, 12, 14, 15]




          Example 2:




          [9, 11, 10, 13, 7, 8, 4, 1, 3, 5, 6, 2, 12, 14, 15]




          Example 3:




          [11, 10, 9, 13, 6, 8, 4, 1, 3, 7, 5, 2, 12, 14, 15]




          Conclusion




          There are many solutions based on my code. If you want to see all of them just compile and run the code linked at the top of this post. Or view the linked youtube video showing a small amount of the many there are. So it is possible and there are many solutions, not just one - given that my code is correct.







          share|improve this answer










          New contributor




          W.Ambrozic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          Computational Solution




          Diagram




          I only wanted to do the math if I had to, so I made a computer program to solve this problem written in C (view it on GitHub here):



          How It Works




          Each section is identified and placed in an array based on their letter's alphabetical index. The program then uses a brute-force approach. It works how you would expect, it cycles through every possible permutation and outputs a solution if the sums of each set are equal. You can view the output here.




          Example solution



          As seen in this diagram a solution is given by the following array in the alphabetical form:



          [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O]




          = [10, 9, 11, 13, 6, 8, 5, 1, 3, 7, 4, 2, 12, 14, 15]




          First Eclipse Sum




          A + B + C + D + E + F + G + H = 10 + 9 + 11 + 13 + 6 + 8 + 5 + 1 = 63




          Second Eclipse Sum




          I + J + M + B + C + E + H + N = 3 + 7 + 12 + 9 + 11 + 6 + 1 + 14 = 63




          Third Eclipse Sum




          K + L + J + M + C + E + F + D = 4 + 2 + 7 + 12 + 11 + 6 + 8 + 13 = 63




          Fourth Eclipse Sum




          L + O + M + E + N + H + G + F = 2 + 15 + 12 + 6 + 14 + 1 + 5 + 8 = 63




          Other Solutions




          I ended up finding many solutions, here are a few in the same alphabetical form:




          [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O]



          Example 1:




          [11, 9, 10, 13, 8, 7, 4, 1, 3, 6, 5, 2, 12, 14, 15]




          Example 2:




          [9, 11, 10, 13, 7, 8, 4, 1, 3, 5, 6, 2, 12, 14, 15]




          Example 3:




          [11, 10, 9, 13, 6, 8, 4, 1, 3, 7, 5, 2, 12, 14, 15]




          Conclusion




          There are many solutions based on my code. If you want to see all of them just compile and run the code linked at the top of this post. Or view the linked youtube video showing a small amount of the many there are. So it is possible and there are many solutions, not just one - given that my code is correct.








          share|improve this answer










          New contributor




          W.Ambrozic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer








          edited yesterday





















          New contributor




          W.Ambrozic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered Nov 25 at 19:02









          W.Ambrozic

          436




          436




          New contributor




          W.Ambrozic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          W.Ambrozic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          W.Ambrozic is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.












          • Nice! I was running some code too but gave up after it crashed.
            – Hugh
            Nov 25 at 19:35










          • @W.Ambrozic: Of your solutions, which has the largest magic sum, and which the least?
            – Bernardo Recamán Santos
            yesterday






          • 1




            @BernardoRecamánSantos Given that I was using brute force to find all permutations of the 15 values, finding all solutions would take days; however, I recently optimized my code, and if it worked it should have looked at every permutation while checking for a maximum and minimum sum. So far I got a maximum sum of 77 with the solution array:[4,5,14,6,15,10,12,11,3,9,2,8,13,7,1], and a minimum sum of 51 with the solution array:[12,7,3,8,1,5,13,2,15,10,14,6,4,9,11] (in the form mentioned in my answer). I'll post my results when I have time to make sure my optimization did not skip any solutions.
            – W.Ambrozic
            4 hours ago










          • @W.Ambrozic: Fascinating stuff!
            – Bernardo Recamán Santos
            4 hours ago


















          • Nice! I was running some code too but gave up after it crashed.
            – Hugh
            Nov 25 at 19:35










          • @W.Ambrozic: Of your solutions, which has the largest magic sum, and which the least?
            – Bernardo Recamán Santos
            yesterday






          • 1




            @BernardoRecamánSantos Given that I was using brute force to find all permutations of the 15 values, finding all solutions would take days; however, I recently optimized my code, and if it worked it should have looked at every permutation while checking for a maximum and minimum sum. So far I got a maximum sum of 77 with the solution array:[4,5,14,6,15,10,12,11,3,9,2,8,13,7,1], and a minimum sum of 51 with the solution array:[12,7,3,8,1,5,13,2,15,10,14,6,4,9,11] (in the form mentioned in my answer). I'll post my results when I have time to make sure my optimization did not skip any solutions.
            – W.Ambrozic
            4 hours ago










          • @W.Ambrozic: Fascinating stuff!
            – Bernardo Recamán Santos
            4 hours ago
















          Nice! I was running some code too but gave up after it crashed.
          – Hugh
          Nov 25 at 19:35




          Nice! I was running some code too but gave up after it crashed.
          – Hugh
          Nov 25 at 19:35












          @W.Ambrozic: Of your solutions, which has the largest magic sum, and which the least?
          – Bernardo Recamán Santos
          yesterday




          @W.Ambrozic: Of your solutions, which has the largest magic sum, and which the least?
          – Bernardo Recamán Santos
          yesterday




          1




          1




          @BernardoRecamánSantos Given that I was using brute force to find all permutations of the 15 values, finding all solutions would take days; however, I recently optimized my code, and if it worked it should have looked at every permutation while checking for a maximum and minimum sum. So far I got a maximum sum of 77 with the solution array:[4,5,14,6,15,10,12,11,3,9,2,8,13,7,1], and a minimum sum of 51 with the solution array:[12,7,3,8,1,5,13,2,15,10,14,6,4,9,11] (in the form mentioned in my answer). I'll post my results when I have time to make sure my optimization did not skip any solutions.
          – W.Ambrozic
          4 hours ago




          @BernardoRecamánSantos Given that I was using brute force to find all permutations of the 15 values, finding all solutions would take days; however, I recently optimized my code, and if it worked it should have looked at every permutation while checking for a maximum and minimum sum. So far I got a maximum sum of 77 with the solution array:[4,5,14,6,15,10,12,11,3,9,2,8,13,7,1], and a minimum sum of 51 with the solution array:[12,7,3,8,1,5,13,2,15,10,14,6,4,9,11] (in the form mentioned in my answer). I'll post my results when I have time to make sure my optimization did not skip any solutions.
          – W.Ambrozic
          4 hours ago












          @W.Ambrozic: Fascinating stuff!
          – Bernardo Recamán Santos
          4 hours ago




          @W.Ambrozic: Fascinating stuff!
          – Bernardo Recamán Santos
          4 hours 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%2f75709%2ffour-magic-ellipses%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

          AnyDesk - Fatal Program Failure

          How to calibrate 16:9 built-in touch-screen to a 4:3 resolution?

          QoS: MAC-Priority for clients behind a repeater