Open In App

Mathematics | Generalized PnC Set 1

Prerequisite – PnC and Binomial Coefficients 

So far every problem discussed in previous articles has had sets of distinct elements, but sometimes problems may involve repeated use of elements. This article covers such problems, where elements of the set are indistinguishable (or identical or not distinct). 

Permutations with repetition –
Counting permutations when repetition of elements can be easily done using the product rule. 
Example, number of strings of length is , since for every character there are 26 possibilities. 



The number of -permutations of a set of  objects 

with repetition is .

Combinations with repetition –
Counting the number of combinations with repetition is a bit more complicated than counting permutations. Consider a set of types of objects and we need to find out in how many ways can elements be chosen. 
To solve the above problem we will first take a look at a similar problem that is arranging bars(|) and stars(*). Suppose there are 5 bars and 3 stars. One possible arrangement is –  

||*||**|


They can be arranged in ways. 
Our original problem is similar to the above problem. The bars represent divisions between the types of elements such that each type is separated by a bar and the number of stars is 
If a star is before the nth bar, then that means an item of nth type is selected, except for the last type where the star can be after a bar. For example, the arrangement mentioned above, ||*||**|, represents a selection of 1 element of 3rd type and 2 elements of 5th type. 
In this way our original problem can be thought of as arranging stars (elements) and bars(divisions). The above result can be generalized as- 
 



There are -combinations from a set with 

elements when repetition is allowed.

References –
Permutations and Combinations 
Discrete Mathematics and its Applications, by Kenneth H Rosen 
 


Article Tags :