|
Some comments below the spoiler protection, but not a full solution.
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2
The smallest magic square is of order 3, so there's no solution for n = 2. For higher n, number the sides from 0 to n-1 and the magic square on side s then uses consecutive numbers from s + 1 to s + n^2. <*>
For a magic square of order 3, it is easily proved[1] that the sum is always 3 times the center number; and the center squares, of course, do not move. When the conditions described in the puzzle are met, side 0, which has 5 in the center, must have a sum of 15 and thus can only contain the numbers 1 to 9, which are the ones that were there originally. But then this side is definitely all one color.
But now consider only the remaining numbers, starting at 10. Side 1 has a 14 in the center, so its sum must be 42; to form a magic square, the only possible numbers are then 9 lowest, 42. And so on for each side in turn; thus the cube is indeed solved.
However, this is not a proof even for the order-3 cube, because I have quietly assumed that the magic squares MUST be laid out as indicated at <*> above. There might be another, less obvious arrangement of numbers that would also produce 6 magic squares.
My conjecture is that there isn't one, and that this and the center- square property both hold for all odd n, in which case the answer is yes for all odd n. But I could not begin to prove it. And for n even, where there are no fixed centers, the problem is that much harder.
[1] With the obvious lettering of the cells, the sums A+B+C, D+E+F, G+H+I, A+D+G, B+D+H, C+F+I, A+E+I, C+E+G all equal S. So 2S = (A+B+C) + (G+H+I) = (A+G) + (B+H) + (C+I) = (S-E) + (S-E) + (S-E) = 3S - 3E; thus S = 3E.
|