OFFSET
1,2
MATHEMATICA
f[i_, j_] := 1 + Mod[i + j, 2];
m[n_] := Table[f[i, j], {i, 1, n}, {j, 1, n}]
TableForm[m[8]] (* 8x8 principal submatrix *)
Flatten[Table[f[i, n + 1 - i],
{n, 1, 12}, {i, 1, n}]] (* A201208 in square format *)
Permanent[m_] :=
With[{a = Array[x, Length[m]]},
Coefficient[Times @@ (m.a), Times @@ a]];
Table[Permanent[m[n]], {n, 1, 20}] (* A204252 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 14 2012
EXTENSIONS
a(20)-a(21) from Pontus von Brömssen, Mar 03 2024
STATUS
approved