Sagot :
Bonjour
carré magique n°1 :
-3 | 2 | 1
A | B | C
-1 | D | E
1ère ligne :
S = -3 + 2 + 1 = -3 + 3 = 0
1ere colonne :
-3 + A - 1 = 0
A = 1 + 3 = 4
diagonale :
-1 + B + 1 = 0
B = 0
2eme ligne :
4 + 0 + C = 0
C = -4
3eme colonne :
1 - 4 + E = 0
E = 4 - 1 = 3
3eme ligne :
-1 + D + 3 = 0
D = -3 + 1 = -2
-3 | 2 | 1
4 | 0 | -4
-1 | -2 | 3
carré magique n°2 :
A | B | -5 | 11 | C
D | 12 | -2 | -11 | E
-1 | -10 | 6 | F | 8
7 | G | 9 | H | -9
10 | 1 | -8 | 3 | J
3eme colonne :
S = -5 - 2 + 6 + 9 - 8
S = -15 + 15
S = 0
5eme ligne :
10 + 1 - 8 + 3 + J = 0
J = -14 + 8 = -6
3eme ligne :
-1 - 10 + 6 + F + 8 = 0
F = 11 - 14 = -3
4eme colonne :
11 - 11 - 3 + H + 3 = 0
H = 0
4eme ligne :
7 + G + 9 + 0 - 9 = 0
G = -7
2eme colonne :
B + 12 - 10 - 7 + 1 = 0
B = -13 + 17 = 4
diagonale :
A + 12 + 6 + 0 - 6 = 0
A = -12
1ere ligne :
-12 + 4 - 5 + 11 + C = 0
C = 17 - 15 = 2
1ere colonne :
-12 + D - 1 + 7 + 10 = 0
D = 13 - 17 = -4
5eme colonne :
2 + E + 8 - 9 - 6 = 0
E = -10 + 15 = 5
-12 | 4 | -5 | 11 | 2
-4 | 12 | -2 | -11 | 5
-1 | -10 | 6 | -3 | 8
7 | -7 | 9 | 0 | -9
10 | 1 | -8 | 3 | -6