OFFSET
0,3
COMMENTS
The matrix M(n) is the n-th principal submatrix of the rectangular array A143977.
det(M(n)) = 1 for n <= 3, and otherwise det(M(n)) = 0.
EXAMPLE
a(5) = 18142:
1 1 1 2 2
1 2 2 3 4
1 2 3 4 5
2 3 4 6 7
2 4 5 7 9
MATHEMATICA
a[n_]:=Permanent[Table[Ceiling[i j/3], {i, n}, {j, n}]]; Join[{1}, Array[a, 17]]
PROG
(Python)
from fractions import Fraction
from sympy import Matrix
def A358161(n): return Matrix(n, n, [Fraction(i*j, 3).__ceil__() for i in range(1, n+1) for j in range(1, n+1)]).per() if n else 1 # Chai Wah Wu, Nov 02 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Stefano Spezia, Nov 01 2022
STATUS
approved