Arranging Balls into Boxes

This Demonstration provides the answers to a variety of questions of the type, In how many ways can balls be placed into boxes? You can vary the number of balls and boxes. Options include distinguishable or indistinguishable balls, distinguishable or indistinguishable boxes, and whether or not empty boxes are permitted.
  • Contributed by: Marc Brodie
  • (Wheeling Jesuit University)



  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


Notation follows Martin's text [1]. In particular, stands for the number of integer partitions of into exactly parts.
[1] G. E. Martin, Counting: The Art of Enumerative Combinatorics, New York: Springer-Verlag, 2001.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.