OFFSET
0,5
EXAMPLE
Table T(n, k) starts:
[0] [1]
[1] [0, 1]
[2] [0, 2, 1]
[3] [0, 3, 2, 1]
[4] [0, 4, 7, 2, 1]
[5] [0, 5, 10, 7, 2, 1]
[6] [0, 6, 22, 18, 7, 2, 1]
[7] [0, 7, 28, 34, 18, 7, 2, 1]
[8] [0, 8, 50, 62, 50, 18, 7, 2, 1]
[9] [0, 9, 60, 121, 86, 50, 18, 7, 2, 1]
PROG
(SageMath)
def T(n, k):
return sum(product(r for r in p) for p in Partitions(n, length=k))
for n in range(10): print([T(n, k) for k in range(n + 1)])
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Peter Luschny, Dec 11 2023
STATUS
approved