Questions tagged [multisets]

For questions about or related to multisets, a notion similar to sets with the difference that elements can be repeated.

A multiset, also called a bag, is a generalization of a set in which elements can appear more than once. Formally, a multiset can be defined as a pair $(A, m)$ where $A$ is a set and $$m : A \to \{1, 2, 3, ...\}$$

For each $a \in A$, the number $m(a)$ is called the multiplicity of $a$, and counts how many times $a$ appears in the multiset.

Reference: Multiset.

366 questions
148
votes
6 answers

Why does mathematical convention deal so ineptly with multisets?

Many statements of mathematics are phrased most naturally in terms of multisets. For example: Every positive integer can be uniquely expressed as the product of a multiset of primes. But this theorem is usually phrased more clumsily, without…
MJD
  • 67,568
  • 43
  • 308
  • 617
33
votes
3 answers

Extended stars-and-bars problem(where the upper limit of the variable is bounded)

The problem of counting the solutions $(a_1,a_2,\ldots,a_n)$ with integer $a_i\geq0$ for $i\in\{1,2,\ldots,n\}$ such that $$a_1+a_2+a_3+\ldots+a_n=N$$ can be solved with a stars-and-bars argument. What is the solution if one adds the constraint that…
19
votes
1 answer

Distributing groups of objects into boxes

How can I enumerate the number of ways of distributing distinct groups of identical objects (but various cardinality) into $k$ boxes such that at most one box is empty $(1)$ and no combination of objects is repeated between boxes ? The order of…
lbeziaud
  • 360
17
votes
4 answers

How to find the number of $k$-permutations of $n$ objects with $x$ types, and $r_1, r_2, r_3, \cdots , r_x$ = the number of each type of object?

How can I find the number of $k$-permutations of $n$ objects, where there are $x$ types of objects, and $r_1, r_2, r_3, \cdots , r_x$ give the number of each type of object? I'm still looking for the solution to this more general problem out of…
Cam
  • 1,408
16
votes
3 answers

How many possible 10-card hands can be dealt from super deck?

I have the following problem from Introduction to Probability (2019 2 edn) by Joseph Blitzstein, p. 32, Chapter 1. A certain casino uses 10 standard decks of cards mixed together into one big deck, which we will call a superdeck. Thus, the…
13
votes
5 answers

Stirling numbers of the second kind on Multiset

Stirling numbers of the second kind $S(n, k)$ count the number of ways to partition a set of $n$ elements into $k$ nonempty subsets. What if there were duplicate elements in the set? That is, the set is a multiset?
12
votes
2 answers

How many permutations of a multiset have a run of length k?

Background $\newcommand\ms[1]{\mathsf #1}\def\msP{\ms P}\def\msS{\ms S}\def\mfS{\mathfrak S}$Suppose I have $n$ marbles of $c$ colors, where $c≤n$. Let $n_i$ denote the number of marbles of color $i$. Let $\msP=(1^{n_1} 2^{n_2} \dots c^{n_c})$ be…
10
votes
1 answer

What is the number of bijections between two multisets?

Let $P$ and $Q$ be two finite multisets of the same cardinality $n$. Question: How many bijections are there from $P$ to $Q$? I will define a bijection between $P$ and $Q$ as a multiset $\Phi \subseteq P \times Q$ satisfying the…
9
votes
2 answers

Category of multisets

I am trying to define a category $MSet$ of multisets as sets equipped with an equivalence relation. I will call such objects multisets. The other notion of multisets as pairs $(A,m_A\colon A\to\mathbb{N})$ I will call standard multisets, these are…
lanskey
  • 1,106
9
votes
2 answers

Partitioning a multiset into multisets of fixed sizes

Say we have a multiset $S(\mathbf{d}$) where $\mathbf{d}$ is a list of $l$ numbers and the multiplicity of the $i$th element of $S$ is $d_i$. The cardinality $N$ of $S$ is $\sum d_i$. We want to partition $S$ into $m$ multisets of size $k_i$…
JJW5432
  • 407
9
votes
1 answer

A variation on the Look and Say Sequence and some questions about it.

For information on the sequence mentioned in the title, see http://en.wikipedia.org/wiki/Look-and-say_sequence. This is an original problem. Suppose instead of "describing" the numbers in a string in order, one counts the digits globally and, for…
9
votes
5 answers

How to find unique multisets of n naturals of a given domain and their numbers?

Let's say I have numbers each taken in a set $A$ of $n$ consecutive naturals, I ask myself : how can I found what are all the unique multisets, which could be created with $k$ elements of this set $A$? For example I've got $A=[1,2,\dots,499]$. If I…
Eldros
  • 195
8
votes
2 answers

Number of combinations of a multiset of objects

Determine the total number of combinations (of any size) of a multiset of objects of $k$ different types with finite repetition numbers $n_1, n_2, \ldots, n_k$ respectively. The answer is $(n_1+1)(n_2+1)....(n_k+1)$, but I don't see why.
Gbean
  • 621
8
votes
2 answers

Odd number of reals with equal partitions

Consider the following problem: You are given a multiset (a set with repetitions allowed) of $2n+1$ real numbers, say $S = \{r_1, \dots, r_{2n+1}\}$. These numbers are such that for every $k$, the multiset $S - \{r_k\}$ can be split into two…
Aryabhata
  • 83,877
8
votes
2 answers

permutations of a multiset having symbols with fixed multiplicity

Let $N$ be a multiset of $n$ distinct objects having the same multiplicity $k$. For instance, $N=\{a,\,a,\,b,\,b\}$ where $n=2$ and $k=2$. I was looking for the problem of counting the number of all the permutations of all the non-empty subsets of…
fede
  • 113
1
2 3
24 25