Find the coefficient of x 6 in
( 1 − 2 x + 3 x 2 − 4 x 3 + 5 x 4 ) 3 .
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.
The unique products of powers that matter in this problem are those of the form that add up to the 6th power. Namely, ( 0 , 2 , 4 ) ( 0 , 3 , 3 ) ( 1 , 1 , 4 ) ( 1 , 2 , 3 ) ( 2 , 2 , 2 )
Each product repeats depending on the possible permutations.
0 , 2 , 4 | 3 different numbers, (3!/1!) = 6 permutations |
0 , 3 , 3 | 2 different numbers,(3!/2!) = 3 permutations |
1 , 1 , 4 | 2 different numbers, 3 permutations |
1 , 2 , 3 | 3 different numbers, 6 permutations |
2 , 2 , 2 | 1 number, 1 permutation |
These are called permutations with repetition.
Then, only 5 products are to be calculated.
0 , 2 , 4 → the coefficients product is ( 1 ∗ 3 ∗ 5 ) = 1 5 , which is repeated 6 times 1 5 ∗ 6 = 9 0 0 , 3 , 3 → ( 1 ∗ − 4 ∗ − 4 ) = 1 6 , 1 6 ∗ 3 = 4 8 1 , 1 , 4 → ( − 2 ∗ − 2 ∗ 5 ) = 2 0 , 2 0 ∗ 3 = 6 0 1 , 2 , 3 → ( − 2 ∗ 3 ∗ − 4 ) = 2 4 , 2 4 ∗ 6 = 1 4 4 2 , 2 , 2 → ( 3 ∗ 3 ∗ 3 ) = 2 7 , 2 7 ∗ 1 = 2 7
So, the coefficient we look for is
9 0 + 4 8 + 6 0 + 1 4 4 + 2 7 = 3 6 9 .
Notice that this approach is valid for a harder problem of this type.
Problem Loading...
Note Loading...
Set Loading...
A bruteforce approach can solve this problem easily
include<bits/stdc++.h>
using namespace std;
int main(){
}