- #1
Sarina3003
- 20
- 0
Homework Statement
The question is counting how many sequence length 10 with 1,2,3 if
a) increasing from left to right with repetition allowed
b) increase from left to right with each number appear at least once (still with repetition allowed)
Homework Equations
It is the stars and bars method
The Attempt at a Solution
For a) i did 3^10. Please tell if it is wrong :( that is the only option i have
And for b) i use 3^10 - 3x 2^10 , the reason for 2^10 is this is for the case one of them not appear at all, and times 3 for each of the case for 1,2,3 respectively
As stated above, i am almost sure that this can be done by using the stars and the bar method, however i do not know how to compute it so i was tried to do what make the most sense to me
Please give me some guide
Thanks so much!