Number of 4-digit numbers (the repetition of digits is allowed) which are made using the digits 1, 2, 3 and 5, and are divisible by 15, is equal to ____.
Answer: 21
Solution
Divisibility by requires divisibility by both and . The only available digit for the units place is , so the number is with each , and the digit sum must be a multiple of , i.e. . Modulo the digit gives residue , the digit gives , and the digits give , so each position supplies one digit of residue , one of residue and two of residue . Counting ordered residue-triples summing to , weighted by these multiplicities, gives admissible numbers.
JEE Main · 2023 · 30 Jan 2023 · Shift 1 · Integer answer