The total number of three-digit numbers, divisible by 3, which can be formed using the digits , if repetition of digits is allowed, is:
- (A)22✓ Correct
- (B)18
- (C)21
- (D)20
Answer: (A)
Solution
A number is divisible by when its digit sum is. Among the residues modulo are . Counting three-digit strings whose digit sum is a multiple of : the equal-digit numbers give ; the multiset (sum ) gives arrangements and (sum ) gives ; the all-different sets and give arrangements each. The total is .
JEE Main · 2023 · 15 Apr 2023 · Shift 1 · Single correct option