Combination · Discrete Mathematics
29 questions · asked in 16 of 27 years (2000–2026)
MCQ 19 · NAT 101-mark 21 · 2-mark 8
2000Questions per year2026
Questions 1–5 of 29
Let be the set of all ternary strings defined over the alphabet . Consider all strings in that contain at least one occurrence of two consecutive symbols, that is, "aa", "bb" or "cc". The number of such strings of length 5 that are possible is _______. (Answer in integer)
Answer: 195
Count all ternary strings of length over : .
Counting the complement is easier. These are the strings with no two equal symbols side by side. The first symbol can be chosen in ways. Each next symbol only has to differ from the symbol just before it, so it has choices every time. This gives such "no-repeat" strings.
So the number of strings with at least one consecutive repeat .
Answer: 195
Counting the complement is easier. These are the strings with no two equal symbols side by side. The first symbol can be chosen in ways. Each next symbol only has to differ from the symbol just before it, so it has choices every time. This gives such "no-repeat" strings.
So the number of strings with at least one consecutive repeat .
Answer: 195
Let U = {1, 2,...,n}, where n is a large positive integer greater than 1000. Let k be a positive integer less than n. Let A, B be subsets of U with |A| = |B| = k and . We say that a permutation of U separates A from B if one of the following is true.
- All members of A appear in the permutation before any of the members of B.
- All members of B appear in the permutation before any of the members of A.
How many permutations of U separate A from B?
- All members of A appear in the permutation before any of the members of B.
- All members of B appear in the permutation before any of the members of A.
How many permutations of U separate A from B?
Answer: (D)
Count the permutations in these steps:
- Pick the 2k positions that the elements of A B will take: ways
- Place the remaining elements in the other positions: ways
- In the 2k chosen positions, either all of A come first and then B, or all of B come first and then A: 2 ways
- Order A within its k places and order B within its k places: ways
Total count
Answer:
- Pick the 2k positions that the elements of A B will take: ways
- Place the remaining elements in the other positions: ways
- In the 2k chosen positions, either all of A come first and then B, or all of B come first and then A: 2 ways
- Order A within its k places and order B within its k places: ways
Total count
Answer:
The number of arrangements of six identical balls in three identical bins is ____.
Answer: 7
Both the balls and the bins are identical. So each arrangement is a way to split 6 into at most 3 parts.
The ways are: 6, 5+1, 4+2, 3+3, 4+1+1, 3+2+1, 2+2+2
Answer: 7
The ways are: 6, 5+1, 4+2, 3+3, 4+1+1, 3+2+1, 2+2+2
Answer: 7
There are 6 jobs with distinct difficulty levels, and 3 computers with distinct processing speeds. Each job is assigned to a computer such that:
The fastest computer gets the toughest job and the slowest computer gets the easiest job.
Every computer gets at least one job.
The number of ways in which this can be done is ___________.
The fastest computer gets the toughest job and the slowest computer gets the easiest job.
Every computer gets at least one job.
The number of ways in which this can be done is ___________.
Answer: 65
The hardest job is given to the fastest computer. The easiest job is given to the slowest computer. Each of the other 4 jobs can go to any of the 3 computers, which gives ways.
The middle computer needs at least one job. So we take away the cases where all 4 jobs go to the other two computers: .
Total: 81 16 = 65
Answer: 65
The middle computer needs at least one job. So we take away the cases where all 4 jobs go to the other two computers: .
Total: 81 16 = 65
Answer: 65
The number of permutations of the characters in LILAC so that no character appears in its original position, if the two L's are indistinguishable, is ______.
Answer: 12
Positions: 1 L, 2 I, 3 L, 4 A, 5 C. The L's cannot go in positions 1 or 3. So they take 2 of {2, 4, 5}:
- L's at {2, 4}: I, A, C fill 1, 3, 5, and C is not at 5 3! 2 = 4
- L's at {2, 5}: fill 1, 3, 4, and A is not at 4 4
- L's at {4, 5}: fill 1, 2, 3, and I is not at 2 4
Total = 12
Answer: 12
- L's at {2, 4}: I, A, C fill 1, 3, 5, and C is not at 5 3! 2 = 4
- L's at {2, 5}: fill 1, 3, 4, and A is not at 4 4
- L's at {4, 5}: fill 1, 2, 3, and I is not at 2 4
Total = 12
Answer: 12
Keep practising