Primes p such that the p-1 digits of the ternary (base 3) expansion of k/p (for k=1,2,3,...,p-1) fit into the k-th row of a magic square grid of order p-1.

A096660

Primes p such that the p-1 digits of the ternary (base 3) expansion of k/p (for k=1,2,3,...,p-1) fit into the k-th row of a magic square grid of order p-1.

Terms

    a(0) =223a(1) =593a(2) =811a(3) =6113a(4) =15319a(5) =22123a(6) =22409a(7) =22817a(8) =24859a(9) =32801a(10) =40013a(11) =43853a(12) =47599a(13) =48259a(14) =51329a(15) =56383a(16) =64553a(17) =64579a(18) =77813a(19) =96401a(20) =109169a(21) =109937a(22) =135607a(23) =191899a(24) =229507a(25) =254623a(26) =281609a(27) =379157a(28) =496963a(29) =526963

External references