Prime reciprocal magic square

1

A prime reciprocal magic square is a magic square using the decimal digits of the reciprocal of a prime number.

Formulation

Basics

In decimal, unit fractions and have no repeating decimal, while repeats 0.3333\dots indefinitely. The remainder of, on the other hand, repeats over six digits as, Consequently, multiples of one-seventh exhibit cyclic permutations of these six digits: If the digits are laid out as a square, each row and column sums to This yields the smallest base-10 non-normal, prime reciprocal magic square In contrast with its rows and columns, the diagonals of this square do not sum to 27; however, their mean is 27, as one diagonal adds to 23 while the other adds to 31. All prime reciprocals in any base with a p - 1 period will generate magic squares where all rows and columns produce a magic constant, and only a select few will be full, such that their diagonals, rows and columns collectively yield equal sums.

Decimal expansions

In a full, or otherwise prime reciprocal magic square with p - 1 period, the even number of k−th rows in the square are arranged by multiples of 1/p — not necessarily successively — where a magic constant can be obtained. For instance, an even repeating cycle from an odd, prime reciprocal of p that is divided into n−digit strings creates pairs of complementary sequences of digits that yield strings of nines (9) when added together: This is a result of Midy's theorem. These complementary sequences are generated between multiples of prime reciprocals that add to 1. More specifically, a factor n in the numerator of the reciprocal of a prime number p will shift the decimal places of its decimal expansion accordingly, In this case, a factor of 2 moves the repeating decimal of by eight places. A uniform solution of a prime reciprocal magic square, whether full or not, will hold rows with successive multiples of 1/p. Other magic squares can be constructed whose rows do not represent consecutive multiples of 1/p, which nonetheless generate a magic sum.

Magic constant

Magic squares based on reciprocals of primes p in bases b with periods p - 1 have magic sums equal to, The table below lists some prime numbers that generate prime-reciprocal magic squares in given bases.

Full magic squares

The magic square with maximum period 18 contains a row-and-column total of 81, that is also obtained by both diagonals. This makes it the first full, non-normal base-10 prime reciprocal magic square whose multiples fit inside respective k−th rows: The first few prime numbers in decimal whose reciprocals can be used to produce a non-normal, full prime reciprocal magic square of this type are The smallest prime number to yield such magic square in binary is 59 (1110112), while in ternary it is 223 (220213); these are listed at A096339, and A096660.

Variations

A prime reciprocal magic square with maximum period of 16 and magic constant of 72 can be constructed where its rows represent non-consecutive multiples of one-seventeenth: As such, this full magic square is the first of its kind in decimal that does not admit a uniform solution where consecutive multiples of 1/p fit in respective k−th rows.

This article is derived from Wikipedia and licensed under CC BY-SA 4.0. View the original article.

Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc.
Bliptext is not affiliated with or endorsed by Wikipedia or the Wikimedia Foundation.

Edit article