Three-digit codes with nonzero digits summing to 10 or less
Question
A safe opens with a code of three digits. No digit is , and the three digits together add up to at most . How many codes are possible?
Short answer
. Add a slack variable: with , . Substituting gives four non-negative parts summing to , so (the cap of per digit never binds).
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