Seven-digit codes with non-decreasing digits
Question
A sign-up code is a string of digits, each from to ; repeats are allowed and leading zeros are fine. How many codes have digits that never decrease from left to right? (For example and qualify but does not.)
Short answer
. A non-decreasing code is fixed once you know how many times each of the digits appears, so count non-negative integer solutions of . By stars and bars that is .
Adapted from QuantQuestions.io; 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
- Counting and Combinatorics
- Sample Spaces, Events, and the Probability Axioms
- Conditional Probability, Total Probability, and Bayes' Rule
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