The number of numbers greater than 5000, less than 9000 and divisible by 3, that can be formed using the digits , if the repetition of the digits is allowed, is ______
Answer: 42
Solution
Since the only usable digits are and the number must lie strictly between and , the thousands digit must be , so the number is with . Divisibility by needs , i.e. . The residues modulo are , , , with counts . Counting ordered triples whose residues sum to gives . Hence the number of such numbers is .
JEE Main · 2026 · 24 Jan 2026 · Shift 1 · Integer answer