cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-4 of 4 results.

A073519 The set of nine consecutive primes forming a 3 X 3 magic square with the smallest magic constant (4440084513).

Original entry on oeis.org

1480028129, 1480028141, 1480028153, 1480028159, 1480028171, 1480028183, 1480028189, 1480028201, 1480028213
Offset: 1

Views

Author

N. J. A. Sloane, Aug 29 2002

Keywords

Comments

The square is given (with the terms in correct order) in A320873. The (increasingly ordered) set of primes does not contain more information than the magic constant (= sum) S, since they have to be consecutive and sum up to 3*S. It is easy to construct the unique set of (consecutive) primes with this property, cf. PROGRAM. - M. F. Hasler, Oct 28 2018

Examples

			The magic square is
[ 1480028201 1480028129 1480028183 ]
[ 1480028153 1480028171 1480028189 ]
[ 1480028159 1480028213 1480028141 ]
		

References

  • H. L. Nelson, Journal of Recreational Mathematics, 1988, vol. 20:3, p. 214.
  • Clifford A. Pickover, The Zen of Magic Squares, Circles and Stars: An Exhibition of Surprising Structures across Dimensions, Princeton University Press, 2002.

Crossrefs

Programs

  • PARI
    A073519=MagicPrimes(4440084513,3) \\ where: (also used in A073521, ...)
    MagicPrimes(S, n, P=[nextprime(S\n)])={S=n*S-P[1]; for(i=1, -1+n*=n, S-=if(S>(n-i)*P[1], P=concat(P, nextprime(P[#P]+1)); P[#P], P=concat(precprime(P[1]-1), P); P[1])); if(S, -P, P)} \\ The vector of n^2 primes whose sum is n*S, or a negative vector with an approximate solution if no exact solution exists. - M. F. Hasler, Oct 22 2018

A265139 Smallest primes of 3 X 3 semimagic squares formed from consecutive primes.

Original entry on oeis.org

21821, 24091, 55201, 55787, 55807, 103969, 125597, 127703, 139291, 149921, 241771, 244493, 246889, 284659, 294731, 377537, 392233, 409879, 415937, 418849, 509797, 560447, 703679, 746191, 790927, 845347, 908491, 929239, 940829, 949951, 979189, 1012159
Offset: 1

Views

Author

Arkadiusz Wesolowski, Dec 02 2015

Keywords

Examples

			       n = 2
|-----|-----|-----|
|24091|24109|24137|
|-----|-----|-----|
|24113|24121|24103|
|-----|-----|-----|
|24133|24107|24097|
|-----|-----|-----|
.
       n = 3
|-----|-----|-----|
|55201|55219|55259|
|-----|-----|-----|
|55229|55243|55207|
|-----|-----|-----|
|55249|55217|55213|
|-----|-----|-----|
		

Crossrefs

Cf. A265614, A270865. Supersequence of A256891.

A268912 Magic sums of 3 X 3 semimagic squares composed of consecutive primes.

Original entry on oeis.org

65573, 72337, 165679, 167429, 167479, 311981, 376907, 383183, 417943, 449933, 725411, 733643, 740749, 854119, 884311, 1132717, 1176781, 1229731, 1247899, 1256659, 1529543, 1681439, 2111153, 2238667, 2372927, 2536175, 2725573, 2787865, 2822663, 2849927, 2937691
Offset: 1

Views

Author

Arkadiusz Wesolowski, Feb 15 2016

Keywords

Crossrefs

Cf. A265139, A265614, A256891. Supersequence of A270305.

A270830 Smallest of n^2 consecutive primes that form an n X n semimagic square with the least magic sum, or 0 if no such magic square exists.

Original entry on oeis.org

2, 0, 21821, 5, 13, 7, 7, 79, 37, 23, 67, 89, 13, 89, 131, 31, 71, 47, 43, 73, 277, 353, 41, 67, 127, 223, 79, 13, 193, 5, 23, 43, 5, 67, 3, 19, 5, 59, 59, 653, 19, 19, 97, 409, 5, 383, 29, 137, 379, 349, 653, 1187, 47, 41, 37, 17, 619, 89, 283, 283, 43, 479, 191
Offset: 1

Views

Author

Arkadiusz Wesolowski, Mar 23 2016

Keywords

Comments

a(n) <= A104157. For n = 3 and 4, a(n) is different from A104157(n).

Crossrefs

Showing 1-4 of 4 results.