Skip to content
dronacharya.ai
KVPY 2013MathematicsSingle correct+1 / -0.25

KVPY 2013 Maths Q18: Fundamental principle of counting

From the KVPY 2013 · Streams SB/SX paper. Try it, check your answer, then read the worked solution below.

The number of integers nn with 100≤n≤999100 \le n \le 999 and containing at most two distinct digits is

Choose one option

Answer and worked solution

Try it yourself first, then check your working against this.

Official answerA

Worked solution

Count three-digit strings (leading digit non-zero) whose digits come from a set of size at most two.

Exactly one distinct digit. 111,222,…,999111, 222, \ldots, 999: 9 numbers.

Exactly two distinct digits, neither of them 00. Choose the pair: (92)=36\binom92 = 36 ways. Each pair gives 23=82^3 = 8 strings, of which 22 use only one digit, leaving 66. All are valid (no leading zero):
36×6=216.36 \times 6 = 216 .

Exactly two distinct digits, one of them 00. The pair is {0,a}\{0, a\} with a∈{1,…,9}a \in \{1,\dots,9\}: 99 choices. The leading digit must be aa, and the other two digits are free in {0,a}\{0, a\}: 44 strings, minus the one that is aaaaaa, leaving 33:
9×3=27.9 \times 3 = 27 .

Total. 9+216+27=2529 + 216 + 27 = 252.

(A)

Concepts used: count three-digit numbers with one digit, then with exactly two, leading digit cannot be zero

Practise this topic

Every past question tagged to the same part of the syllabus, with solutions.

Similar questions from other papers

Past questions on the same topic (Fundamental principle of counting), each with a worked solution.

full papers
217
questions
18,571
worked solutions
18,550

Sit a paper tonight. See exactly where you stand.

Timed, in the real format, and marked the moment you submit.