OFFSET
0,8
LINKS
math.stackexchange, Passenger entrance/exit combinations
FORMULA
If f(n,k,c)=n*f(n-1,k,c+1)+c*f(n,k,c-1) with f(n,k,c)=0 when n<0 or k<0 or c<0 or k<c and starting with f(0,k,0)=1, then this shows the values of f(n,k,0).
EXAMPLE
T(3,2)=54 represented by the nine patterns AABBCC, AABCBC, AABCCB, ABABCC, ABACBC, ABACCB, ABBACC, ABBCAC, ABBCCA multiplied by 3!=6 for the permutations of A,B,C; but for example ABCABC would not work as the vehicle would be over its capacity of 2 after picking up 3 passengers.
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Henry Bottomley, Dec 24 2023
STATUS
approved