Place nine different digits (from 0-9) into a 3x3 grid, such that the eight sums formed by the three rows, three columns and two diagonals are consecutive numbers.

Both the matrices A and B are valid solutions

to the problem, where:

1 9 4

A = 8 7 3

6 0 5

For A the sums of the main diagonals are 17, 13. The column sums are 15, 16, 12 and the row sums are 14, 18, 11.

and,

3 9 4

B = 1 2 6

8 0 5

For B the sums of the main diagonals are 10, 14. The column sums are 12, 11, 15 and the row sums are 16, 9, 13.