The total number of four digit numbers such that each of the first three digits is divisible by the last digit, is equal to\_\_\_\_
Answer: 1086
Solutions · 1
Official solution
Let the number be abcd where a,b,c are each divisible by d (and a=0).
- d=1: a,b,c any digit (a=0): 9×10×10=900
- d=2: a,b,c∈{2,4,6,8} (also 0 for b,c; but must be divisible by 2, and a=0): 4×5×5=100
- d=3: a,b,c∈{3,6,9} (plus 0 for b,c): 3×4×4=48
- d=4: {4,8} plus 0: 2×3×3=18
- d=5: {5} plus 0: 1×2×2=4
- d=6,7,8,9: only digit itself qualifies (plus 0 for b,c): 1×2×2=4 each, total 4×4=16
\[\text{Total} = 900+100+48+18+4+16 = 1086\]