The given digits are 1,2,3
The number of seven digited numbers whose sum of the digits is 10 :
Case (i) Suppose that the digits are 1,1,1,1,1,2,3, this can be arranged among themselves in ways
Case (ii) Suppose that the digits are 1,1,1,1,2,2,2, this can be arranged among themselves in ways.
Total number of 7 digited numbers is