Can I solve the problems of Combination with indistinguishable objects plus repetition allowed using a formula?
For instance,
How many $3$-letter combinations could be formed from the word $BBA$ if repetition of letters is allowed?
We know the answer is $4$, as $S=\{{AAA, BBB, ABB, AAB}\}$.
Can these kinds of problems be solved using a formula, or, do I need to manually solve it every time?
Note. The problem in this question is different from the problem posted in this problem which I posted earlier. Here we have $2$ letters and need to produce $3$-element combinations (i.e. $n<r$). On the other hand, in the previous problem, we had $3$ letters to choose from $26$ letters (i.e. $n>r$).
indistinguishable objectsin the previous problem. – user366312 Jun 02 '18 at 13:42