OFFSET
0,6
LINKS
Alois P. Heinz, Antidiagonals n = 0..50, flattened
EXAMPLE
Square array A(n,k) begins:
: 1, 1, 1, 1, 1, 1, 1, ...
: 1, 1, 1, 1, 1, 1, 1, ...
: 2, 1, 1, 1, 1, 1, 1, ...
: 4, 3, 3, 3, 3, 3, 3, ...
: 8, 4, 3, 3, 3, 3, 3, ...
: 16, 7, 5, 5, 5, 5, 5, ...
: 32, 14, 11, 11, 11, 11, 11, ...
MAPLE
b:= proc(n, l) option remember;
`if`(n=0, 1, add(`if`(j in l, 0, b(n-j,
`if`(l=[], [], [subsop(1=NULL, l)[], j]))), j=1..n))
end:
A:= (n, k)-> b(n, [0$min(n, k)]):
seq(seq(A(n, d-n), n=0..d), d=0..12);
MATHEMATICA
b[n_, l_] := b[n, l] = If[n==0, 1, Sum[If[MemberQ[l, j], 0, b[n-j, If[l == {}, {}, Append[Rest[l], j]]]], {j, 1, n}]]; A[n_, k_] := b[n, Array[0&, Min[n, k]]]; Table[A[n, d-n], {d, 0, 12}, {n, 0, d}] // Flatten (* Jean-François Alcover, Feb 08 2017, translated from Maple *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Alois P. Heinz, Sep 06 2015
STATUS
approved