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.

A189188 Potential magic constants of 8 X 8 magic squares composed of consecutive primes.

This page as a plain text file.
%I A189188 #31 Feb 13 2021 15:02:01
%S A189188 2016,2244,2336,2570,2762,4106,4362,4464,4566,4670,4776,4934,5952,
%T A189188 6870,7036,7146,7588,7644,7700,8824,9756,9930,9988,10394,10454,10514,
%U A189188 10690,10868,10928,11560,12620,12682,14986,15424,15808,16000,16510,18668,20434
%N A189188 Potential magic constants of 8 X 8 magic squares composed of consecutive primes.
%C A189188 For an 8 X 8 magic square composed of 64 consecutive primes, it is necessary that the sum of these primes is a multiple of 16.
%C A189188 This sequence consists of even integers equal to the sum of 64 consecutive primes divided by 8. It is not known whether each such set of consecutive primes can be arranged into an 8 X 8 magic square but it looks plausible.
%C A189188 From _A.H.M. Smeets_, Jan 20 2021: (Start)
%C A189188 Except from the condition that a magic constant exists, it must be an even magic constant due to the fact that the order is even, which explains why the sum of primes must be divisable by 16.
%C A189188 The number of possible combinations of 8 primes out of the 64 consecutive primes added results in the magic constant is such that in almost all cases such a magic square existsts. However, as n increases, the diversity in prime gaps between the 64 consecutive primes increases, and thus the probability that a potential magic constant will lead to a magic square configuration will decrease. The challenge here seems to be to find a potential magic constant which has no magic square configuration. (End)
%H A189188 A.H.M. Smeets, <a href="/A189188/b189188.txt">Table of n, a(n) for n = 1..20000</a>
%H A189188 Natalia Makarova <a href="http://www.natalimak1.narod.ru/prime8.htm">Magic squares of order 8 which consist of consecutive primes</a> (in Russian)
%H A189188 A.H.M. Smeets, <a href="/A189188/a189188.txt">Magic squares of consecutive primes of order 8</a>
%e A189188 a(1) = 2016
%e A189188   [ 79 137 197 199 277 347 349 431
%e A189188    127 193 131 419 337 421 107 281
%e A189188    103 379 283 389 293 227 179 163
%e A189188    397 251  83 271 269 157 439 149
%e A189188    409 211 383 191 181 101 401 139
%e A189188    307 239 317 167  89 367  97 433
%e A189188    353 233 359 151 257 223 331 109
%e A189188    241 373 263 229 313 173 113 311 ]
%e A189188 .
%e A189188 a(12) = 4934
%e A189188   [ 823 619 461 457 631 587 599 757
%e A189188     443 563 647 509 733 761 787 491
%e A189188     503 809 419 701 661 797 487 557
%e A189188     683 499 743 677 449 607 617 659
%e A189188     439 727 571 577 719 821 601 479
%e A189188     811 641 593 523 421 467 709 769
%e A189188     691 433 673 751 773 431 613 569
%e A189188     541 643 827 739 547 463 521 653 ]
%p A189188 s:= proc(n) option remember;
%p A189188        `if` (n=1, add (ithprime(i), i=1..64),
%p A189188                   ithprime(n+63) -ithprime(n-1) +s(n-1))
%p A189188     end:
%p A189188 a:= proc(n) option remember; local k, m; a(n-1);
%p A189188        for k from 1+b(n-1) while irem(s(k), 16, 'm')<>0 do od;
%p A189188        b(n):= k; 2*m
%p A189188     end:
%p A189188 a(0):=0: b(0):=0:
%p A189188 seq(a(n), n=1..50);
%Y A189188 Cf. A073520, A173981, A176571, A177434, A188536, A191679, A192087.
%K A189188 nonn
%O A189188 1,1
%A A189188 _Natalia Makarova_, Apr 18 2011
%E A189188 Edited by _Max Alekseyev_, Jun 18 2011