Discrete Mathematics: II Combinations with Repetition

Combinations with Repetition


  1. How many combinations are there for \(N\) dice with \(S\) sides \(1, \ldots, S\)?

    Let \(X_1, \ldots, X_S\) represent the number of dice with each face value. Then:

    $$ X_1 + \ldots + X_S = N, \quad X_i \ge 0 $$

    This is a stars and bars problem with \(N\) stars and \(S-1\) bars. So:

    $$ \binom{N+S-1}{S-1} $$


  2. How many combinations are there for \(N\) dice with \(S\) sides \(1, \ldots, S\) such that the face value \(1\) appears exactly \(K\) times?

    Let \(X_1, \ldots, X_S\) represent counts. Then:

    $$ X_2 + \ldots + X_S = N-K, \quad X_i \ge 0 $$

    Stars and bars:

    $$ \binom{N-K+S-2}{S-2} $$


  3. How many combinations are there for \(N\) dice with \(S\) sides \(1, \ldots, S\) such that the face value \(1\) appears at least \(K\) times?

    Let:

    $$ X_1 + \ldots + X_S = N, \quad X_1 \ge K $$

    Set \(Y_1 = X_1 - K \ge 0\):

    $$ Y_1 + X_2 + \ldots + X_S = N-K $$

    Stars and bars:

    $$ \binom{N-K+S-1}{S-1} $$


  4. How many combinations are there for \(N\) dice with \(S\) sides \(1, \ldots, S\) such that the maximum value of the dice is \(M\)?

    Let:

    $$ X_1 + \ldots + X_M = N, \quad X_M \ge 1 $$

    Set \(Y_M = X_M - 1 \ge 0\):

    $$ X_1 + \ldots + Y_M = N-1 $$

    Stars and bars:

    $$ \binom{N-1+(M-1)}{M-1} = \binom{N+M-2}{M-1} $$


  5. How many combinations are there for \(N\) dice with \(S\) sides \(1, \ldots, S\) such that the minimum value of the dice is \(M\)?

    Let:

    $$ X_M + \ldots + X_S = N, \quad X_M \ge 1 $$

    Set \(Y_M = X_M - 1 \ge 0\):

    $$ Y_M + X_{M+1} + \ldots + X_S = N-1 $$

    Stars and bars:

    $$ \binom{N+S-M-1}{S-M} $$


  6. How many combinations are there for \(N\) dice with \(S\) sides \(1, \ldots, S\) that uses \(K\) distinct face values?

    Choose faces:

    $$ \binom{S}{K} $$

    Let each appear at least once:

    $$ X_1 + \ldots + X_K = N, \quad X_i \ge 1 $$

    Set \(Y_i = X_i - 1\):

    $$ Y_1 + \ldots + Y_K = N-K $$

    Stars and bars:

    $$ \binom{N-K+(K-1)}{K-1} = \binom{N-1}{K-1} $$

    Final answer:

    $$ \binom{S}{K}\binom{N-1}{K-1} $$

Comments

Popular posts from this blog

Linear Algebra: IX The Fundamental Theorem of Linear Algebra

Linear Algebra: III Square and Inverse Matrices

Linear Algebra: VII Orthonormal Matrices