The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A323205 The permanent of an n X n square matrix formed by writing the numbers 1, ..., n^2 successively back and forth along antidiagonals. 1
1, 10, 475, 59568, 16172897, 7967074234, 6515126362875, 8155959438277198, 14885542385457527305, 37831567548865655200288, 129834320142297449024628507, 584223716084623585952868632520, 3374691080535113391575485112694905, 24516621962598123956457195460161575422 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The matrix is defined by M[i,j] = (2 - i - j)*((i + j - 1) mod 2)+(j^2 + (2*i - 1)*j + i^2 - i)/2 + (j - 1)*(1 - 2*((i + j) mod 2)) if i + j <= n + 1 and M[i,j] = n^2 - ((4*n^2 + (- 4*j - 4*i + 6)*n + j^2 + (2*i - 3)*j + i^2 - 3*i + 2)/2 + (i + j - 2*n)*((2*n - i - j + 1) mod 2)) + 1 - (n - j)*(1 - 2*((i + j) mod 2)) if i + j > n + 1 (see A078475).
The trace of the matrix is the sequence A006003.
LINKS
EXAMPLE
For n = 1 the matrix M(1) is
1
with permanent a(1) = 1.
For n = 2 the matrix M(2) is
1, 2
3, 4
with permanent a(2) = 10.
For n = 3 the matrix M(3) is
1, 2, 6
3, 5, 7
4, 8, 9
with permanent a(3) = 475.
MATHEMATICA
M[i_, j_, n_] := If[i+j<=n+1, (2-i-j)*Mod[i+j-1, 2]+(j^2+(2*i-1)*j+i^2-i)/2+(j-1)*(1-2*Mod[i+j, 2]), n^2-((4*n^2+(-4*j-4*i+6)*n+j^2+(2*i-3)*j+i^2-3*i+2)/2+(i+j-2*n)*Mod[2*n-i-j+1, 2])+1-(n-j)*(1-2*Mod[i+j, 2])]; a[n_] := Permanent[Table[M[i, j, n], {i, n}, {j, n}]]; Array[a, 20]
PROG
(PARI)
M(i, j, n) = if (i + j <= n + 1, (2 - i - j)*((i + j - 1) % 2)+(j^2 + (2*i - 1)*j + i^2 - i)/2 + (j - 1)*(1 - 2*((i + j) % 2)), n^2 - ((4*n^2 + (- 4*j - 4*i + 6)*n + j^2 + (2*i - 3)*j + i^2 - 3*i + 2)/2 + (i + j - 2*n)*((2*n - i - j + 1) % 2)) + 1 - (n - j)*(1 - 2*((i + j) % 2)));
a(n) = matpermanent(matrix(n, n, i, j, M(i, j, n)));
vector(20, n, a(n))
CROSSREFS
Cf. A006003 (trace of matrix M), A078475 (determinant of matrix M).
Sequence in context: A337757 A288548 A289030 * A257133 A159533 A274760
KEYWORD
nonn
AUTHOR
Stefano Spezia, Jan 07 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 21 10:20 EDT 2024. Contains 372735 sequences. (Running on oeis4.)