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, 10, 475, 59568, 16172897, 7967074234, 6515126362875, 8155959438277198, 14885542385457527305, 37831567548865655200288, 129834320142297449024628507, 584223716084623585952868632520, 3374691080535113391575485112694905, 24516621962598123956457195460161575422
Offset: 1
Keywords
Examples
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.
Links
- Vaclav Kotesovec, Table of n, a(n) for n = 1..34
Programs
-
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]
-
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))
Comments