OFFSET
4,1
COMMENTS
To derive a(n) = n!*binomial(n-1,3), we note that there are n! ways to arrange the books in a row.
Then there are binomial(n-1,3) ways to place the arranged books on 4 consecutive shelves since there are binomial(n-1,3) compositions of n with 4 summands. Hence a(n) = n!*binomial(n-1,4).
We note that a(n) is the fourth column of triangle A156992, the number of ways to arrange n books on k consecutice bookshelves, leaving no shelves empty.
FORMULA
a(n) = n!*binomial(n-1,3) = n!*(n-1)*(n-2)*(n-3)/6 for n >= 4.
E.g.f.: x^4/(1-x)^4.
a(n) = A156992(n,4).
EXAMPLE
a(5) = 480 since there are 480 ways to arrange books b1, b2, b3, b4, and b5 on shelves s1, s2, s3, and s4. In this case, one shelf will hold two books, and the other three shelves will hold one each. There are 4 ways to choose the shelf for two books; there are 20 ways to choose the two books and place them in order on the two-book shelf; there are 6 ways to arrange the other three books on the other three shelves. Hence a(5) = 4*20*6 = 480.
MAPLE
seq(n!*binomial(n-1, 3)n=4..20);
CROSSREFS
KEYWORD
nonn
AUTHOR
Dennis P. Walsh, Nov 26 2011
STATUS
approved