Number of -digit numbers that are less than or equal to and either divisible by or by , is equal to:
JEE Mathematics 2023 Question with Solution
Answer
Correct answer:710
Step-by-step solution
Standard Method
Given: We need the number of -digit numbers from to that are divisible by or .
Find: The total count using the inclusion-exclusion principle.
Numbers divisible by form an arithmetic progression from to :
So,
Hence, .
For numbers divisible by between and :
Therefore,
Numbers divisible by both and are divisible by :
Therefore,
Now apply inclusion-exclusion:
Therefore, the required number is .
Step-by-step Count
Given: Count the -digit numbers less than or equal to that are divisible by or .
Find: Total count.
Step 1: Find the number of -digit numbers divisible by . The range is from to . The first such number is and the last is .
So, there are numbers divisible by .
Step 2: Find the number divisible by .
So, there are numbers divisible by .
Step 3: Find the number divisible by both, that is, divisible by .
So, there are numbers divisible by .
Step 4: Use inclusion-exclusion.
Therefore, the answer is .
Common mistakes
Counting numbers divisible by and numbers divisible by separately and then adding them directly. This double-counts numbers divisible by . Use inclusion-exclusion and subtract .
Using as an included multiple limit instead of recognizing that the numbers are less than or equal to , so the actual upper bound for divisibility counting here is . Check whether is divisible by the required numbers before counting.
Starting the count of -digit numbers from or without identifying the first valid multiple. For divisibility by , the first valid term is , not .
Practice more Applications of P&C questions
Get unlimited AI-adaptive practice, mastery tracking, and an AI tutor that explains every step — free to start.
Related questions
- The number of strictly increasing functions f from the set 1, 2, 3, 4, 5, 6 to the set 1, 2, 3,, 9 such that…Medium · JEE 2026
- Let S = (m, n): m, n 1, 2, 3,....., 50. If the number of elements (m, n) in S such that 6^m+9^n is a multiple…Medium · JEE 2026
- The largest n N, for which 7^n divides 101!, is:Easy · JEE 2026
- If ( 1^15C0 + 1^15C1) ( 1^15C1 + 1^15C2) ( 1^15C12 + 1^15C13) = ^13^14C0 ^14C1 ^14C12, then 30 is equal to.Medium · JEE 2026
- Let ABC be a triangle. Consider four points p1, p2, p3, p4 on the side AB, five points p5, p6, p7, p8, p9 on…Medium · JEE 2026
- The number of 4-letter words, with or without meaning, which can be formed using the letters PQRPRSTUVP, is:Medium · JEE 2026
