Problem
Suppose, we have a voting with n voters and m candidates. Each voter can vote for 1 candidate. How many possible outcomes of voting can be?
Solution I tried
For 1 candidate there will always be 1 outcome.
Possible outcomes for 2 candidates:
1 voter 2 voters 3 voters 4 voters
|1|0| |2|1|0| |3|2|1|0| |4|3|2|1|0|
|0|1| |0|1|2| |0|1|2|3| |0|1|2|3|4|
2 outcomes 3 outcomes 4 outcomes 5 outcomes
So, we have a sequence: 2, 3, 4, 5, ..., n + 1, ...
3 candidates
1 voter 2 voters 3 voters
|1|0|0| |2|0|0|1|1|0| |3|0|0|2|2|0|0|1|0|1|
|0|1|0| |0|2|0|1|0|1| |0|3|0|1|0|2|1|0|1|1|
|0|0|1| |0|0|2|0|1|1| |0|0|3|0|1|1|2|2|2|1|
3 outcomes 6 outcomes 10 outcomes
3,6,10, ... ?
As far as I understand, first we need to take total number of groups of n elements with m elements in group: $n^m$
For example in case of 1 voter and 3 candidates total will be $2^3 = 8$:
|0|0|1| <- good
|0|1|0| <- good
|1|0|0| <- good
|1|0|1|
|1|1|0|
|1|1|1|
These are possible binary numbers, consisting of 3 positions.
And find the number of those numbers, whose sum of digits is equal to n. But I don't know, how to do the last part.