If the expression ( x 2 + 2 x − 1 ) 8 is completely expanded, what is the sum of the coefficients of the terms with even powers of x ?
Details and assumptions
0 is an even number.
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.
Suppose that f ( x ) = ( x 2 + 2 x − 1 ) 8 = ∑ i = 0 1 6 a n x n .
Now note that
f ( 1 ) = 2 8 = ∑ i = 0 1 6 a n
and
f ( − 1 ) = 2 8 = ∑ i = 0 1 6 a n ( − 1 ) n .
Thus, because the odd coefficients cancel out,
2 1 ( f ( 1 ) + f ( − 1 ) ) = ∑ i = 0 8 a 2 n
and the desird answer is 2 1 ( 2 8 + 2 8 ) = 2 5 6
We first note that for a given polynomial, f ( x ) = a m x m + a m − 1 x m − 1 + . . . + a 0 , we have the following;
Thus, combining these two properties, we see that 2 f ( 1 ) + f ( − 1 ) gives exactly the sum of the coefficients of the even powers of x (as the even power terms will double up while the odd power terms will cancel due to the powers of − 1 ).
Hence, noting that g ( x ) = ( x 2 + 2 x − 1 ) 8 is a polynomial, we have that the sum of the coefficients of the even powers of x is 2 g ( 1 ) + g ( − 1 ) = 2 2 8 + ( − 2 ) 8 = 2 8 = 2 5 6
since odd polynomials change there sign on reversing the value of the variable hence even ones preserve their signs to calculate the sum of coefficients of even ones we just need to add the values of polynomial at unity and negative unity and average it out which gives (256+256)/2=256
We'll expand the binomial and we'll get:
(x^2+2x-1)^8 = a0 + a1 x + a2 x^2 + ... + a16*x^16
a0,a1,a2,...,a16 are the coefficients of polynomial.
The sum of even coefficients is:
a0 + a2 + ... + a14 + a16
if we want to determine the summof all coefficients of a polynomial, we'll have to make the variable x = 1 and x=-1
We'll put x = 1 and we'll calculate:
(1+2-1)^8 = a0 + a1 + a2 + ... + a16
a0 + a1 + ... + a16 = 2^8 (1)
Now, we'll put x = -1
(1-2-1)^8 = a0 - a1 + ... - a15 + a16
a0 - a1 + ... - a15 + a16 = 2^8 (2)
We'll add (1) + (2):
(a0 +a1 + ... + a16) + (a0 -a1 + ... - a15 + a16) = 2^9 (the odd coefficients will be eliminated)
We'll eliminate and combine like terms:
2(a0 + a2 + ... + a14 + a16) = 2^9
a0 + a2 + ... + a14 + a16 = 2^9/2
a0 + a2 + ... + a14 + a16 = 2^8
The sum of even coefficientas of the given polynomial is: a0 + a2 + ... + a14 + a16 = 2^8
First split the expression x 2 + 2 x − 1 into x 2 − 1 and 2 x . Then use binomial expansion to expand the expression, to get ( 0 8 ) ( x 2 − 1 ) 8 + ( 1 8 ) ( x 2 − 1 ) 7 ( 2 x ) 1 + ( 2 8 ) ( x 2 − 1 ) 6 ( 2 x ) 2 + ( 3 8 ) ( x 2 − 1 ) 5 ( 2 x ) 3 + ( 4 8 ) ( x 2 − 1 ) 4 ( 2 x ) 4 + ( 5 8 ) ( x 2 − 1 ) 3 ( 2 x ) 5 + ( 6 8 ) ( x 2 − 1 ) 2 ( 2 x ) 6 + ( 7 8 ) ( x 2 − 1 ) 1 ( 2 x ) 7 + ( 8 8 ) ( 2 x ) 8 . Since the question asks for the coefficients of the terms with even powers of x , the terms with only odd powers of x need not be considered. It can be seen that any power of x 2 − 1 will only have even powers of x . Thus, we only need to look at the power of 2 x . From this, we only need to consider the terms of the expansion which have an even power of 2 x . However, the coefficients of the terms of the expansion of x 2 − 1 will add up to zero. For example, ( x 2 − 1 ) 2 is equals to x 4 − 2 x 2 + 1 , and 1 − 2 + 1 is equals to zero. Therefore, the only term to consider is the last term, which is ( 8 8 ) ( 2 x ) 8 , as the power of x 2 − 1 in this case will be zero. Working out the expression gives 2 5 6 x 8 , so the sum of the coefficients of the even powers of x is 2 5 6 .
[Revised text. This is now correct]
I see some similarity with how I did it, but I think you made it needlessly hard on yourself. For any polynomial that is a multiple of x 2 − 1 (does not need to be a power), the coefficients of terms with even powers of x will add up to 0.
( x 2 + 2 x − 1 ) 8 − ( 2 x ) 8 is a multiple of x 2 − 1 , and ( 2 x ) 8 = 2 5 6 x 8 , so it follows that the answer to the original question is 2 5 6 .
Enough said
Log in to reply
Sir, I don't know why it has got 10 upvotes
We show a more general result. For a polynomial P ( x ) , the sum of the coefficients of the terms with even powers is 2 1 ( P ( 1 ) + P ( − 1 ) ) . We prove this as follows:
Let P ( x ) = a n x n + a n − 1 x n − 1 + ⋯ + a 0 . Note that x 2 b = 1 for x = 1 , − 1 , and x 2 b − 1 = − ( − x ) 2 b − 1 . In particular, this means that
P ( 1 ) + P ( − 1 ) = 2 ( a 0 + a 2 + a 4 + ⋯ ) , and so the sum of the coefficients of the terms with even powers of x is 2 1 ( P ( 1 ) + P ( − 1 ) ) , as desired.
We can extend this concept to the roots of unity filter . Let 1 , ω , ω 2 , ω 3 , ⋯ , ω k − 1 be the k th roots of unity. Let P ( x ) = a n x n + a n − 1 x n − 1 + ⋯ + a 0 . Note for any term with an index divisible by k will have x k evaluate to 1 for each of the roots of unity. For an index not divisible by k , say i , the term evaluates to
a i ( ω i + ω 2 i + ⋯ + ω i ( n − 1 ) ) = a i ( ω i − 1 ω i n − 1 ) . Recall that i is not divisible by k , thus this evaluates to 0.
Therefore, the sum of the coefficients in a polynomial P ( x ) whose indices are divisible by k is
k 1 ( P ( 1 ) + P ( ω ) + P ( ω 2 ) + ⋯ + P ( ω k − 1 ) ) .
Note that this agrees with our above answer. The 2nd roots of unity are 1 , − 1 , so we seek 2 1 ( P ( 1 ) + P ( − 1 ) ) as above.
This is a powerful technique with several non-obvious applications. For example, the problem
"Compute ( 0 2 0 1 3 ) + ( 3 2 0 1 3 ) + ⋯ + ( 2 0 1 3 2 0 1 3 ) "
has a nice solution using the roots of unity filter. We leave this as an exercise for the reader to practice their skills, and suggest as a hint to replace 2013 with the more general 3 n .
Let E be the sum of the even coefficients of the polynomial. Let D be the sum of the odd coefficients of the polynomial. Setting x = 1 gives the sum of all the coefficients. So D + E = ( 1 + 2 − 1 ) 8 = 2 8 . Setting x = − 1 will give the sum of all the even coefficients minus the sum of all the odd coefficients. So E − D = ( 1 − 2 − 1 ) 8 = ( − 2 ) 8 = 2 8 . Solving these two equations gives E = 2 8 , D = 0 . Thus, the sum of the even coefficients is 2 8 = 2 5 6 .
Problem Loading...
Note Loading...
Set Loading...
Let f ( x ) = ( x 2 + 2 x − 1 ) 8 = a 1 6 x 1 6 + a 1 5 x 1 5 + . . . + a 2 x 2 + a 1 x + a 0
We wish to find a 1 6 + . . . + a 2 + a 0 .
Note that f ( − 1 ) = a 1 6 − a 1 5 + . . . + a 2 − a 1 + a 0 and that f ( 1 ) = a 1 6 + a 1 5 + . . . + a 2 + a 1 + a 0
Consequently, f ( − 1 ) + f ( 1 ) = 2 ( a 1 6 + . . . + a 2 + a 0 ) = 2 8 + ( − 2 ) 8 = 2 ∗ 2 5 6
We then have: a 1 6 + . . . + a 2 + a 0 = 2 5 6