The number of integers with and containing at most two distinct digits is
KVPY 2013MathematicsSingle correct+1 / -0.25
Mathematics, question 18
From KVPY 2013 · Streams SB/SX
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. : 9 numbers.
Exactly two distinct digits, neither of them . Choose the pair: ways. Each pair gives strings, of which use only one digit, leaving . All are valid (no leading zero):
Exactly two distinct digits, one of them . The pair is with : choices. The leading digit must be , and the other two digits are free in : strings, minus the one that is , leaving :
Total. .
(A)
Practise this topic
Every past question tagged to the same part of the syllabus, with solutions.