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.

A343195 a(n) is the parameter c in the three parameter description of 3 X 3 magic squares of consecutive primes (see comment).

This page as a plain text file.
%I A343195 #21 Feb 16 2025 08:34:02
%S A343195 6,6,6,6,6,6,6,6,6,6,-6,6,24,6,6,6,-18,6,6,-18,6,6,-18,6,-18,6,24,6,6,
%T A343195 -6,6,-18,6,24,6,6,6,6,-18,6,6,-54,-18,6,6,6,-18,12,6,78,12,-18,24,24,
%U A343195 -24,6,6,6,6,6,24,6,6,6,6,12,12,24,6,6,24,-18,6,24
%N A343195 a(n) is the parameter c in the three parameter description of 3 X 3 magic squares of consecutive primes (see comment).
%C A343195 Each 3 X 3 magic square of consecutive primes can be described by three parameters: p1, b and c, where p1 is the smallest prime in the magic square, b > 0 and c > -b; the magic square is then given by:
%C A343195   +----------+----------+----------+
%C A343195   | p1+5b+2c | p1       | p1+4b+c  |
%C A343195   +----------+----------+----------+
%C A343195   | p1+2b    | p1+3b+c  | p1+4b+2c |
%C A343195   +----------+----------+----------+
%C A343195   | p1+2b+c  | p1+6b+2c | p1+b     |
%C A343195   +----------+----------+----------+
%C A343195 p1 is given in A256891 and b is given in A343194.
%C A343195 If c > 0, the magic square is of type 1; if -b < c < 0, the magic square is of type 2. If the consecutive primes are given by p1, p2, ..., p9 (in increasing order), the magic square types are given by:
%C A343195   Type 1             Type 2
%C A343195   +----+----+----+   +----+----+----+
%C A343195   | p8 | p1 | p6 |   | p8 | p1 | p7 |
%C A343195   +----+----+----+   +----+----+----+
%C A343195   | p3 | p5 | p7 |   | p4 | p5 | p6 |
%C A343195   +----+----+----+   +----+----+----+
%C A343195   | p4 | p9 | p2 |   | p3 | p9 | p2 |
%C A343195   +----+----+----+   +----+----+----+
%H A343195 A.H.M. Smeets, <a href="/A343195/b343195.txt">Table of n, a(n) for n = 1..759</a>
%H A343195 Harvey D. Heinz, <a href="http://www.magic-squares.net/primesqr.htm#Minimum consecutive primes -3">Prime Numbers Magic Squares: Minimum consecutive primes - 3</a>, 1999-2010.
%H A343195 A.H.M. Smeets, <a href="/A343195/a343195.txt">Python program</a>
%H A343195 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/PrimeMagicSquare.html">Prime Magic Square</a>
%H A343195 <a href="/index/Mag#magic">Index entries for sequences related to magic squares</a>
%F A343195 a(n) = (A270305(n) - 3*A256891(n) - 9*A343194(n))/3.
%F A343195 a(n) = A166113(n) - A256891(n) - 3*A343194(n).
%Y A343195 Cf. A166113 (p5), A256891 (p1), A270305 (magic constant), A343194 (b).
%K A343195 sign
%O A343195 1,1
%A A343195 _A.H.M. Smeets_, Apr 07 2021