Skip to main content

Multiset

A multiset is a collection in combinatorics where the same element can appear more than once. It shows up in counting problems where order does not matter, but repeats are allowed.

Last updated July 2026•Fiveable Content Team

What is the multiset?

A multiset is like a set that allows repeated elements, which makes it useful in combinatorics when you want to count selections with repetition. Instead of saying an item is either in or out, a multiset keeps track of how many times each type appears.

For example, {a, a, b} is a multiset with two a's and one b. In a normal set, that would just be {a, b} because duplicates are ignored. In combinatorics, those duplicates matter because they change the count of possible choices.

The big idea is that a multiset records multiplicity, the number of times each element occurs. That means you are not counting unique elements only, you are counting repeated occurrences too. This is exactly why multisets show up in combinations with repetition, distributing identical objects, and problems about choosing several items from a small number of categories.

A common way to think about a multiset is as a frequency list. If a bag contains 3 red marbles, 2 blue marbles, and 1 green marble, the multiset is not just {red, blue, green}. It is really {red, red, red, blue, blue, green}, because the counts are part of the object.

This also changes the counting logic. If you are selecting k items from n types and repetition is allowed, the answer is not the usual binomial coefficient for simple combinations. Instead, you use combinations with repetition, often written as (n+k−1k)\binom{n+k-1}{k}. A multiset is the structure that makes that formula make sense.

One easy mistake is treating a multiset like a set and deleting duplicates. If the problem says you can choose the same flavor, color, or letter more than once, duplicates are part of the answer, not an error. The whole point of a multiset is to keep those repeated choices visible so you can count them correctly.

Why the multiset matters in COMBINATORICS

Multisets are the bridge between plain combinations and the counting problems where repetition is allowed. In Combinatorics, a lot of real problem setups do not fit the simple "choose k distinct things from n" model. You might be choosing donut toppings, forming a four-letter code from a small alphabet, or splitting identical objects among categories. A multiset gives you the right language for those situations.

It also keeps your counting clean. If you know the answer depends on how many copies of each type you have, you can move from an informal story to a precise counting model. That is what lets you use combinations with repetition and Stars and Bars instead of trying to list every outcome by hand.

Multisets also connect to how combinatorics thinks about data. If a problem gives repeated measurements, repeated symbols, or repeated items in a bag, the repetition is not noise. It changes the structure you are counting, and the multiset format keeps that structure intact.

Once you are comfortable with multisets, you can spot when the usual combination formula does not apply. That saves you from the most common mistake in this topic, which is ignoring duplicates and undercounting the possible selections.

Keep studying COMBINATORICS Unit 2

Official unit cheatsheet

open one-pager

How the multiset connects across the course

Combination

A combination counts selections where order does not matter and repetition is usually not allowed. A multiset version of a combination changes that setup by letting the same type appear more than once, so you are counting repeated selections rather than just distinct ones.

Stars and Bars Theorem

Stars and Bars is the standard counting method behind many multiset problems. When you distribute identical items into categories or choose repeated elements from a list of types, the bars separate categories and the stars represent the repeated picks.

Binomial Coefficient

Multiset counting often ends in a binomial coefficient like (n+k−1k)\binom{n+k-1}{k}. That is why this term matters so much in practice, the final answer usually looks like a choose expression even though the setup allows repetition.

Arranging Indistinguishable Objects

Both topics deal with repetition, but in different ways. A multiset records repeated choices of types, while arranging indistinguishable objects focuses on how many ways you can place items that are identical into an order or pattern.

Is the multiset on the COMBINATORICS exam?

A problem set question will usually ask you to count selections with repetition or translate a word problem into a multiset model. You might need to identify the number of types, the number of items chosen, and whether order matters before choosing the right formula. If the prompt says you can pick the same item more than once, that is your signal to think multiset, not ordinary combination.

When you write the solution, show the setup clearly. State what counts as a type, what counts as a repeat, and why the selection is a combination with repetition. A lot of points come from recognizing that the repeated items are allowed and then using the correct count, often (n+k−1k)\binom{n+k-1}{k} or a Stars and Bars setup.

The multiset vs Set

A set never repeats elements, so {a, b} and {a, a, b} would represent the same set. A multiset keeps the duplicates, so the repeated a changes the object and the count. In combinatorics, that difference matters because multiplicity affects how many outcomes you have.

Key things to remember about the multiset

  • A multiset is a collection where the same element can appear more than once.

  • In combinatorics, multisets show up when order does not matter but repetition is allowed.

  • The repeated elements are tracked by multiplicity, which means counts matter, not just unique labels.

  • Many multiset counting problems use combinations with repetition, often written as (n+k−1k)\binom{n+k-1}{k}.

  • If a problem allows choosing the same type more than once, do not treat it like an ordinary set problem.

Frequently asked questions about the multiset

What is multiset in Combinatorics?

A multiset is a collection that allows repeated elements, so the same item can appear more than once. In Combinatorics, it is the right model for counting selections where repetition is allowed and order does not matter.

How is a multiset different from a set?

A set ignores duplicates, so repeated elements do not change it. A multiset counts duplicates through multiplicity, which means {a, a, b} is different from {a, b}. That extra information is what makes multiset counting useful.

When do you use a multiset in counting problems?

Use a multiset when you are selecting from categories and repeats are allowed, like choosing toppings, distributing identical objects, or forming repeated-letter selections. If the problem says order does not matter but you can reuse an item, multiset thinking is usually the right move.

What formula goes with multisets?

A common formula is (n+k−1k)\binom{n+k-1}{k} for choosing k items from n types with repetition allowed. That formula comes up in combinations with repetition and is often connected to Stars and Bars.