Using letters from the alphabet $A = \{a, b, c, d, e, f, g\}$, how many words of length $5$ are possible when repetition is allowed but the letters must occur in alphabetical order?
Not sure how to tackle this one in the case that repetition is allowed. Any hints? Thanks! 🙂
Best Answer
The question can be rephrased as:
E.g. possibility $2+0+1+1+1+0+0=5$ corresponds with word "aacde".
This can be solved with stars and bars.