OFFSET
0,5
FORMULA
T(n, k) =a(n-1, k)+A077227(n, k). If n>=k^2, T(n, k)=n^n. If k<=n<2k, T(n, k)=C(n, k).
EXAMPLE
Rows start: 1; 1,1; 1,3,1; 1,4,4,1; 1,4,10,5,1; 1,4,17,15,6,1; 1,4,23,35,21,7,1; etc. T(6,3)=17 since compositions with 3 parts each no more than 3 and a total no more than 6 are: 1+1+1, 1+1+2, 1+1+3, 1+2+1, 1+2+2, 1+2+3, 1+3+1, 1+3+2, 2+1+1, 2+1+2, 2+1+3, 2+2+1, 2+2+2, 2+3+1, 3+1+1, 3+1+2 and 3+2+1.
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Henry Bottomley, Oct 30 2002
STATUS
approved