Jokingly, this is a question I have always wondered about:
- Suppose I post a question on Math Stackexchange: my current score is $0$
- If someone wants to vote on my question, they can either vote to give a score of $+ 10$ or a score of $-2$
- Suppose there are $N$ members in the Math Stackexchange community (for the sake of this problem, lets assume it stays constant throughout this problem, i.e. no new members can join and no existing members can leave)
- Suppose each member can only vote once.
- Members also have the ability not to vote (i.e. $+0$)
- After some time, I check back on my question and my question now has a score of $Z$ : $Z$ is a whole number ($Z$ can be positive or negative) that is divisible by $2$
My Question: How many ways could my question have been upvoted?
For example, suppose my friend checks my Math Stackexchange account and only tells me that my question resulted in a net vote of +10 (without telling me more details as to how many people upvoted and downvoted). Scenario 1: Perhaps one person voted +10. Scenario 2: Perhaps five people each voted - 2 and two people each voted + 10. Scenario 3: Perhaps ten people each voted -2 and three people each voted + 10. etc, etc. At first glance, there seems that there can be so many combinations which resulted in a net vote of +10 !
Here is what I tried so far:
Part 1: I thought I could use the idea of the Power Set. That is, I could break all $N$ members into different combinations (i.e. subsets) of "voting" and "non-voting" members.
For example, given $2^N$, for $i$ = 1 to $N$:
- Subset 1 ($W_1$): When $i$ = 1, Voting Members = 1 and Non Voting Members = $2^N$ - $1$
- Subset 2 ($W_2$): When $i$ = 2, Voting Members = 2 and Non Voting Members = $2^N$ - $2$
- Subset 3 ($W_3$): When $i$ = 3, Voting Members = 3 and Non Voting Members = $2^N$ - $3$
- etc.
Part 2: Then, for each subset of Voting Members, we have to identify if each Subset of Voting Members can sum to $Z$. It is possible that some of the Voting Members subsets can not sum to $Z$ - these subsets have to removed. To check if a subset can add to $Z$, I think the following set of equations has to be solved for each subset:
In a given Voting Members subset $W_i$, let $x_i$ be the number of times $-2$ is picked and $y_i$ be the number of times $10$ is picked. Suppose we take some subset of Voting Members $W_i$ and there are $W_j$ members in this subset. Then:
$$W_j = x_i + y_i$$ $$ x_i * (-2) + y_i * (10) = Z $$
For a given subset of voting members $W_i$, I suppose the above equations could be solved to determine if it can sum to $Z$ or not. In the case where it can not sum to $Z$, this subset will have to be removed.
Part 3: Then, based on my very limited knowledge of combinatorics, I think some generating function (Number of ways to write n as a sum of k nonnegative integers, The number of ways to get N as the sum of R elements with constraints, In how many different from a set of numbers can a fixed sum be achieved?) would need to defined to see that within each "admissible" (i.e. not deleted in Part 2) voting members subset, how many ways can the members pick combinations of $+10$ and $-2$ such that they add to $W$.
Thus, for a subset of voting members $w_i$ with $w_j$ member, I think the generating function for this problem might be:
$$ f(a) = (a^{-2} + a^{10})^{w_j} $$
And now for each subset, I would have to evaluate this expression and find out the coefficients of the terms where the exponents sums to $w_j$. But I am not sure if this is correct.
I am afraid that I have overcomplicated the question - could someone please help me understand an easier way to answer this question? Also the approach I am thinking about would require solving the equations in Part 2 for each subset, making it impossible to answer this question in general.
Thanks!