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 21–25 of 29
Mala has a colouring book in which each English letter is drawn two times. She wants to paint each of these 52 prints with one of k colours, such that he colour pairs used to colour any two letters are different. Both prints of a letter can also be coloured with the same colour. What is the minimum value of k that satisfies this requirement?
Answer: (C)
Each letter has two prints, so it gets a pair of colours. The pair can have the same colour twice. No two letters may use the same pair of colours, and the order inside a pair does not matter.
With k colours the possible pairs are:
- same colour twice: k pairs
- two different colours: pairs
Total: .
There are 26 letters, so we need
.
For : , which gives only 21 pairs, not enough.
For : , which gives 28 pairs, enough.
So the minimum is .
Answer: (C)
With k colours the possible pairs are:
- same colour twice: k pairs
- two different colours: pairs
Total: .
There are 26 letters, so we need
.
For : , which gives only 21 pairs, not enough.
For : , which gives 28 pairs, enough.
So the minimum is .
Answer: (C)
In a class of 200 students, 125 students have taken Programming Language course, 85 students have taken Data Structures course, 65 students have taken Computer Organization course; 50 students have taken both Programming Language and Data Structures, 35 students have taken both Programming Language and Computer Organization; 30 students have taken both Data Structures and Computer Organization, 15 students have taken all the three courses. How many students have not taken any of the three courses?
Answer: (C)
Let A, B and C be the sets of students who took Programming Language, Data Structures and Computer Organization. By inclusion-exclusion, the number who took at least one course is
Students who took none of the three courses: .
Answer: (C)
Students who took none of the three courses: .
Answer: (C)
In a permutation of n distinct integers, an inversion is a pair such that and .
If all permutation are equally likely, what is the expected number of inversions in a randomly chosen permutation of 1.....n?
If all permutation are equally likely, what is the expected number of inversions in a randomly chosen permutation of 1.....n?
Answer: (B)
Take integers. They give possible pairs.
The integers are distinct and the order is random. So any pair is equally likely to be inverted or not inverted. This means the probability of inversion
There are pairs, and each pair is inverted with probability . So the expected number of inversions is:
Correct Option: B.
Let = {a, b, c, d, e} be an alphabet. We define an encoding scheme as follows : g(a) = 3, g(b) = 5, g(c) = 7, g(d) = 9, g(e) = 11.
Let denote the i-th prime number ().
For a non-empty string , where each , define .
For a non-empty sequence of strings from ,
define
Which of the following numbers is the encoding, h, of a non-empty sequence of strings?
Let denote the i-th prime number ().
For a non-empty string , where each , define .
For a non-empty sequence of strings from ,
define
Which of the following numbers is the encoding, h, of a non-empty sequence of strings?
Answer: (B)
Every is odd and at least 3. So for a string s, has the factor with , so f(s) is always a multiple of 8.
In , each exponent is some f value, so each exponent must be a multiple of 8, and the primes used must be consecutive from 2 (2, 3, 5, ...) with no prime skipped, since every exponent is at least 8.
(A) exponent 7 is not a multiple of 8, so no. (C) exponent 9 is not a multiple of 8, so no. (D) uses primes 2, 5, 7 and skips 3, and 10 is not a multiple of 8, so no.
(B) exponent 8 works: for the string "a", . So is h of the sequence ("a", "a", "a").
Answer: (B)
In , each exponent is some f value, so each exponent must be a multiple of 8, and the primes used must be consecutive from 2 (2, 3, 5, ...) with no prime skipped, since every exponent is at least 8.
(A) exponent 7 is not a multiple of 8, so no. (C) exponent 9 is not a multiple of 8, so no. (D) uses primes 2, 5, 7 and skips 3, and 10 is not a multiple of 8, so no.
(B) exponent 8 works: for the string "a", . So is h of the sequence ("a", "a", "a").
Answer: (B)
m identical balls are to be placed in n distinct bags. You are given that m kn, where k is a natural number 1. In how many ways can the balls be placed in the bags if each bag must contain at least k balls?
Answer: (B)
Each bag needs at least balls. So first put balls in every bag. This uses balls.
Now the number of balls left is .
Next, use the balls sticks method
There are bags, so variables. Their sum must be . There is no limit on the balls in each bag
Solving this, we get
Correct Answer:
Now the number of balls left is .
Next, use the balls sticks method
There are bags, so variables. Their sum must be . There is no limit on the balls in each bag
Solving this, we get
Correct Answer:
Keep practising