JEE Main 2026 · 24 January · morning · Numerical answer · +4 / −1
The number of numbers greater than 5000 , less than 9000 and divisible by 3 , that can be formed using the digits 0,1,2,5,9, if the repetition of the digits is allowed, is ____
Answer and solution
Answer 42
Solution
Maths sir · 5 steps
Only 5 can lead, so count the last three digits by their remainders when divided by 3.
- Fix the first digit. The number has 4 digits and lies between 5000 and 9000, so its first digit is 5. A 9 in front gives 9000 or more, which is not allowed. The other three places can each take any of the 5 digits.
- Use remainders. A number is divisible by 3 when its digit sum is. The first digit 5 leaves remainder 2, so the last three digits must have a sum that leaves remainder 1 when divided by 3.
Remainder when divided by 3 Digits How many 0 0, 9 2 1 1 1 2 2, 5 2 - Two digits first. Of the 25 ways to fill two places, the sum leaves remainder 0 in 2 × 2 + 1 × 2 + 2 × 1 = 8 ways, remainder 1 in 2 × 1 + 1 × 2 + 2 × 2 = 8 ways, and remainder 2 in 2 × 2 + 1 × 1 + 2 × 2 = 9 ways.
- Add the third. The third digit must bring the remainder of the sum to 1. If the first two leave 0, it needs remainder 1: 8 × 1 = 8. If they leave 1, it needs remainder 0: 8 × 2 = 16. If they leave 2, it needs remainder 2: 9 × 2 = 18.
- So. The count is 8 + 16 + 18 = 42.
The common slip: 83. Allowing 9 as the first digit adds 41 more numbers from the 9000s and gives 83, but every such number is 9000 or more.
The idea to keep. For divisibility by 3 with repetition allowed, group the digits by remainder and build the number place by place, tracking only the remainder of the sum.
Answer from the NTA final answer key. Solution by PrepWiser.