Thank you for your solutions to John from State College Area High School,
Pennsylvania, USA, Andrei Lazanu from School
No. 205, Bucharest, Romania, Sarah from Madras College St Andrew's Scotland
and Patrick
and his friend David Lee Yick Ming from Hkma
David Li Kwok Po College, Hong Kong. This is
John's solution.
First, I show that for every solution with a
magic total
there is a corresponding solution
with magic total
. Consider what would
happen if every element
in a solution were
replaced with the element
. All elements
from 0-9 would still be used, and all of the rows
would have a sum 30 minus the original total.
Since all the row-sums were initially equal, they
would still be, but each sum would be 30 minus
the old one, that is
.
Now I'll find all possible magic arrangements.
First, I'll introduce my notation. Call the top
centre vertex (occupied by the 2 in the example
picture)
. Call the lower left one
(currently 5). Call the lower right one (4)
.
Arbitrarily, I'll set
, since solutions that
are reflections of each other are considered to
be identical.
Now, it is clear that the sum of the totals of
all four rows will be equal to
, since
, and
are the only elements to appear in all four
rows. This simplifies to
. If all
four rows are equal, the magic total, in terms of
, and
, will be
since
there are four rows. For the magic sum to be
integral,
must be one less than a
multiple of 4. Possible sums for
are
then 3 (
), 7 (
), 11 (
), and 15
(
). We need not consider any arrangements
with
, as they would have corresponding
arrangements with
as discussed in the
first paragraph. We may also ignore
as
values that small cannot be chosen from the
integers 1 through 9. The possible sums
are therefore 7, 11, and 15, with
,
and 15 respectively.
We may further narrow the search by eliminating
the case
. When
, the magic
sum
also =15. Since
and
appear
together in one row, the other number needed to
give a sum of 15 in that row is
. However
cannot appear in that row as it must appear
elsewhere. Therefore
or 11. Now I'll
use a brute force search to find all solutions.
All possible arrangements are listed below. I
checked each of them to determine if it yielded a
Magic W. Those that did have the numbers listed
as they appear from left to right in the W.
Those that did not are marked only with an 'X'.
For
For
There are 6 solutions with
, and therefore 6 corresponding
ones with
, for a total of twelve. All are listed below: