Integers below a million with digit sum 19
Question
Count the positive integers less than whose decimal digits add up to .
Short answer
. Pad to six digits with . Stars and bars gives without the cap; a digit exceeding can happen for only one digit at a time (two would need ), and each such case leaves solutions, so subtract .
Adapted from OpenQuant; question and answer rewritten by SelfMadeQuant.com.
See the hint and the full worked solution in the question bank (free account).
Open the worked solutionLessons behind this question
Start with a free lesson: Probability Fundamentals is part of a free topic. Create a free account, no card needed, to read it in full with worked solutions.
Read it free