In short

Division splits a set of objects into groups. Distribution places objects into labelled containers. When the objects are distinct, each distribution is a sequence of combinations. When the objects are identical, the problem reduces to counting solutions of x_1 + x_2 + \dots + x_k = n in non-negative integers, solved by the stars and bars formula \binom{n + k - 1}{k - 1}. Equal-sized groups need a correction factor to avoid overcounting, and the size of that factor depends on whether the groups themselves are distinguishable.

You have 12 ladoos and 3 children — Aarav, Bhumi, and Chirag. You want to give all 12 ladoos away, with each child getting at least one. The ladoos are identical (each one tastes the same), and the children are distinct (Aarav is not Bhumi). How many ways can you distribute them?

This is a fundamentally different question from "how many ways can you arrange 12 objects" or "how many ways can you choose 3 from 12." Here the core operation is splitting a collection into parts, and the answer depends on two things: whether the objects are distinguishable from each other, and whether the groups (or containers) are distinguishable from each other.

This article covers all four combinations of those two binary choices.

Distinct objects into distinct groups (labelled boxes)

This is the most common distribution scenario on exams: n distinct objects placed into k distinct groups, with specified group sizes.

Fixed group sizes. If the groups must have sizes r_1, r_2, \ldots, r_k (where r_1 + r_2 + \cdots + r_k = n), the count is the multinomial coefficient:

\frac{n!}{r_1!\, r_2!\, \cdots\, r_k!}

Multinomial coefficient

The number of ways to divide n distinct objects into k ordered groups of sizes r_1, r_2, \ldots, r_k (with r_1 + r_2 + \cdots + r_k = n) is:

\binom{n}{r_1,\, r_2,\, \ldots,\, r_k} = \frac{n!}{r_1!\, r_2!\, \cdots\, r_k!}

The reasoning: choose r_1 objects for the first group from n (\binom{n}{r_1} ways), then r_2 for the second from the remaining n - r_1 (\binom{n - r_1}{r_2} ways), and so on. Multiply:

\binom{n}{r_1} \times \binom{n - r_1}{r_2} \times \binom{n - r_1 - r_2}{r_3} \times \cdots = \frac{n!}{r_1!\, r_2!\, \cdots\, r_k!}

The cancellation is clean: each successive binomial coefficient's denominator absorbs the previous remainder's factorial.

Distributing 6 distinct books into 3 labelled shelves of sizes 2, 2, 2Six books labelled 1 through 6 at the top. Three shelves labelled Shelf A, Shelf B, Shelf C below, each holding 2 books. Arrows connect each book to a shelf. The formula 6 factorial over 2 factorial cubed equals 90 is shown, but then divided by 3 factorial equals 6 for unlabelled groups, giving 15. 6 books → 3 labelled shelves (2 each) B1 B2 B3 B4 B5 B6 Shelf A (2) Shelf B (2) Shelf C (2) Labelled: 6! / (2!·2!·2!) = 90 If shelves were unlabelled: 90 / 3! = 15
Six distinct books distributed into three labelled shelves, each holding $2$ books. One specific distribution is shown. With labelled shelves, there are $6!/(2!\cdot 2!\cdot 2!) = 90$ distributions. If the shelves were unlabelled (indistinguishable), you would divide by $3! = 6$, giving $15$.

Division into equal groups — the overcounting trap

When k groups all have the same size r (so n = kr), the multinomial coefficient \frac{n!}{(r!)^k} counts divisions into labelled groups — Group 1, Group 2, and so on. If the groups are unlabelled (indistinguishable — no names, no ordering), then every set of k groups has been counted k! times (once for each permutation of the group labels). Divide by k!:

\text{Unlabelled equal groups:} \quad \frac{n!}{(r!)^k \cdot k!}

This correction factor is the single most-tested subtlety in division problems.

When to divide by k! and when not to:

The distinction: if swapping two groups gives a different outcome (because the groups have names or destinations), the groups are labelled. If swapping changes nothing, they are unlabelled.

Labelled versus unlabelled groupsOn the left, two labelled groups (Group 1 with items A B, Group 2 with items C D) are shown as distinct from (Group 1 with C D, Group 2 with A B). On the right, when groups are unlabelled, the two arrangements collapse into one. Labelled groups Unlabelled groups G1: {A,B} G2: {C,D} G1: {C,D} G2: {A,B} ↑ These are DIFFERENT {A,B} {C,D} ↑ These are the SAME count = n! / (r!)^k count = n! / ((r!)^k · k!)
With labelled groups, swapping $\{A, B\}$ and $\{C, D\}$ between Group 1 and Group 2 produces a *different* distribution. With unlabelled groups, it produces the *same* partition. The factor of $k!$ accounts for this overcounting.

Mixed sizes. If the groups have unequal sizes, there is no overcounting from group labels (because the sizes themselves distinguish the groups). But if some groups happen to share the same size — say, 2 groups of size 3 and 1 group of size 4 — you divide only by the factorial of the number of groups that share each size. For 2 groups of size 3: divide by 2! for those two.

Distribution of distinct objects — no size constraint

If n distinct objects are distributed into k distinct boxes with no restriction on how many go in each box (a box can be empty), each object independently chooses one of k boxes. The total count is:

k^n

This is the multiplication principle: n independent choices, each with k options.

If each box must be non-empty (every child must get at least one ladoo), the count is more involved and uses the inclusion-exclusion principle. The formula involves the Stirling numbers of the second kind, but for most school-level problems, case splitting by group sizes (using the multinomial coefficient) is the standard approach.

Identical objects into distinct groups — stars and bars

This is where the ladoo problem lives. You have n identical objects and k distinct groups (children, boxes, containers). The question is: how many ways to distribute n identical items into k distinct bins?

Each distribution corresponds to a solution of:

x_1 + x_2 + \cdots + x_k = n, \qquad x_i \geq 0

where x_i is the number of objects in bin i.

Stars and bars (non-negative version)

The number of ways to distribute n identical objects into k distinct bins (each bin may be empty) equals the number of non-negative integer solutions of x_1 + x_2 + \cdots + x_k = n:

\binom{n + k - 1}{k - 1}

Why the formula works

Picture the n objects as n stars (\star) in a row. To divide them into k groups, you need k - 1 dividers (bars, |) placed among the stars. Everything to the left of the first bar goes to bin 1, everything between the first and second bar goes to bin 2, and so on.

For n = 5 stars and k = 3 bins, one arrangement is:

\star \star \,|\, \star \,|\, \star \star

This represents x_1 = 2, x_2 = 1, x_3 = 2. Another arrangement:

|\, \star \star \star \star \star \,|

This represents x_1 = 0, x_2 = 5, x_3 = 0. Bars can be adjacent (giving empty bins) or at the ends.

The total number of symbols is n + k - 1 (stars plus bars). You choose k - 1 positions for the bars (the rest are stars). The count is:

\binom{n + k - 1}{k - 1}

Equivalently, you can choose n positions for the stars: \binom{n + k - 1}{n}. By the symmetry property of combinations, these are the same number.

Stars and bars for distributing 5 identical objects into 3 binsThree examples of distributing 5 stars into 3 bins using 2 bars. First row: star star bar star bar star star, giving bins 2 1 2. Second row: star star star bar bar star star, giving bins 3 0 2. Third row: bar star star star star star bar, giving bins 0 5 0. Below, the formula C(5+3-1, 3-1) = C(7, 2) = 21. 5 stars, 2 bars → 3 bins ★ ★ | | ★ ★ → bins: (2, 1, 2) ★ ★ ★ | | ★ ★ → bins: (3, 0, 2) | ★ ★ ★ ★ ★ | → bins: (0, 5, 0) C(5+3−1, 3−1) = C(7, 2) = 21 distributions Choose 2 bar positions from 7 total positions
Three of the $21$ ways to place $2$ bars among $5$ stars. Each arrangement corresponds to a unique distribution of $5$ identical objects into $3$ bins. The first row puts $2$ in bin $1$, $1$ in bin $2$, $2$ in bin $3$. Adjacent bars (second row) create an empty bin. Bars at the edges (third row) empty the end bins.

Stars and bars with a minimum: x_i \geq 1

If every bin must receive at least one object, substitute y_i = x_i - 1 (so y_i \geq 0). The equation becomes:

y_1 + y_2 + \cdots + y_k = n - k

Apply the standard formula with n - k in place of n:

\binom{(n - k) + k - 1}{k - 1} = \binom{n - 1}{k - 1}

So the number of ways to distribute n identical objects into k distinct non-empty bins is \binom{n-1}{k-1}.

Back to the ladoo problem: 12 identical ladoos distributed among 3 children, each child getting at least one.

\binom{12 - 1}{3 - 1} = \binom{11}{2} = \frac{11 \times 10}{2} = 55

There are 55 ways. If empty plates were allowed, the count would be \binom{14}{2} = 91.

Stars and bars for distributing 12 identical ladoos among 3 children each getting at least 1First give 1 ladoo to each child, leaving 9. Then distribute 9 among 3 bins freely: C(11,2) = 55. 12 ladoos → 3 children (each gets ≥ 1) Give 1 to each child 9 ladoos remain Distribute 9 identical ladoos into 3 bins (≥ 0 each) C(9 + 3 − 1, 3 − 1) = C(11, 2) = 55 Substitution y_i = x_i − 1 reduces "≥1" to "≥0" with 9 objects
Distributing $12$ ladoos among $3$ children with each child receiving at least one. Pre-place one ladoo per child (using up $3$), then freely distribute the remaining $9$. The answer $\binom{11}{2} = 55$ uses the formula $\binom{n-1}{k-1}$.

Identical objects into identical groups — partitions

When both the objects and the groups are indistinguishable, the question becomes: in how many ways can the integer n be written as a sum of k positive integers (where order does not matter)? This is the partition of n into k parts.

There is no closed-form formula for partitions. You count them by listing or by recursive methods.

For n = 7 into k = 3 positive parts (order does not matter):

5 + 1 + 1,\quad 4 + 2 + 1,\quad 3 + 3 + 1,\quad 3 + 2 + 2

That gives 4 partitions. There is no shortcut — you simply enumerate the possibilities, starting with the largest possible first part and working downward systematically.

Two worked examples

Example 1: In how many ways can $10$ identical chocolates be distributed among $4$ children such that each child gets at least $2$?

Step 1. Set up the equation.

Let x_i be the number of chocolates child i receives. The constraint is:

x_1 + x_2 + x_3 + x_4 = 10, \qquad x_i \geq 2

Why: identical objects distributed among distinct recipients is a stars-and-bars problem, and the "at least 2" constraint sets a lower bound on each variable.

Step 2. Substitute to remove the lower bound.

Let y_i = x_i - 2, so y_i \geq 0. Then:

y_1 + y_2 + y_3 + y_4 = 10 - 8 = 2

Why: giving each child the minimum of 2 uses up 4 \times 2 = 8 chocolates, leaving 2 to distribute freely.

Step 3. Apply the stars-and-bars formula.

\binom{2 + 4 - 1}{4 - 1} = \binom{5}{3} = 10

Why: 2 identical stars placed among 3 bars give \binom{5}{3} arrangements.

Step 4. List all solutions to verify.

The non-negative integer solutions of y_1 + y_2 + y_3 + y_4 = 2:

(2,0,0,0) and its 4 permutations → 4 solutions (1,1,0,0) and its \binom{4}{2} = 6 permutations → 6 solutions

Total: 4 + 6 = 10. This matches.

Why: the direct enumeration confirms the formula. Each solution here translates to an (x_1, x_2, x_3, x_4) by adding 2: for example, (y_1, y_2, y_3, y_4) = (2, 0, 0, 0) gives (4, 2, 2, 2).

Result. \binom{5}{3} = 10 distributions.

Ten distributions of 10 identical chocolates among 4 children each getting at least 2A table listing all 10 solutions. The left column shows the y values (after substitution) and the right column shows the corresponding x values (actual chocolates per child). Four solutions have one child getting 4 and three getting 2. Six solutions have two children getting 3 and two getting 2. All 10 distributions (x₁ + x₂ + x₃ + x₄ = 10, xᵢ ≥ 2) y-values (yᵢ ≥ 0, sum = 2) chocolates per child (2, 0, 0, 0) (4, 2, 2, 2) (0, 2, 0, 0) (2, 4, 2, 2) (0, 0, 2, 0) (2, 2, 4, 2) (0, 0, 0, 2) (2, 2, 2, 4) (1, 1, 0, 0) (3, 3, 2, 2) (1, 0, 1, 0) (3, 2, 3, 2) (1, 0, 0, 1) (3, 2, 2, 3) (0, 1, 1, 0) (2, 3, 3, 2) (0, 1, 0, 1) & (0, 0, 1, 1) (2, 3, 2, 3) & (2, 2, 3, 3)
All $10$ ways to distribute $10$ identical chocolates among $4$ children, each receiving at least $2$. The four solutions above the dashed line have one child receiving $4$ (and the rest $2$ each). The six solutions below the dashed line have two children receiving $3$ (and the rest $2$ each). The stars-and-bars formula $\binom{5}{3} = 10$ captures all of them in one calculation.

The enumeration confirms the formula: 4 solutions of type (2, 0, 0, 0) plus 6 solutions of type (1, 1, 0, 0) gives 10, exactly \binom{5}{3}.

Example 2: Divide $8$ students into two groups of $4$ to play a practice match. How many ways?

Step 1. Treat the groups as labelled first.

Choose 4 students from 8 for Group 1; the remaining 4 automatically go to Group 2.

\binom{8}{4} = \frac{8!}{4!\,4!} = 70

Why: the multinomial coefficient \frac{8!}{4!\,4!} counts divisions into two labelled groups of 4.

Step 2. Check: are the groups labelled or unlabelled?

The problem says "divide into two groups" — no names, no "batting first" or "fielding first." The groups are unlabelled.

Why: if Group 1 = {Aarav, Bhumi, Chirag, Divya} and Group 2 = {Esha, Farhan, Gauri, Harsh} is the same partition as Group 1 = {Esha, Farhan, Gauri, Harsh} and Group 2 = {Aarav, Bhumi, Chirag, Divya}, then you are overcounting by a factor of 2!.

Step 3. Correct for overcounting.

\frac{70}{2!} = \frac{70}{2} = 35

Why: every partition was counted 2! = 2 times (once with each labelling of the two groups), so dividing by 2 gives the true count.

Step 4. Sanity check.

If the groups had different sizes — say, 3 and 5 — no correction would be needed, because the sizes themselves distinguish the groups. The correction factor k! applies only to groups of equal size.

Result. 35 ways to split 8 students into two equal groups.

Dividing 8 students into two unlabelled groups of 4Eight circles representing students. A dashed line divides them into two groups of four. Below, two arrangements that differ only by swapping group labels are shown to be the same partition, justifying division by 2 factorial. 8 students → 2 groups of 4 (unlabelled) S1 S2 S3 S4 S5 S6 S7 S8 one group other group Labelled: C(8, 4) = 70 Swapping groups gives the same partition Unlabelled: 70 / 2! = 35 {S1,S2,S3,S4} vs {S5,S6,S7,S8} is the same as {S5,S6,S7,S8} vs {S1,S2,S3,S4}
Splitting $8$ students into two unlabelled groups of $4$. The red group and the grey group are one specific partition. Swapping the red and grey labels gives the same split, so the labelled count $70$ overcounts by $2! = 2$. The answer is $35$.

If the two groups were assigned to bat first and field first (labelled), the answer would stay at 70 — the labels prevent the overcounting.

Common confusions

Going deeper

If you can apply the multinomial coefficient, the stars-and-bars formula (both the \geq 0 and \geq 1 versions), and the equal-group correction, you have the tools for the vast majority of exam problems on division and distribution. The rest of this section is for readers who want to see the connection to generating functions and the general upper-bounded case.

Stars and bars with upper bounds

What if each bin has a maximum capacity? Suppose x_1 + x_2 + x_3 = 10 with 0 \leq x_i \leq 5. The unconstrained count is \binom{12}{2} = 66. But some solutions have x_i > 5, which violates the cap.

Use inclusion-exclusion. Let A_i be the set of solutions where x_i > 5, i.e., x_i \geq 6. Substitute x_i = 6 + y_i (with y_i \geq 0) to get a new equation y_i + (\text{other variables}) = 4, which has \binom{6}{2} = 15 solutions. Since there are 3 variables:

|A_1| + |A_2| + |A_3| = 3 \times 15 = 45

Can two variables simultaneously exceed 5? That would require x_i \geq 6 and x_j \geq 6, meaning their sum alone is \geq 12 > 10. So |A_i \cap A_j| = 0 for all pairs.

By inclusion-exclusion: valid solutions = 66 - 45 + 0 = 21.

This technique generalises: for any upper bound c on each variable, substitute x_i = c + 1 + y_i to count violations, and use inclusion-exclusion to subtract them.

Compositions and weak compositions

A composition of n into k parts is a solution of x_1 + x_2 + \cdots + x_k = n with x_i \geq 1 (order matters). The count is \binom{n-1}{k-1}.

A weak composition allows x_i = 0 as well. The count is \binom{n+k-1}{k-1}.

Compositions are essentially the "stars and bars" distributions with the positivity constraint, viewed through a number-theory lens rather than a combinatorics lens. The generating function for the number of compositions of n into any number of parts is:

\frac{1}{1 - 2x} = \sum_{n=0}^{\infty} 2^{n-1} x^n

because there are 2^{n-1} compositions of n (each of the n-1 gaps between consecutive units is either a separator or not). This bridges the counting techniques of this article with the algebraic methods of generating functions that appear in more advanced combinatorics.

Where this leads next

Division and distribution problems combine the techniques from across combinatorics.