OFFSET
0,5
COMMENTS
The standard order of compositions is given by A066099.
Arrange the cycles of the permutation by the smallest member of each cycle and read off the cycle sizes. E.g., for (1)(24)(3), the associated composition is 1,2,1.
FORMULA
For composition b(1),...,b(k), a(n) = Product_{i=1}^n C((Sum_{j=i}^n b(j)) - 1, b(i)-1) * (b(i)-1)!.
EXAMPLE
Composition number 11 is 2,1,1; the associated permutations are (12)(3)(4), (13)(2)(4) and (14)(2)(3), so a(11) = 3.
The table starts:
1
1
1 1
2 2 1 1
CROSSREFS
KEYWORD
easy,nonn,tabf
AUTHOR
Franklin T. Adams-Watters, Nov 06 2006
STATUS
approved