The number of integers with and containing at most two distinct digits is
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.
Answer and worked solution
Try it yourself first, then check your working against this.
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)
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.
- Let S={A=[a b; c d]:a,b,c,d∈{0,1,2,3,4} and A²-4A+3I=0} be a set of 2×2 matrices. Then the number of matrices in S, for which the sum of the…JEE Main 2026 (4 Apr Shift 1) · Maths Q5
- Let A={1,2,3,4,5,6}. The number of one-one functions f:A→ A such that f(1)≥3, f(3)≤4 and f(2)+f(3)=5, is ___.JEE Main 2026 (5 Apr Shift 1) · Maths Q21
- Consider the matrix P = (2 0 0; 0 2 0; 0 0 3). Let the transpose of a matrix X be denoted by Xᵀ. Then the number of 3×3 invertible matrices Q with…JEE Advanced 2025 (Paper 1) · Maths Q4
- The number of different 5 digit numbers greater than 50000 that can be formed using the digits 0, 1, 2, 3, 4, 5, 6, 7, such that the sum of their…JEE Main 2025 (28 Jan Shift 1) · Maths Q7
- The largest n∈N such that 3ⁿ divides 50! is:JEE Main 2025 (2 Apr Shift 1) · Maths Q6
- If the number of seven-digit numbers, such that the sum of their digits is even, is m· n·10ⁿ; m,n∈{1,2,3,…,9}, then m+n is equal to ___JEE Main 2025 (3 Apr Shift 1) · Maths Q21