How many different sums of parts of a vector
Few votes (3) and no answers. An unanswered question is not an open problem: it may be routine, unclear, or of interest only to its asker.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
I hope this question isn't too basic for MO. I also asked it on math.se previously. This mathematical puzzle was given to me by a friend a while ago and I can't work out how to solve it. Does anyone have any ideas?
For a given vector \(v \in \{-1,1\}^n\) we consider the following \(n\) sums. $$S_j=\sum_{i=0}^j v_i - \sum_{i=j+1}^{n-1} v_i \text{ for } 0 \leq j \leq n-1.$$
For example if \(v = (-1,1,1)\) then \(S=(-3,-1,1).\)
Now let \(T_j = 1\) if \(S_j>0\) and \(0\) otherwise. So for our example vector \(v\) we have that \(T=(0,0,1)\)
Considered over all \(2^n\) possible vectors \(v\), the question is how many different possible vectors \(T\) are there?
I think if \(n=2\) the answer is \(3\), if \(n=3\) the answer is \(8\), if \(n=4\) the answer is \(11\), if \(n=5\), the answer is \(22\) and if \(n=6\) the answer is \(31\). I have looked on OEIS with no luck.
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.