A353453 a(n) is the permanent of the n X n symmetric matrix M(n) that is defined as M[i,j] = abs(i - j) if min(i, j) < max(i, j) <= 2*min(i, j), and otherwise 0.
1, 0, 1, 0, 1, 4, 64, 576, 7844, 63524, 882772, 11713408, 252996564, 5879980400, 184839020672, 5698866739200, 229815005974352, 9350598794677712, 480306381374466176, 23741710999960266176, 1446802666239931811472, 86153125248221968292928, 6197781268948296566634304
Offset: 0
Keywords
Examples
a(8) = 7844: 0, 1, 0, 0, 0, 0, 0, 0; 1, 0, 1, 2, 0, 0, 0, 0; 0, 1, 0, 1, 2, 3, 0, 0; 0, 2, 1, 0, 1, 2, 3, 4; 0, 0, 2, 1, 0, 1, 2, 3; 0, 0, 3, 2, 1, 0, 1, 2; 0, 0, 0, 3, 2, 1, 0, 1; 0, 0, 0, 4, 3, 2, 1, 0.
Crossrefs
Programs
-
Mathematica
Join[{1},Table[Permanent[Table[If[Min[i,j]
-
PARI
a(n) = matpermanent(matrix(n, n, i, j, if ((min(i,j) < max(i,j)) && (max(i,j) <= 2*min(i,j)), abs(i-j)))); \\ Michel Marcus, Apr 20 2022
-
Python
from sympy import Matrix def A353453(n): return Matrix(n, n, lambda i, j: abs(i-j) if min(i,j)
Chai Wah Wu, Aug 29 2023