OFFSET
0,3
COMMENTS
Conjecture: a(n) is the minimal permanent of an n X n symmetric Toeplitz matrix having 1 on the main diagonal and all the integers 1, 2, ..., n-1 off-diagonal. - Stefano Spezia, Jul 05 2024
EXAMPLE
a(4) = 117:
[1, 1, 2, 3]
[1, 1, 1, 2]
[2, 1, 1, 1]
[3, 2, 1, 1]
MATHEMATICA
a[n_]:=Permanent[Table[If[i == j, 1, Abs[i - j]], {i, n}, {j, n}]]; Join[{1}, Array[a, 18]]
PROG
(PARI) a(n) = matpermanent(matrix(n, n, i, j, if (i==j, 1, abs(i-j)))); \\ Michel Marcus, Jun 29 2024
(Python)
from sympy import Matrix
def A374140(n): return Matrix(n, n, [abs(j-k) if j!=k else 1 for j in range(n) for k in range(n)]).per() if n else 1 # Chai Wah Wu, Jul 01 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Stefano Spezia, Jun 28 2024
STATUS
approved