A F
B D E
C G
A+B+C = B+D+E = F+E+G
Numbers 1,2,3,4,5,6,7
Puzzling Stack Exchange is a question and answer site for those who create, solve, and study puzzles. It only takes a minute to sign up.
Sign up to join this communityA F
B D E
C G
A+B+C = B+D+E = F+E+G
Numbers 1,2,3,4,5,6,7
The same 56 solutions but with logical reasoning instead of bruteforcing:
Firstly, let's assume that $A<C$, $F<G$ and $B<E$ (otherwise we can swap A/C, F/G or whole ABC/FEG columns) to find essentially different solutions.
Let $S=A+B+C=B+D+E=F+E+G$. We get $3S=(A+B+C+D+E+F+G)+B+E=28+B+E$ (since we know that A-G are 1-7 in some order). That means that $(B+E)\mod3=2$ (since $28+B+E$ needs to be divisible by 3).
Case 1) $B+E=5$, so $S=11$ and $D=6$. We can get: $B=2$ and $E=3$, to find $(A=4,C=5,F=1,G=7)$, or $B=1$ and $E=4$ to find $(A=3,C=7,F=2,G=5)$.
Case 2) $B+E=8$, so $S=12$ and $D=4$. We can get $B=3$ and $E=5$, to find $(A=2,C=7,F=1,G=6)$, or $B=2$ and $E=6$ to find $(A=3,C=7,F=1,G=5)$, or $B=1$ and $E=7$ to find $(A=5,C=6,F=2,G=3)$.
Case 3) $B+E=11$, so $S=13$ and $D=2$. We can get $B=5$ and $E=6$, to find $(A=1,C=7,F=3,G=4)$, or $B=4$ and $E=7$ to find $(A=3,C=6,F=1,G=5)$. So, we have 7 classes of solutions, each of them gives 8 solutions, with a grand total of 7*8=56.
There are 56 solutions:
1 3 7 6 2 4 5 (Sum: 11)
1 3 7 6 2 5 4 (Sum: 11)
1 5 6 4 3 2 7 (Sum: 12)
1 5 6 4 3 7 2 (Sum: 12)
1 5 7 2 6 3 4 (Sum: 13)
1 5 7 2 6 4 3 (Sum: 13)
1 6 5 4 2 3 7 (Sum: 12)
1 6 5 4 2 7 3 (Sum: 12)
1 7 5 2 4 3 6 (Sum: 13)
1 7 5 2 4 6 3 (Sum: 13)
2 3 7 4 5 1 6 (Sum: 12)
2 3 7 4 5 6 1 (Sum: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m to find these solutions.
Sum:
12
is
1 2 5 4 3 6 7
Method:
$4$ in the middle looks pretty likely, so let's give $3\;4\;5$ a go!
With this solution, we also have the two diagonals: $2+4+6=1+4+7=12$.
1 2
5 4 3
6 7
Methodology:
we want to put the largest and smallest numbers out on the corners, not on the intersections, so as to make all the sums as near as possible to equal. So we try
1 2
3 4 5
6 7
Then the sum across is 12, and the sums down are 10 and 14. So just swapping 3 and 5 is enough to make it correct.
First we construct a square A,C,G,F then we draw the bisector BE of the sides AC and FG. We set A=3, C=7, F=5, G=2. Then we set B=1, E=4, and on the middle of the bisector we put the D=6. All rows and columns add to 11.