# Digit Sum 7

Probability Level 3

How many positive integers less than 1000000 have the sum of their digits equal to 7?

Details and assumptions

The digit sum of a number is the sum of all its digits. For example the digit sum of 1123 is $1 + 1 + 2 + 3 = 7$.

×