It can be used to solve many simple counting problems, such as how many ways there are to put n indistinguishable balls into k distinguishable bins
https://en.wikipedia.org/wiki/Stars_and_bars_(combinatorics)
- Permutation and combination
- Stars and bars
https://codeforces.com/problemset/problem/57/C
Array: [https://codeforces.com/problemset/problem/57/C]
On Number of Decompositions into Multipliers [https://codeforces.com/contest/397/problem/C]
Counting Arrays [https://codeforces.com/contest/893/problem/E]
Authors:
- Mohammad AbuAboud