Stars and Bars Calculator
Enter the number of identical items and boxes to count the ways to share them out.
A whole number from 0 to 1000.
A whole number from 1 to 1000.
Each box
Whether a box is allowed to stay empty.
Try
Result
You entered
There are fewer items than boxes, so some box must be empty.
Show the work
Each box gets at least one
Giving every one of the boxes an item needs at least items, and there are only . So no arrangement works.
Result
So there are ways to share identical items among boxes with at least one in each.