a. How many 4 digit numbers are there such that at least one digit is a sum of 2 or 3 of the others?

b. How many 5 digit numbers are there such that at least one digit is a sum of 2,3 or 4 of the others?

The following conditions apply both for a and for b:

*No leading zeros.

*The numbers consist of distinct digits.