Lecture 2 - Combinatorics
Lecture 2 - Combinatorics
رياضيات
1.2. Permutations
“ How many ways are there to arrange 5 boys and 3 girls in a row so that
no two girls are adjacent?”
Next we choose an object from the remaining ones in and put it in the
second position. We proceed on until the th- step in which we choose an
Solution.
Example 1.2.3. There are boys and girls in a gathering. In how many
ways can they be arranged in a row so that
(i) The girls form a single block (i.e. there is no boys between any
two of the girls)?
(ii) The two end-positions are occupied by boys and no girls are
adjacent?
Solution. (i) Since the 3 girls must be together, we can treat them as a
single entity. The number of ways to arrange boys together with this
entity is . As the girls can permute among themselves
within the entity in ways, the desired number of ways is , by
(MP),
(ii) We first consider the arrangements of boys and then those of girls .
There are ways to arrange the boys. Fix an arbitrary one of the
arrangements. Since the end-positions are occupied by boys, there are
only spaces for the girls and .
has choices. Since no two girls are adjacent, has choices and
has 4. Thus by (MP), the number of such arrangements is
Case 1:
Case :
Example 1.2.5. Let be the set of natural numbers whose digits are
chosen from such that no digits are repeated. Find
(i)
(ii)
and find by applying (AP). Thus for let denote the set
of - digit natural numbers formed by with no repeatition . Then
and by (AP),
Hence by (AP),
Similarly, we have
and
Thus ,
Exercise 2.
where .
Answer:
7. Evaluate
where .
Answer: