1

Can you think of the number of ways of adding "$1$" and "$-1$" (where both are used equal number of times) such that the at any point during the addition the sum is non-negative and the overall sum is 0. For e.g.

$a. 1 - 1 + 1 - 1 = 0 \rightarrow$ correct

$b. 1 - 1 - 1 + 1 = 0 \rightarrow$ incorrect (As sum becomes $-1$ i.e. negative at third element)

$c. 1 + 1 + 1 - 1 - 1 + 1 - 1 - 1 = 0 \rightarrow$ correct

$d. 1 + 1 - 1 - 1 - 1 + 1 = 0 \rightarrow$ incorrect (As sum becomes $-1$ i.e. negative at fifth element)

RobPratt
  • 50,938

0 Answers0