Solution: Let xi(1≤i≤7) be the digit at the i th place. As 1≤xi≤3, and x1+x2+…+x7=10, at most one xi can be 3 .
Two cases arise.
Case 1.
Exactly one of xi 's is 3 . In this case exactly one of the remaining xi 's is 2 .
In this case, the number of seven digit numbers is 5!7!=7×6=42
Case 2.
None of xi 's is 3 .
In this case exactly three of xi 's is 2 and the remaining four xi 's are 1.
In this case, the number of seven digit number is 3!4!7!=35
Hence, the required seven digit numbers is 42+35=77.