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

Mathematics, question 18

From KVPY 2013 · Streams SB/SX

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 solutionTry it first, then open this to check your working.
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)

Practise this topic

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

full papers
153
questions
13,073
worked solutions
13,054

Sit a paper tonight. See exactly where you stand.

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