OFFSET
1,2
COMMENTS
T(n,k) is defined for all n >= 0, k >= 1. The triangle contains only the positive terms. T(n,k) = 0 if k > n*(n+1)/2.
LINKS
Alois P. Heinz, Rows n = 1..50, flattened
EXAMPLE
Triangle T(n,k) begins:
1;
3, 1, 1;
7, 3, 3, 1, 1, 1;
15, 7, 5, 3, 3, 2, 2, 1, 1, 1;
31, 15, 11, 7, 7, 5, 4, 3, 3, 3, 2, 2, 1, 1, 1;
63, 31, 23, 15, 13, 11, 9, 7, 7, 6, 5, 5, 4, 4, 4, 3, 2, 2, 1, 1, 1;
...
MAPLE
b:= proc(n, s) option remember; `if`(n=0, add(x^d,
d=numtheory[divisors](s)), b(n-1, s)+b(n-1, s+n))
end:
T:= n-> (p-> seq(coeff(p, x, i), i=1..degree(p)))(b(n, 0)):
seq(T(n), n=1..10);
MATHEMATICA
b[n_, s_] := b[n, s] = If[n == 0, Sum[x^d,
{d, Divisors[s]}], b[n-1, s] + b[n-1, s+n]];
T[n_] := With[{p = b[n, 0]}, Table[Coefficient[p, x, i],
{i, 1, Exponent[p, x]}]];
Array[T, 10] // Flatten (* Jean-François Alcover, Jan 27 2021, after Alois P. Heinz *)
CROSSREFS
KEYWORD
AUTHOR
Alois P. Heinz, Jul 28 2019
STATUS
approved