powered by
Denote the number of ways to partition a set of n objects into k non-empty subsets
stirling2(n, k)
a "list" containing the following components:
(integer): the number of the objects
(integer <=n): the number of the non-empty subsets (buckets)
Antonio D'Ambrosio antdambr@unina.it
Comtet, L. (1974). Advanced Combinatorics: The art of finite and infinite expansions. D. Reidel, Dordrecth, The Netherlands.
parts<-stirling2(4,2)
Run the code above in your browser using DataLab