Skip to main content

Distribution Problems

Distribution problems are counting problems in Combinatorics where you find how many ways to place indistinguishable objects into distinguishable boxes, usually with stars and bars or related counting methods.

Last updated July 2026•Fiveable Content Team

What are Distribution Problems?

Distribution problems are Combinatorics questions about how many ways you can put identical items into labeled groups. The objects are usually indistinguishable, like identical balls, cookies, or textbooks, and the boxes are distinguishable, like students, shelves, or bins.

The classic setup is “How many ways can n identical objects be distributed among k different boxes?” If boxes can be empty, this is the same as counting nonnegative integer solutions to x1 + x2 + ... + xk = n. That is where the stars and bars method comes in: the objects are stars, and the separators between boxes are bars.

For example, if you distribute 5 identical candies among 3 friends, one valid arrangement is 2, 0, and 3 candies. The order inside a box does not matter, because the candies are identical. What matters is only how many go to each friend.

The big thing to watch is whether the problem has restrictions. “At least one per box” changes the setup, because now you are counting positive solutions instead of nonnegative ones. A lower bound like this is often handled by giving each box its required minimum first, then distributing what is left.

Upper bounds make the problem more complicated. If a box can hold at most 2 objects, stars and bars alone is not enough, and you may need inclusion-exclusion or a generating function. That is why distribution problems are more than just a formula, they are a setup skill. You first translate the wording into equations and constraints, then choose the right counting tool.

A common mistake is mixing up distinguishable and indistinguishable objects. If the objects are different, you are no longer in a basic distribution problem, and permutations or combinations may be the better model. The whole trick is deciding what changes the count and what does not.

Why Distribution Problems matter in COMBINATORICS

Distribution problems show up any time a combinatorics question asks you to allocate a total across labeled categories. That could mean splitting a budget, assigning tasks, placing resources, or counting ways to make a sum from integers. The skill is not just memorizing stars and bars, but recognizing when a sentence is really asking for a count of integer solutions.

This term also connects several later ideas in the course. Once you can see a distribution problem as a count of solutions to x1 + x2 + ... + xk = n, you can move more easily into generating functions, restriction counting, and casework. It becomes easier to spot when a problem is easy enough for a direct formula and when it needs subtraction or inclusion-exclusion.

It matters because a lot of combinatorics mistakes happen at the setup stage. If you treat identical objects as distinct, or forget that boxes are labeled, your answer changes completely. Distribution problems train you to slow down, name the objects, and translate the wording into the right counting model before you calculate.

Keep studying COMBINATORICS Unit 1

Official unit cheatsheet

open one-pager

How Distribution Problems connect across the course

Stars and Bars Theorem

This is the main method for the simplest distribution problems. When you are counting ways to split identical objects among labeled boxes with no extra restrictions, stars and bars turns the situation into a binomial coefficient. It is the fastest tool when the problem is a straight count of nonnegative or positive integer solutions.

Combinations

Distribution problems often end with a combination because the solution is really about choosing where the separators go. That is why stars and bars produces a c(n, k) style answer. If you know how combinations count selections, the separator model starts to feel natural instead of random.

Subtraction Principle

When a distribution problem has a restriction like “at most” or “no more than,” you can sometimes count all possibilities first and subtract the bad ones. This is cleaner than trying to count only the allowed cases directly. It is especially useful when just a few outcomes violate the rule.

Generating Functions

Generating functions are a stronger tool for distribution problems with limits or repeated choices. Each box can be encoded as an algebraic factor, and the coefficient you want gives the number of valid distributions. They are more flexible than stars and bars when the constraints are not simple.

Are Distribution Problems on the COMBINATORICS exam?

A problem set question will usually give you a sentence like “distribute 8 identical objects among 4 boxes” and expect you to translate it into a counting model before you calculate. The first move is deciding whether the objects are identical and whether the boxes are labeled. If both are true, you are probably looking at stars and bars or a related integer-solution count.

On quizzes, the trap is almost always the restriction. If the prompt says each box must get at least one, you shift to positive solutions. If it says a box can hold no more than a certain number, you may need casework, subtraction, or generating functions instead of the basic formula. Showing the setup clearly usually earns more credit than jumping straight to an answer with no reasoning.

Distribution Problems vs Permutations

Distribution problems count allocations of identical objects into labeled boxes, so the order of the objects does not matter. Permutations count arrangements where order does matter. If you are deciding who gets how many identical items, it is distribution. If you are arranging distinct items in sequence, it is a permutation problem.

Key things to remember about Distribution Problems

  • Distribution problems in Combinatorics count ways to place identical objects into labeled boxes.

  • The basic version often becomes a nonnegative integer equation, and stars and bars is the standard method.

  • If each box needs at least one object, you are counting positive solutions instead of nonnegative ones.

  • Restrictions like upper bounds usually require subtraction, inclusion-exclusion, or generating functions.

  • The first thing to check is whether the objects are identical and whether the boxes are distinguishable.

Frequently asked questions about Distribution Problems

What is Distribution Problems in Combinatorics?

Distribution problems are counting problems where you figure out how many ways to put identical objects into labeled boxes. The result often comes from stars and bars or from counting integer solutions to an equation. The wording may talk about items, people, bins, groups, or slots, but the setup is the same.

How do you solve distribution problems with stars and bars?

Write the distribution as an equation like x1 + x2 + ... + xk = n, where each xi is the number in a box. Then use stars for the objects and bars for the dividers between boxes. The count becomes a combinations problem, usually C(n + k - 1, k - 1) for nonnegative solutions.

What is the difference between distribution problems and permutations?

Distribution problems ignore the order of identical objects and focus on how many go into each labeled box. Permutations care about the order of distinct objects in a lineup or arrangement. If switching two items changes the outcome, it is not a basic distribution problem.

What if there is a restriction like at least one object per box?

That changes the counting to positive solutions. A common move is to give each box one object first, then distribute the remaining objects using stars and bars. This is one of the most common twists on the basic distribution setup.