Considering the numbers from $100$ to $999$. Excluding numbers that have the digit $0$, also excluding numbers that have repeated digit. What is the sum of remaining numbers?
That is, we need to find
$123+124+125+\cdots+129+132+134+135+136+\cdots+139+142+143+145+146+147+\cdots+987$
Using Microsoft Excel, I found that the answer is $279720$. But I do not know if the calculation can be done in a purely mathematical way (without using any software). I hope you can provide some hints.
Your help would be appreciated. THANKS!
Each digit runs from $1$ to $9$, which sums to $\binom{10}2=45$; for each value there are $8\cdot7=56$ admissible values of the other digits; and the total value of the digits is $111$. So the sum is
$$ 45\cdot56\cdot111=279720\;. $$