login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A071080
Determinant of the n X n matrix whose element (i,j) equals the |i-j|-th composite number, or 1 if i=j.
3
1, -15, 125, -935, 6096, -38340, 240864, -1497584, 8611328, -49201152, 277473280, -1541996288, 7852493824, -39972516864, 195624648704, -789661486080, 3052709008384, -9659706075392, 30089357409792, -63825905935360, 63965499203712, -8296932715920, -1139418909751008
OFFSET
1,2
LINKS
MAPLE
comps:= remove(isprime, [$4 .. 1000]):
f:= proc(n) local M;
M:= Matrix(n, n, (i, j) -> `if`(i=j, 1, comps[abs(i-j)]));
LinearAlgebra:-Determinant(M)
end proc:
map(f, [$1..25]); # Robert Israel, Dec 03 2024
MATHEMATICA
Composite[n_Integer] := FixedPoint[n + PrimePi[ # ] + 1 &, n + PrimePi[n] + 1]; f[n_] := Det[ Table[ If[i == j, 1, Composite[ Abs[i - j]]], {i, 1, n}, {j, 1, n}]]; Table[ f[n], {n, 1, 20}]
CROSSREFS
Cf. A374069 (permanent).
Sequence in context: A027839 A034271 A171220 * A193365 A069975 A027779
KEYWORD
sign
AUTHOR
Robert G. Wilson v, May 26 2002
EXTENSIONS
a(21)-a(23) from Stefano Spezia, Jun 27 2024
STATUS
approved