Fill each box of the magic square, with a number such that the number adds up to 18 horizontally, vertically and diagonally? #[(, ,5), (,8 ,), (, ,9)]#
1 Answer
Apr 18, 2016
The constraints are incompatible, resulting in no solution.
Explanation:
Attempting to find a solution, fill in one digit at a time to satisfy the constraints:
#[[?, ?, 5], [?, 8, ?], [?, ?, 9]] ->[[1, ?, 5], [?, 8, ?], [?, ?, 9]] ->[[1, 12, 5], [?, 8, ?], [?, ?, 9]]#
#->[[1, 12, 5], [?, 8, 4], [?, ?, 9]]->[[1, 12, 5], [6, 8, 4], [?, ?, 9]] ->[[1, 12, 5], [6, 8, 4], [11, ?, 9]]#
# ->[[1, 12, color(red)(5)], [6, color(red)(8), 4], [color(red)(11), -2, 9]]#
The rows, columns and one of the diagonals sum correctly, but the back diagonal does not.