Stars and bars
Share things among boxes, with a minimum per box.
For checking your work after you’ve tried it yourself.
Step 1: Type n and k
Type n and k
n identical things, k different boxes.
Step 2: Set a minimum
Set a minimum
The same for every box, or one per box.
Step 3: Read the count
Read the count
And see every way when there are only a few.
What it does.
Counts the ways to share identical things among different boxes, optionally with a minimum in each box.
When it helps.
Checking a sharing-out count you worked out.
What it won’t do.
The things must be identical and the boxes different. It doesn't handle maximums.
Example.
7 sweets for 3 children, at least 1 each: ways.