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.

A374390 a(n) is the maximal permanent of an n X n symmetric Toeplitz matrix having 0 on the main diagonal and all the first n-1 primes off-diagonal.

Original entry on oeis.org

1, 0, 4, 36, 1936, 144260, 31972988, 6800311204, 2560967581304, 975834087080060, 557171087172087364
Offset: 0

Views

Author

Stefano Spezia, Jul 07 2024

Keywords

Examples

			a(5) = 144260:
  [0, 7, 5, 3, 2]
  [7, 0, 7, 5, 3]
  [5, 7, 0, 7, 5]
  [3, 5, 7, 0, 7]
  [2, 3, 5, 7, 0]
		

Crossrefs

Cf. A374345.
Cf. A374068 (minimal permanent).

Programs

  • Mathematica
    a[n_]:=Max[Table[Permanent[ToeplitzMatrix[Join[{0},Part[Permutations[Prime[Range[n-1]]],i]]]],{i,(n-1)!}]]; Join[{1},Array[a,10]]