We need to find the total number of four-digit numbers such that each of the first three digits is divisible by the last digit.
Let the four-digit number be abcd where a is the thousands digit, b the hundreds, c the tens, and d the units digit. The conditions are d∣a, d∣b, d∣c, a≥1, and d≥1.
d = 1: Any digit is divisible by 1, so a∈{1,...,9} (9 choices), b,c∈{0,...,9} (10 choices each), giving 9×10×10=900.
d = 2: a∈{2,4,6,8} (4 choices), b,c∈{0,2,4,6,8} (5 choices each), giving 4×5×5=100.
d = 3: a∈{3,6,9} (3 choices), b,c∈{0,3,6,9} (4 choices each), giving 3×4×4=48.
d = 4: a∈{4,8} (2 choices), b,c∈{0,4,8} (3 choices each), giving 2×3×3=18.
d = 5: a∈{5} (1 choice), b,c∈{0,5} (2 choices each), giving 1×2×2=4.
d = 6: a∈{6} (1 choice), b,c∈{0,6} (2 choices each), giving 1×2×2=4.
d = 7: a∈{7} (1 choice), b,c∈{0,7} (2 choices each), giving 1×2×2=4.
d = 8: a∈{8} (1 choice), b,c∈{0,8} (2 choices each), giving 1×2×2=4.
d = 9: a∈{9} (1 choice), b,c∈{0,9} (2 choices each), giving 1×2×2=4.
900+100+48+18+4+4+4+4+4=1086 Therefore, the answer is 1086.