The formula for sum of all numbers formed with all the given digits is:
(Sum of digits) (n-1)!(1111....ntimes)
n stands for number of digits.
For ex: Sum of all numbers formed with 1,2,3 and 4 is 10 × 3! × 1111 = 66660.
Can anyone figure out how this was derived?