Let n be a positive integer and consider the sums:
A = ( n 0 ) + ( n 2 ) + ( n 4 ) + . . . + ( n largest even number ⩽ n )
B = ( n 1 ) + ( n 3 ) + ( n 5 ) + . . . + ( n largest odd number ⩽ n )
Does A = B ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I did the same
A nice property of binomial coefficients is that ( k − 1 n ) + ( k n ) = ( k n + 1 ) , which allows us to build Pascal's triangle:
⋮ 1 1 ⋮ 1 5 1 4 ⋮ 1 3 1 0 1 2 6 ⋮ 1 3 1 0 1 4 ⋮ 1 5 1 ⋮ 1 ⋮
In each row, the sum of the black numbers is A and the sum of the red numbers is B . Either by symmetry or by the property of construction, we conclude that A = B .
Note that for b < n , ( b n ) = ( n − b n )
Then the elements of A from left to right match up 1:1 with the elements of B from right to left. Therefore A=B.
For odds....
Note that ( k n ) = Number of non-negative integers x < 2 n , which, when written in binary, has k digits equal to 1 . (in fact, this is one of the many ways to combinatorially define the binomial coefficient)
Using this as our definition, we see that A B = Number of non-negative integers x < 2 n , which, when written in binary, has an even number of digits equal to 1 = Number of non-negative integers x < 2 n , which, when written in binary, has an odd number of digits equal to 1
Now, using the bitwise exclusive or ⊕ , we can see that
which taken together show combinatorially that A = B , no matter what the value of n is.
Observe Pascal's triangle.
In any row n the numbers in odd places are those which sum to A. And those in even places are the numbers which sum to B.
But from the way each Pascal number is the sum of the two above...
Both A and B are the sum of ALL the numbers in the row above. And are therefore equal.
In Pascal's Triangle, the sum of all the numbers in the even positions in a row give the sum of the row above, same with the odd positions.
A = B = 2 n − 1
Consider n tosses of a fair coin. Then A represents the number of permutations with an even number of heads and B represents the number of permutations with an odd number of heads
P (odd) = P (even) => A = B
By binomial theorem , we have ( 1 + x ) n = k = 0 ∑ n ( k n ) and the following.
For even n :
( 1 + 1 ) n ( 1 − 1 ) n ⟹ A ⟹ B ⟹ A = ( 0 n ) + ( 1 n ) + ( 2 n ) + ⋯ + ( n − 2 n ) + ( n − 1 n ) + ( n n ) = ( 0 n ) − ( 1 n ) + ( 2 n ) − ⋯ + ( n − 2 n ) − ( n − 1 n ) + ( n n ) = 2 ( 1 + 1 ) n + ( 1 − 1 ) n = 2 n − 1 = 2 ( 1 + 1 ) n − ( 1 − 1 ) n = 2 n − 1 = B
For odd n :
( 1 + 1 ) n ( 1 − 1 ) n ⟹ A ⟹ B ⟹ A = ( 0 n ) + ( 1 n ) + ( 2 n ) + ⋯ + ( n − 2 n ) + ( n − 1 n ) + ( n n ) = ( 0 n ) − ( 1 n ) + ( 2 n ) − ⋯ − ( n − 2 n ) + ( n − 1 n ) − ( n n ) = 2 ( 1 + 1 ) n + ( 1 − 1 ) n = 2 n − 1 = 2 ( 1 + 1 ) n − ( 1 − 1 ) n = 2 n − 1 = B
Yes , A = B for all n ≥ 1 .
Problem Loading...
Note Loading...
Set Loading...
The binomial expansion tells us that:
( 1 + x ) n = ( 0 n ) x 0 + ( 1 n ) x 1 + ( 2 n ) x 2 + ( 3 n ) x 3 + ⋯ + ( n n ) x n
If we let x = − 1 , we find that x k equals 1 for even k and -1 for odd k . Therefore:
( 1 − 1 ) n ∴ 0 = ( 0 n ) − ( 1 n ) + ( 2 n ) − ( 3 n ) + ⋯ + ( n n ) ( − 1 ) n = ( 0 n ) − ( 1 n ) + ( 2 n ) − ( 3 n ) + ⋯ + ( n n ) ( − 1 ) n
∴ ( 1 n ) + ( 3 n ) + ( 5 n ) + ⋯ + ( n − 1 n ) ( 1 n ) + ( 3 n ) + ( 5 n ) + ⋯ + ( n n ) = = ( 0 n ) + ( 2 n ) + ( 4 n ) + ⋯ + ( n n ) for even n , or ( 0 n ) + ( 2 n ) + ( 4 n ) + ⋯ + ( n − 1 n ) for odd n
In either of the above cases, the sum of all odd terms equals the sum of all even terms, and so the answer is Yes , A = B always.