A sequence of length $2n$ that contains only $1, -1$ (every time I say "sequence", I mean that these properties hold) is said to be balanced if all the $2n$ partial sums are non-negtive.
I'm requested to calculate the number of balanced sequences (given $n$).
I already know the answer, by using another result I've proven in the past: the number of balanced sequences with sum $2m$ for $0\leq m\leq n$ is $\binom{2n}{n+m}-\binom{2n}{n+m+1}$. So when we sum this expression over all the possible values for $m$, we get the right answer to my first question: $\binom{2n}{n}$. (Note that the sum has to be even).
Now, this is exactly the number of sequences with sum $0$, so my question is if there is a better way to see it, i.e:
Is there a natural bijection from the set of balanced sequences to the set of sequences with sum $0$?
My attempt: Let $\left\{a_i \right \}_{i=1}^{2n}$ a balanced sequence, and let $2m$ be it's sum. Let $k_0\geq 1$ be the first index that satisifies $\sum_{i=1}^{k_0}a_i=m$ (it exists!) and define a new sequence: $\bar{a}_i=\left\{\begin{matrix} a_i & 1\leq i \leq k_0 \\ -a_i & i>k_0 \end{matrix}\right.$ The new sequence has a sum $0$, but is it a bijection?
I'd like to hear your suggestions. Thanks!