Reciprocal Arrangements

by Simon Whitechapel

Some magic squares are born, not made. Take, for example, the reciprocal 1/19 in base 10. Unlike 1/3 in the same base, which repeats after one digit (0·333...), it repeats after 18 digits, like this:

0 5 2 6 3 1 5 7 8 9 4 7 3 6 8 4 2 1 0 5 2 6 3 1 5 7 8 9 4 7 3 6 8 4 2 1 0 5 2 6 3 1 5 7 8 9 4 7 3 6 8 4 2 1 0...

The remainders at each step are:

1 10 5 12 6 3 11 15 17 18 9 14 7 13 16 8 4 2 1 10 5 12 6 3 11 15 17 18 9 14 7 13 16 8 4 2 1 10 5 12 6 3 11 15 17 18 9 14 7 13 16 8 4 2 1...

Because all the numbers 1 through 18 are represented in the remainders, the digits of the multiples of 1/19 (2/19, 3/19, and so on) are cyclic permutations of the digits of 1/19, like this:

01/19 = 0·0 5 2 6 3 1 5 7 8 9 4 7 3 6 8 4 2 1...
02/19 = 0·1 0 5 2 6 3 1 5 7 8 9 4 7 3 6 8 4 2...
03/19 = 0·1 5 7 8 9 4 7 3 6 8 4 2 1 0 5 2 6 3...
04/19 = 0·2 1 0 5 2 6 3 1 5 7 8 9 4 7 3 6 8 4...
05/19 = 0·2 6 3 1 5 7 8 9 4 7 3 6 8 4 2 1 0 5...
06/19 = 0·3 1 5 7 8 9 4 7 3 6 8 4 2 1 0 5 2 6...
07/19 = 0·3 6 8 4 2 1 0 5 2 6 3 1 5 7 8 9 4 7...
08/19 = 0·4 2 1 0 5 2 6 3 1 5 7 8 9 4 7 3 6 8...
09/19 = 0·4 7 3 6 8 4 2 1 0 5 2 6 3 1 5 7 8 9...
10/19 = 0·5 2 6 3 1 5 7 8 9 4 7 3 6 8 4 2 1 0...
11/19 = 0·5 7 8 9 4 7 3 6 8 4 2 1 0 5 2 6 3 1...
12/19 = 0·6 3 1 5 7 8 9 4 7 3 6 8 4 2 1 0 5 2...
13/19 = 0·6 8 4 2 1 0 5 2 6 3 1 5 7 8 9 4 7 3...
14/19 = 0·7 3 6 8 4 2 1 0 5 2 6 3 1 5 7 8 9 4...
15/19 = 0·7 8 9 4 7 3 6 8 4 2 1 0 5 2 6 3 1 5...
16/19 = 0·8 4 2 1 0 5 2 6 3 1 5 7 8 9 4 7 3 6...
17/19 = 0·8 9 4 7 3 6 8 4 2 1 0 5 2 6 3 1 5 7...
18/19 = 0·9 4 7 3 6 8 4 2 1 0 5 2 6 3 1 5 7 8...

Each row sums to 81, and because each row is a cyclic permutation of the digits of 1/19, so does each column. And, in the particular case of 1/19, so do the digits of the left-right and right-left diagonal:

01/19 = 0·0 5 2 6 3 1 5 7 8 9 4 7 3 6 8 4 2 1...
02/19 = 0·1 0 5 2 6 3 1 5 7 8 9 4 7 3 6 8 4 2...
03/19 = 0·1 5 7 8 9 4 7 3 6 8 4 2 1 0 5 2 6 3...
04/19 = 0·2 1 0 5 2 6 3 1 5 7 8 9 4 7 3 6 8 4...
05/19 = 0·2 6 3 1 5 7 8 9 4 7 3 6 8 4 2 1 0 5...
06/19 = 0·3 1 5 7 8 9 4 7 3 6 8 4 2 1 0 5 2 6...
07/19 = 0·3 6 8 4 2 1 0 5 2 6 3 1 5 7 8 9 4 7...
08/19 = 0·4 2 1 0 5 2 6 3 1 5 7 8 9 4 7 3 6 8...
09/19 = 0·4 7 3 6 8 4 2 1 0 5 2 6 3 1 5 7 8 9...
10/19 = 0·5 2 6 3 1 5 7 8 9 4 7 3 6 8 4 2 1 0...
11/19 = 0·5 7 8 9 4 7 3 6 8 4 2 1 0 5 2 6 3 1...
12/19 = 0·6 3 1 5 7 8 9 4 7 3 6 8 4 2 1 0 5 2...
13/19 = 0·6 8 4 2 1 0 5 2 6 3 1 5 7 8 9 4 7 3...
14/19 = 0·7 3 6 8 4 2 1 0 5 2 6 3 1 5 7 8 9 4...
15/19 = 0·7 8 9 4 7 3 6 8 4 2 1 0 5 2 6 3 1 5...
16/19 = 0·8 4 2 1 0 5 2 6 3 1 5 7 8 9 4 7 3 6...
17/19 = 0·8 9 4 7 3 6 8 4 2 1 0 5 2 6 3 1 5 7...
18/19 = 0·9 4 7 3 6 8 4 2 1 0 5 2 6 3 1 5 7 8...

Note: If the digits of one diagonal sum to the magic total of each row and column, so must the digits of the other diagonal: each digit, d, in one diagonal has a mirrored digit in the other that equals 9-d (see above). The sum of both diagonals therefore equals 9 x 18, or 162. If the sum of one diagonal is 81, the sum of the other must be 162 - 81 = 81. Similar reasoning applies to other prime reciprocal magic squares.
1/19 therefore forms a true magic square, or rather, because it only uses the digits 0-9, a true pseudo-magic square.

Pseudo-magic squares like this are rare: the next in base 10 is formed by the multiples of 1/383.* When you add other bases, however, they become slightly more common, and the table below lists a selection of them, giving the prime, base, and magic total (derived from the formula base-1 x num-1 / 2).

Prime
Base
Magic Total
191081
5312286
5334858
59229
67233
83241
8919792
167685,561
199413,960
19915014,751
2112105
2233222
29314721,316
3075612
383101,719
38936069,646
3975792
42133870,770
48761,215
503420105,169
587368107,531
5933592
6318727,090
677407137,228
757759286,524
787134,716
8113810
9771,222595,848
1,033115,160
1,18713579,462
1,30752,612
1,499117,490
1,637509415,544
1,8771916,884
1,877553517,776
1,9312,8982,795,605
1,933146140,070
2,0112625,125
2,02721,013
2,1416366,340
2,179448486,783
2,4174,0294,865,824
2,53921,269
2,5791,7202,215,791
2,6573,3224,410,288
2,8432,6863,815,385
3,18797152,928
3,3731116,860
3,631420760,485
3,659126228,625
3,9473567,082
4,001421840,000
4,0192,0114,038,090
4,127322662,223
4,26122,130
4,337239515,984
4,3572,7646,017,814
4,81322,406
5,1015391,371,900
5,52767182,358
5,64775208,902
5,8613,66410,732,590
5,86785246,372
6,0675421,640,853
6,11336,112
6,19775229,252
6,27723,138
6,389133421,608
6,8571,6965,810,460
6,8691,2734,368,048
7,019114396,517
7,28323,641
7,3511551,450
8,11731121,740
8,38724,193
8,60938159,248
9,029110492,026
10,0611255,330
10,1331465,858
10,259181923,220
10,2895853,004,096
10,45729146,384
10,45761313,680
10,52978405,328
10,667837,331
10,831732,490
10,859838,003
11,50355310,554
11,83194550,095
11,8134362,569,110
13,46345296,164
13,5131487,828
13,627527,252
13,9131931,335,552
14,54391654,390
15,319315,318
15,37327,686
15,74917125,984
16,34928,174
16,57315116,004
17,3271311,126,190
22,123322,122
22,259655,645
22,409322,408
22,817322,816
24,229660,570
24,859324,858
30,707215,353
31,35760925,002

Magic prime reciprocals

*The list of magic prime reciprocals in base 10 begins 19, 383, 32327, 34061, 45341, 61967, 65699, 117541, 158771... (see On-Line Encyclopedia of Integer Sequences).


Maths Index

Main Index