Explore Discrete Math Examples

Recent questions in Discrete math
Discrete mathAnswered question
Savanah Boone Savanah Boone 2022-07-07

How many length-6 lists can be made from the symbols {A,B,C,D,E,F,G} if repetition is allowed
I am trying to solve this question from The Book of Proof, and I solved it in a different way than the author. The question is as follows:
How many length-6 lists can be made from the symbols {A,B,C,D,E,F,G} if repetition is allowed and the list is in alphabetical order? (Ex. BBCEGG, but not BBBAGG).
My Solution
Since we want this to be in alphabetical order we need to think of what the starting letter is. If the starting letter is A then we are free to choose A as many times after that. If we choose B to be our first letter than we can never choose A in that list.
Using "stars and bars," let's say we choose A to be our first letter, then we have 5 more spots to from our selection of symbols. Thus, we have 5 stars and 6 bars, (115).
Using the same idea for choosing B being the first letter, we have 5 more spots to fill in, but we cannot choose A. This leads to the consequence of loosing a bar. So, we have 5 stars and now 5 bars leading to
Continuing with this choosing the first letter from A to G we get:
( 11 5 ) + ( 10 5 ) + ( 9 5 ) + ( 8 5 ) + ( 7 5 ) + ( 6 5 ) + ( 5 5 ) = 924
Authors Solution:
Any such list corresponds to a 6-element multiset made from the symbols {A,B,C,D,E,F,G}. For example, the list AACDDG corresponds to the multiset [A,A,C,D,D,G]. Thus the number of lists equals the number of multisets, which is ( 12 6 )
My Question:
Is my solution a correct way to use Stars and Bars?
The way the author solved it, how can you enforce the idea that the lists are in alphabetical order without explicitly telling it so?

Discrete mathAnswered question
letumsnemesislh letumsnemesislh 2022-07-04

Difference between p cos θ and cos p θ

Dealing with discrete Math is an interesting subject because discrete Math equations can be encountered basically anywhere from scheduling of sports games and live shows to education where each person is examined online. It is a reason why discrete math questions that we have collected for you are aimed at solutions that go beyond equations to provide you with the answers that will help you understand the concept. Still, discrete Math equations are explained as well by turning to problems in computer science, programming, software, and cryptography among other interesting subjects like software and mobile apps development.