OFFSET
0,13
FORMULA
T(n, k) = T(n-1, k) + T(n-1, k-n) + T(n-1, k-2*n) with T(0, 0)=1 and T(n, k)=0 if n or k are negative. [Corrected by Sean A. Irvine, Jan 24 2023]
EXAMPLE
Table begins:
1, 0, 0, 0, 0, 0, ...,
1, 1, 1, 0, 0, 0, ...,
1, 1, 2, 1, 2, 1, ...,
1, 1, 2, 2, 3, 3, ...,
...
T(3,5)=3 since 5 can be written as 3+2 or 3+1+1 or 2+2+1.
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Henry Bottomley, Apr 20 2001
STATUS
approved