Polynomials with length and degree 4

The length of a polynomial is the sum of absolute values of all of its coefficients. How many polynomials in one variable are there with integer coefficients have degree 4 and length 4?


The answer is 258.

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.

3 solutions

Pi Han Goh
Aug 26, 2013

Let the polynomial be a x 4 + b x 3 + c x 2 + d x + e ax^4 + bx^3 + cx^2 + dx + e , since the length is 4. Then

a + b + c + d + e = 4 |a| + |b| + |c| + |d| + |e| = 4 , with integers a , b , c , d , e a,b,c,d,e , and a 0 a \ne 0

I will denote A B C D E ABCDE as the solution of a , b , c , d , e |a|, |b|, |c|, |d|, |e| where A = a A = |a| , B , C , D , E B, C, D, E are equals to b , c , d , e |b|, |c|, |d|, |e| in a certain order

For A = 1 A = 1 , 13000 , 12100 , 11110 13000, 12100, 11110 are possible solution

  • If 13000 13000 , there's a total possibilty of 2 2 2^2 change in sign: ( 1 , 3 ) , ( 1 , 3 ) , ( 1 , 3 ) , ( 1 , 3 ) (1,3), (1,-3), (-1,3), (-1,-3) , with A = ± 1 A = \pm 1 , so the total arrangement is 2 2 4 ! 3 ! = 16 2^2 \cdot \frac {4!}{3!} = 16

  • If 12100 12100 , using the same analogy gives a total arrangement of 2 3 4 ! 2 ! = 96 2^3 \cdot \frac {4!}{2!} = 96

  • If 11110 11110 , total arrangement is 2 4 4 ! 3 ! = 64 2^4 \cdot \frac {4!}{3!} = 64

For A = 2 A = 2 , 22000 , 21100 22000, 21100 are possible solution

  • If 22000 22000 , then 2 2 4 ! 3 ! = 16 2^2 \cdot \frac {4!}{3!} = 16

  • If 21100 21100 , then 2 3 4 ! 2 ! 2 ! = 48 2^3 \cdot \frac {4!}{2! 2!} = 48

For A = 3 31000 A = 3 \Rightarrow 31000 , then 2 2 4 ! 3 ! = 16 2^2 \cdot \frac {4!}{3!} = 16

For A = 4 40000 A = 4 \Rightarrow 40000 , then 2 1 4 ! 4 ! = 2 2^1 \cdot \frac {4!}{4!} = 2

Add all of these up gives 258 \boxed{258}

how could I forget about e:(

Daan Becker - 7 years, 9 months ago

Log in to reply

me too , without e the answer was 126, right?

Sadman Sakib - 7 years, 9 months ago

Log in to reply

Yes it was 126

Daan Becker - 7 years, 9 months ago

Made the exact same mistake

Pranav S, - 7 years, 9 months ago

AARGH! I got 256. :(

Ahaan Rungta - 7 years, 9 months ago

argh 257 >.< man how could I.. >.<

Soham Chanda - 7 years, 9 months ago

For A=4⇒40000, then 21⋅4!4!=2...............how two ways to do that..........

sanjay mundhra - 7 years, 9 months ago

Log in to reply

It means that a = 4 |a| = 4 , b = c = d = e = 0 |b|=|c|=|d|=|e| = 0 , for a = 4 |a| = 4 , a = 4 , 4 a = 4,-4 , so there's a total of TWO

Pi Han Goh - 7 years, 9 months ago

I put 126 on my first try...

Jerry Lee - 7 years, 9 months ago

e is constant ,not a coefficient

sanjay mundhra - 7 years, 9 months ago

Log in to reply

that's what I thought

Daan Becker - 7 years, 9 months ago

u should know that e is the coefficient of x to the power 0

Sadman Sakib - 7 years, 9 months ago
Vitaly Breyev
Aug 27, 2013

The general form of the polynomial of degree 4 is a x 4 + b x 3 + c x 2 + d x + e ax^4 + bx^3 + cx^2 + dx + e . We have to find the number of ordered sets { a , b , c , d , e } \{ a, b, c, d, e \} s.t. a 0 a \neq 0 and a + b + c + d + e = 4 \|a\| + \|b\| + \|c\| + \|d\| + \|e\| = 4 .

Lets first assume a , b , c , d , e 0 a, b, c, d, e \geq 0 . Then there are five following cases.

I. Coefficients are 1, 1, 1, 1, 0 in some order. The number of possible orderings of { 1 , 1 , 1 , 1 , 0 } \{1, 1, 1, 1, 0\} is 5 ! / 4 ! = 5 5! / 4! = 5 . Considering that 0 cannot be in the the first, we are left with 4 \mathbf{4} orderings.

II. Coefficients are 2, 1, 1, 0, 0 in some order. The number of possible orderings of { 2 , 1 , 1 , 0 , 0 } \{2, 1, 1, 0, 0\} is 5 ! / ( 2 ! 2 ! ) = 30 5! / ( 2! \cdot 2! ) = 30 . Considering that 0 cannot be in the the first (and it occurs in the first place in 2 / 5 2/5 cases out of 30), we are left with 18 \mathbf{18} orderings.

III. Coefficients are 2, 2, 0, 0, 0 in some order. The number of possible orderings of { 2 , 2 , 0 , 0 , 0 } \{2, 2, 0, 0, 0\} is 5 ! / ( 3 ! 2 ! ) = 10 5! / ( 3! \cdot 2! ) = 10 . Considering that 0 cannot be in the the first (and it occurs in the first place in 3 / 5 3/5 cases out of 10), we are left with 4 \mathbf{4} orderings.

IV. Coefficients are 3, 1, 0, 0, 0 in some order. The number of possible orderings of { 3 , 1 , 0 , 0 , 0 } \{3, 1, 0, 0, 0\} is 5 ! / 3 ! = 20 5! / 3! = 20 . Considering that 0 cannot be in the the first (and it occurs in the first place in 3 / 5 3/5 cases out of 20), we are left with 8 \mathbf{8} orderings.

V. Coefficients are 4, 0, 0, 0, 0 in some order. The number of possible orderings of { 4 , 0 , 0 , 0 , 0 } \{4, 0, 0, 0, 0\} is 5 ! / 4 ! = 5 5! / 4! = 5 . Considering that 0 cannot be in the the first (and it occurs in the first place in 4 / 5 4/5 cases out of 5), we are left with 1 \mathbf{1} ordering.

Now we consider that non-zero coefficients can be either positive or negative. Multiplying the number of orderings in each case by 2^(number of non-zero coefficients in this case) and summing them all up, we get that the answer is $$4\cdot2^4 + 18\cdot2^3 + 4\cdot2^2 + 8\cdot2^2 + 1\cdot2^1 = \boxed{258}$$

Sorry for the silly "in the the", it's hard to proofread in that tiny box.

Vitaly Breyev - 7 years, 9 months ago
Josh Petrin
Aug 27, 2013

One way to do this problem would be to separate the possible polynomials into cases regarding how many terms they have. That is, since the coefficients of the polynomial must be integers, the least absolute value each of the five terms could have (and still be considered a term) is 1 1 .

Case 1: The polynomial has 4 4 terms. All of the coefficients of the terms must have absolute value of 1 1 . We must also choose 1 1 out of 4 4 terms to be 0 0 (not 5 5 terms because the x 4 x^4 coefficient can't be zero). Also, for each term, we can choose whether its coefficient is negative or positive. The number of possibilities for this case is therefore 2 4 4 = 2 6 2^4 \cdot 4 = 2^6 .

Case 2: The polynomial has 3 3 terms. Exactly one of the terms' coefficients must have absolute value 2 2 , so we choose one of the 3 3 terms to have coefficient absolute value of 2 2 and 2 2 (of 4 4 ) terms to have coefficient 0 0 . And also, as in the last case, we can choose for all 3 3 terms to have positive or negative coefficient, so the number of possibilities for this case is ( 4 2 ) 3 2 3 = 2 4 3 2 \binom{4}{2} \cdot 3 \cdot 2^3 = 2^4 \cdot 3^2 .

Case 3: The polynomial has 2 2 terms. This case yields two subcases: first, we can have absolute value of coefficients equal to { 1 , 3 } \{1, 3\} , and second, we have { 2 , 2 } \{2, 2\} . Collectively, this yields 3 3 possibilities for the absolute values of the coefficients. So, following the reasoning of the previous cases, the number of possibilities in this case is equal to ( 4 3 ) ( 2 + 1 ) 2 2 = 2 4 3 \binom{4}{3} \cdot (2 + 1) \cdot 2^2 = 2^4 \cdot 3 .

Case 4: The polynomial has 1 1 term. It is not hard to see that this case only has 2 2 solutions.

So, summing our cases, we see that the number of polynomials is equal to 2 6 + 2 4 3 2 + 2 4 3 + 2 = 258 2^6 + 2^4 \cdot 3^2 + 2^4 \cdot 3 + 2 = \boxed{258} .

And now that that's over, what's the easy way? :P

Josh Petrin - 7 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...