Nice to square you

Algebra Level 4

Suppose f ( x ) f(x) is a monic integer polynomial of degree three. Find the largest possible number of distinct integers n n such that f ( n 2 ) = f ( n ) f(n^2)=f(n) .

Details and assumptions

A polynomial is monic if its leading coefficient is 1. For example, the polynomial x 3 + 3 x 5 x^3 + 3x - 5 is monic but the polynomial x 4 + 2 x 3 6 -x^4 + 2x^3 - 6 is not.


The answer is 4.

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.

11 solutions

Let f ( x ) = x 3 + a x 2 + b x + c f(x)= x^3 + ax^2 + bx + c . Then, note that f ( x 2 ) f ( x ) = x 6 + a x 4 + b x 2 + c x 3 a x 2 b x c f(x^2) - f(x)= x^6 + ax^4 + bx^2 + c - x^3 - ax^2 - bx - c = x ( x 5 + a x 3 x 2 + ( b a ) x 2 b x ) = x(x^5 + ax^3 - x^2 + (b-a)x^2 - bx) Let's try to factorize the quintic in the brackets. Note that the sum of the coefficients of the quintic is 1 + a 1 + ( b a ) b = 0 1 + a - 1 + (b-a) - b= 0 , implying 1 1 is a root of the polynomial. Dividing it by x 1 x-1 , we find out ( x 5 + a x 3 x 2 + ( b a ) x 2 b x ) x 1 = x 4 + x 3 + ( a + 1 ) x 2 + a x + b \frac{(x^5 + ax^3 - x^2 + (b-a)x^2 - bx)}{x-1}= x^4 + x^3 + (a+1)x^2 + ax + b Hence, we obtain x ( x 5 + a x 3 x 2 + ( b a ) x 2 b x ) = x ( x 1 ) ( x 4 + x 3 + ( a + 1 ) x 2 + a x + b ) x(x^5 + ax^3 - x^2 + (b-a)x^2 - bx)= x(x-1)(x^4 + x^3 + (a+1)x^2 + ax + b) From the conditions in the question, we must have x ( x 1 ) ( x 4 + x 3 + ( a + 1 ) x 2 + a x + b ) = 0 x(x-1)(x^4 + x^3 + (a+1)x^2 + ax + b)= 0 Note that 0 0 and 1 1 are two roots of the equation. Let's try to find the number of integer solutions to g ( x ) = x 4 + x 3 + ( a + 1 ) x 2 + a x + b = 0 g(x)= x^4 + x^3 + (a+1)x^2 + ax + b= 0 . First, check that if we set a = 4 a=-4 , b = 0 b= 0 , we get 2 2 and 2 -2 as two roots.

Assume g ( x ) g(x) has more than 2 2 roots. Obviously it cannot have exactly 3 3 roots, since if the fourth root weren't an integer, then the sum of the roots couldn't be an integer. Let's assume g ( x ) g(x) has four integer roots. Let them be p p , q q , r r , and s s . From Vieta's relations, we obtain: p + q + r + s = 1 p+q+r+s= -1 p q + q r + r p + r s + q s + p s = a + 1 pq + qr + rp + rs + qs + ps= a+1 p q r + q r s + p r s + p q s = a pqr + qrs + prs + pqs= -a p q r s = b pqrs= b Note that p + q + r + s 1 ( m o d 2 ) p+q+r+s \equiv 1 \pmod{2} . Then, either one of them is odd, and the rest even, or one of them is even, and the rest odd.

Case 1 1 Exactly one of ( p , q , r , s ) (p,q,r,s) is odd.
WLOG let p 1 ( m o d 2 ) p \equiv 1 \pmod{2} , and q , r , s 0 ( m o d 2 ) q,r,s \equiv 0 \pmod{2} . Then, note that p q r + q r s + p r s + p q s 1 ( m o d 2 ) pqr + qrs + prs + pqs \equiv 1 \pmod{2} a 1 ( m o d 2 ) a 1 ( m o d 2 ) \implies -a \equiv 1 \pmod{2} \implies a \equiv 1 \pmod{2} Again, we have p q + q r + r p + r s + q s + p s 1 ( m o d 2 ) pq + qr + rp + rs + qs + ps \equiv 1 \pmod{2} a + 1 1 ( m o d 2 ) \implies a+1 \equiv 1 \pmod{2} However, both a a and a + 1 a+1 cannot be 1 ( m o d 2 ) \equiv 1 \pmod{2} , a contradiction. Thus this case produces no result.

Case 2 2 Exactly one of ( p , q , r , s ) (p,q,r,s) is even
WLOG let p 0 ( m o d 2 ) p \equiv 0 \pmod{2} . Then, note that p q r + q r s + p r s + p q s 1 ( m o d 2 ) pqr + qrs + prs + pqs \equiv 1 \pmod{2} a 1 ( m o d 2 ) a 1 ( m o d 2 ) \implies -a \equiv 1 \pmod{2} \implies a \equiv 1 \pmod{2} Again, we have p q + q r + r p + r s + q s + p s 1 ( m o d 2 ) pq + qr + rp + rs + qs + ps \equiv 1 \pmod{2} a + 1 1 ( m o d 2 ) \implies a+1 \equiv 1 \pmod{2} However, both a a and a + 1 a+1 cannot be 1 ( m o d 2 ) \equiv 1 \pmod{2} , a contradiction. Thus this case produces no result either.

Thus g ( x ) = 0 g(x)=0 has at most 2 2 integer roots. Thus, f ( x 2 ) f ( x ) f(x^2)-f(x) can have at most 4 4 integer roots. It can be checked that 0 , 1 , 2 , 2 0, 1, 2, -2 are roots of f ( x 2 ) f ( x ) f(x^2)-f(x) , where f ( x ) = x 3 4 x 4 f(x)= x^3 - 4x - 4 . We thus conclude the maximum number of integers is 4 \boxed{4} .

It's a bit embarrassing to admit this, but I realized that, since the answer must be 2, 4, or 6 and Brilliant allowed 3 guesses, I didn't need to do any work after line 2. I got it on my first guess, since I knew there had to be some sort of catch to prevent 6, and, although I did not come up with any examples, I believed 4 would work. Guessing is a viable strategy on occasion.

Alexander Bourzutschky - 7 years, 7 months ago

Log in to reply

The problem could have been made a bit more complicated by using higher degree polynomials rather than cubic polynomials. Although, I'm not sure whether a simple parity check would suffice for other polynomials...

Sreejato Bhattacharya - 7 years, 7 months ago

Log in to reply

If the polynomial has degree k k (which was 3 3 in this case), then the one whose zeros we want has terms of the form: x 2 k x k + a k 1 x 2 k 2 a k x k 1 + x^{2 k} - x^k + a_{k - 1} x^{2 k - 2} - a_k x^{k - 1} + \cdots

These factor: x k ( x k 1 ) + a k 1 x k 1 ( x k 1 1 ) + x^k (x^k - 1) + a_{k - 1} x^{k - 1} (x^{k - 1} - 1) + \cdots

Again, 0 0 and 1 1 are roots, and the polynomial is monic and of even degree, so any non-integer roots cone in pairs. The answer should always be a multiple of 2 2 .

Alexander Bourzutschky - 7 years, 7 months ago

The problem could have been made a bit more complicated by using higher degree polynomials rather than cubic polynomials. Although, I'm not sure whether a simple parity check would suffice for other polynomials...

Indeed. For example, a bit of work shows that parity does not help with the case where f ( x ) f(x) is a monic integer polynomial of degree four, but it does help with the case where f ( x ) f(x) is a monic integer polynomial of degree five. (In a monic integer polynomial of degree ten with all-integer roots, x 5 x^5 can only have an odd coefficient if x 7 x^7 and x 9 x^9 do as well.)

Peter Byers - 7 years, 7 months ago

Log in to reply

@Peter Byers P.S. We could also apply the same kind of argument if the degree of f ( x ) f(x) is 6 , 7 6,7 or 9 9 to name a few.

As a matter of fact, could we apply the parity-argument to any case where the degree of f f is not a power of two? (Is anyone feeling that ambitious?)

Peter Byers - 7 years, 7 months ago

It's a bit embarrassing to admit this, but I realized that, since the answer must be 2, 4, or 6 and Brilliant allowed 3 guesses, I didn't need to do any work after line 2.

You got lucky -- you didn't consider repeated roots.

(For example, if f ( x ) = x 3 6 x 2 f(x) = x^3-6x^2 then f ( x ) = f ( x 2 ) f(x) = f(x^2) has five (distinct) real solutions, of which 3 are integers. http://www.wolframalpha.com/input/?i=6+x%5E2-x%5E3-6+x%5E4%2Bx%5E6&lk=1&a=ClashPrefs_*Math- )

On the other hand, if you had first established that the answer is at least 4, then you would know you could get it in three guesses (4, 5, and 6).

Peter Byers - 7 years, 7 months ago

Log in to reply

Brilliant, right? Name of the site.

Alexander Bourzutschky - 7 years, 7 months ago

Log in to reply

@Alexander Bourzutschky What?

Sreejato Bhattacharya - 7 years, 7 months ago

I have doubt in second last line.... you say that f ( x ) = x 2 4 x 4 f(x) = x^2 - 4x - 4 but the question states that it is of degree 3

Kishlaya Jaiswal - 7 years, 7 months ago

Log in to reply

Typo: f ( x ) = x 3 4 x 4 f(x)= x^3 - 4x - 4

Sreejato Bhattacharya - 7 years, 7 months ago

Note: It could be immediately deduced that 0 0 and 1 1 are roots of f ( x 2 ) f ( x ) f(x^2)-f(x) , since f ( 0 2 ) = f ( 0 ) f(0^2)= f(0) and f ( 1 2 ) = f ( 1 ) f(1^2)= f(1) .

Sreejato Bhattacharya - 7 years, 7 months ago

What was your motivation for testing parity? In other words, how did you think about doing a parity check? Thanks! (By the way: great solution, but I believe that in case one, we get that the contradiction is that a 0 a\equiv0 and a + 1 0 a+1\equiv0 )

R Y - 7 years, 7 months ago

Log in to reply

Whenever we show "no integer solutions exist", the best strategy is to arrive at a contradiction modulo some number (for example, if you were given to prove 3 n 1 3^n-1 is never a perfect square for some integer n n , you would consider it ( m o d 3 ) \pmod{3} , and note that 1 -1 is not a quadratic residue). Of course, there is no general formula which helps us to decide which integer we have to consider. I just tried modulo checking for smaller numbers first, as they reduce the number of cases. If the ( m o d 2 ) \pmod{2} check wouldn't work, I would check ( m o d 3 ) \pmod{3} , if that didn't work either, I would check ( m o d 4 ) \pmod{4} , and so on. If none of them worked, I would have to change my strategy entirely (not sure how). Luckily, the parity check worked perfectly. :)

Sreejato Bhattacharya - 7 years, 7 months ago

Yes, that was a very silly typo. Thanks for pointing it out. :)

Sreejato Bhattacharya - 7 years, 7 months ago

That's great!!!

Kishlaya Jaiswal - 7 years, 7 months ago

Typo (as pointed out by R Y.)

Case 1 1 Exactly one of ( p , q , r , s ) (p,q,r,s) is odd.
WLOG let p 1 ( m o d 2 ) p \equiv 1 \pmod{2} and q , r , s 0 ( m o d 2 ) q,r,s \equiv 0 \pmod{2} . Then, note that p q r + q r s + p r s + p q s 0 ( m o d 2 ) pqr + qrs + prs + pqs \equiv 0 \pmod{2} a 0 ( m o d 2 ) a 0 ( m o d 2 ) \implies -a \equiv 0 \pmod{2} \implies a \equiv 0 \pmod{2} Again, we have: p q + q r + r p + r s + q s + p s 0 ( m o d 2 ) pq+qr+rp+rs+qs+ps \equiv 0 \pmod{2} a + 1 0 ( m o d 2 ) \implies a+1 \equiv 0 \pmod{2} However, both a a and a + 1 a+1 cannot be 0 ( m o d 2 ) \equiv 0 \pmod{2} , a contradiction. Thus this case produces no result.

Sreejato Bhattacharya - 7 years, 7 months ago

I solved this using Descarte's rule of signs. I want to know from you, how did you start with a = 4 a=-4 and b = 0 b=0 . In other words, how could you be so confident before solving the equation that there cannot be more than 2 2 roots?

Snehal Shekatkar - 7 years, 7 months ago

Log in to reply

One way to prove that 4 integer roots are achievable is this-

Consider x 4 + x 3 + x 2 ( a + 1 ) + a x + b = 0 x^4+x^3+x^2(a+1)+ax+b=0 .

Now, we can also write it as x 3 ( x + 1 ) + a x ( x + 1 ) + b + x 2 = x ( x + 1 ) ( a + x 2 ) + b + x 2 x^3(x+1)+ax(x+1)+b+x^2=x(x+1)(a+x^2)+b+x^2

So, we easily see that if a = b = k 2 a=b=-k^2 where k is any integer other than 0,1 and-1. we get atleast 4 roots.

Sambit Senapati - 7 years, 7 months ago

Log in to reply

Thanks! This also shows that there exist infinitely many non-congruent f ( x ) f(x) such that f ( x 2 ) f ( x ) f(x^2)-f(x) has four integer roots.

Sreejato Bhattacharya - 7 years, 7 months ago

I first proved that g ( x ) = 0 g(x)=0 cannot have more than 2 2 integer roots, then investigated whether or not it can have 2 2 integer roots. I changed that structure completely in my solution, as it would look weird if I wrote it as "we shall prove that g ( x ) g(x) cannot have 4 4 integer roots, then we will show that there is a g ( x ) g(x) with 2 2 integer roots".

Sreejato Bhattacharya - 7 years, 7 months ago

@Snehal S.

I solved this using Descarte's rule of signs.

How did you deal with the case a < 0 a<0 ?

Peter Byers - 7 years, 7 months ago

Log in to reply

Well, if f ( x ) f(x) has 4 4 integer roots for the equation f ( x 2 ) = f ( x ) f(x^2)=f(x) , so does f ( x ) -f(x) . This way we can assume a > 0 a>0 . But there still might be numerous other cases. This discussion might be more relevant to Kishlaya's solution. :)

Sreejato Bhattacharya - 7 years, 7 months ago

Log in to reply

@Sreejato Bhattacharya I was about to say "that's a good point" but then thinking about it again, I don't think that actually accomplishes anything: you could assume that a > 0 a>0 , but then we'd have to change the "monic" assumption (i.e. we'd have to also consider the case where the initial coefficient is 1 -1 ). So I think we're still in the situation that Descarte's rule of signs does nothing for us.

Peter Byers - 7 years, 7 months ago

Log in to reply

@Peter Byers Ah, true. Sorry, I forgot that the cubic must be monic. Probably DRS was not the intended solution. See my comments in Kishlaya's solution. :)

Sreejato Bhattacharya - 7 years, 7 months ago
Abhishek Oswal
May 20, 2014

Let f ( x ) = x 3 + a x 2 + b x + c f(x) = x^3 + ax^2 + bx + c . We want to find maximum number of integer roots of: f ( x 2 ) f ( x ) = x 6 + a x 4 x 3 + ( b a ) x 2 b x f(x^2) - f(x) = x^6 + ax^4 - x^3 + (b-a)x^2 -bx = x ( x 1 ) ( x 4 + x 3 + ( a + 1 ) x 2 + a x + b ) = 0. =x(x-1)(x^4 + x^3 + (a+1)x^2 + ax + b) = 0. Clearly, we see that 0 and 1 already satisfy f ( x 2 ) f ( x ) = 0. f(x^2) - f(x) = 0. The remaining factor ( x 4 + x 3 + ( a + 1 ) x 2 + a x + b ) = 0 (x^4 + x^3 + (a+1)x^2 + ax + b) = 0 , we prove below has at most two integer roots, which shall prove that the answer to the problem at hand is at most 4.

Claim : The polynomial ( x 4 + x 3 + ( a + 1 ) x 2 + a x + b ) (x^4 + x^3 + (a+1)x^2 + ax + b) can have at most 2 integer roots.

Proof : Clearly there cannot be exactly 3 integer roots since the coefficients of the polynomial are integers, and thus the sum of all roots is an integer. Thus, it is enough to prove that not all four roots are integers. Suppose for sake of contradiction that i , j , k , l i,j,k,l are 4 integer roots of the above equation, then: i + j + k + l = 1 i + j+ k+l = -1 i j + i k + i l + j k + j l + k l = ( a + 1 ) ij + ik + il + jk + jl + kl = (a+1) i j k + i j l + i k l + j k l = ( a ) . ijk + ijl + ikl + jkl = (-a). Since i + j + k + l i + j + k+ l is odd- either 3 roots are odd and one even or 1 odd and 3 even. In the first case, say W.L.O.G that i , j , k i,j,k are odd and l l is even. But then, from the third equation this means that a a is odd, and from the second equation we get that i j + j k + i k ( a + 1 ) ( m o d 2 ) . ij + jk + ik \equiv (a+1) (mod 2). Which means that a + 1 a+1 is also odd which contradicts a a being odd. Similarly the second case of j , k , l j,k,l being even and i i being odd also leads to the same contradiction. Q.E.D. Hence, the answer can be at most 4.

But, consider the polynomial: f ( x ) = x 3 4 x 2 4. f(x) = x^3 -4x^2 - 4 . 0 , 1 , 2 , 2 0 , 1 , 2 , -2 are four integers satisfying f ( n 2 ) = f ( n ) . f(n^2) = f(n). Thus, the answer is exactly 4.

No other correct solution was submitted.

Common mistakes:

  1. Most could only show that a polynomial with 4 solutions exist, but were unable to show that no polynomial with 5 or more solutions exist.

  2. Forgetting that n = 1 , 0 n=1, 0 are 'obvious solutions', which are not counted in the quartic

  3. Being unable to deal with the quartic properly. It would generally have 4 solutions, and you have to explain why this particular form has only 2 integer solutions. You will need to use the fact that we are restricted to looking at integers (otherwise we can have 4 solutions).

Calvin Lin Staff - 7 years ago
Kishlaya Jaiswal
Nov 3, 2013

Let f ( x ) = x 3 + a x 2 + b x + c f(x) = x^3 + ax^2 + bx + c and

g ( n ) = f ( n 2 ) f ( n ) = 0 g(n) = f(n^2) - f(n) = 0

So, g ( n ) = ( n 6 + a n 4 + b n 2 + c ) ( n 3 + a n 2 + b n + c ) g(n) = (n^6 + an^4 + bn^2 + c) - (n^3 + an^2 +bn + c)

= n 6 + a n 4 n 3 + ( b a ) n 2 b n = n^6 + an^4 - n^3 + (b-a)n^2 - bn

= n ( n 5 + a n 3 n 2 + ( b a ) n b ) = n(n^5 + an^3 - n^2 + (b-a)n - b)

So, we get one solutions as n=0

now consider the polynomial h ( n ) = n 5 + a n 3 n 2 + ( b a ) n b h(n)=n^5 + an^3 - n^2 + (b-a)n - b

Let k = b-a

Then h ( n ) = n 5 + a n 3 n 2 + k n b h(n)=n^5 + an^3 - n^2 + kn - b

Now apply Descartes Rule Of Signs

Case 1: k>0

h ( n ) h(n) has 3 sign changes so, maximum number of positive roots = 3

h ( n ) h(-n) has 0 sign changes so, maximum number of negative roots = 0

Case 2: k<0

h ( n ) h(n) has 1 sign change so, maximum number of positive roots = 1

h ( n ) h(-n) has 2 sign changes so, maximum number of negative roots = 2

Therefore, we know that in the above equation, there will be maximum of 3 integer roots and atleast 2 imaginary roots.

Hence the maximum number of possible roots that is possible number of distinct integers that satisfy f ( n 2 ) = f ( n ) f(n^2)=f(n) is 4

You still need to show the number of solutions 4 4 is indeed attainable.

Sreejato Bhattacharya - 7 years, 7 months ago

I have another question: you say h ( n ) h(n) has three sign changes. But what if we set a > b > 0 a>b>0 ? Then h ( n ) h(n) will have two sign changes, right?

Sreejato Bhattacharya - 7 years, 7 months ago

Log in to reply

Yes... for that only I made two case case 1 : b>a that is k>0 case 2 : b<a that is k<0

in case 2 we have 2 sign changes for h ( n ) h(n) which indicates maximum two positive roots and 1 sign change for h ( n ) h(-n) which indicates maximum 1 negative root

Therefore, in any way we would have 3 integer roots

Kishlaya Jaiswal - 7 years, 7 months ago

Log in to reply

What if we set b < 0 < a b<0<a ?

Sreejato Bhattacharya - 7 years, 7 months ago

Log in to reply

@Sreejato Bhattacharya That would again make up the same case that is b-a < 0, which I've already discussed

Kishlaya Jaiswal - 7 years, 7 months ago

Log in to reply

@Kishlaya Jaiswal We then have no sign change from k k to b b .

Sreejato Bhattacharya - 7 years, 7 months ago

@Sreejato Bhattacharya what ever values you give to b b and a a , all that would make up only two cases that is - either b a b-a will be positive or negative and both of them I've already discussed in my solution

Kishlaya Jaiswal - 7 years, 7 months ago
Dheeraj Choudhary
May 20, 2014

let the polynomial be f(x) = x^3+ax^2+bx+c (as it is monic integer polynomial coefficient of x^3 =1) (a,b,c are constant coefficients)

f(n^2) = n^6+an^4+bn^2+c

f(n) = n^3+an^2+bn+c

f(n^2) = f(n)

=> n^6+an^4+bn^2+c = n^3+an^2+bn+c

=> n^6 - n^3 + an^4 - an^2 + bn^2 - bn = 0

now this is a 6th order equation which has 6 roots but not all may be real or integers. we have to find out how many maximum integer real roots are possible.

=> n^3(n^3-1) + an^2(n^2-1) + bn(n-1) = 0

=> n(n-1) [ n^2(n^2+n+1) + an(n+1) + b ] = 0

=> n=0 and n=1 are confirmed roots of this equation

n^2(n^2+n+1) + an(n+1) + b = 0

i.e. n^4+n^3+n^2(a+1)+an+b = 0

this equation has 4 roots let them be P,Q,R,S

then P+Q+R+S = -(COEFFICIENT OF n^3 / COEFFICIENT OF n^4) = -1

which is clearly independent of values of a and b

let us take a = b then

n^2(n^2+n+1) + a(n^2+n) +a = 0

n^2(n^2+n+1) + a(n^2+n+1) = 0

(n^2 + a)*(n^2+n+1) = 0

now n^2+n+1 = (n+1/2)^2 + (3/4) > 0

then n^2 + a = 0 now n may be a real integer when a is a negative perfect square for example let k be an integer and a = -k^2

then n^2 + (-k^2) = 0

=> n = +k or n = -k

therefore n = 0,1,k,-k are 4 real integer roots possible

as complex roots always occurs in conjugate pairs other two roots are complex roots.

else if a not equal to b then equation n^2(n^2+n+1) + an(n+1) + b = 0 has 4 complex roots for any real values of a and b in which a is not equal to b.

therefore maximum of 4 integer real roots are possible.

You did not show that for a a not equal to b b there cannot be more than two integer roots of the polynomial n 4 + n 3 + n 2 ( a + 1 ) + a n + b . n^4+n^3+n^2(a+1)+an+b.

Calvin Lin Staff - 7 years ago
Jesse Zhang
May 20, 2014

Let f ( x ) = x 3 + a x 2 + b x + c f(x)=x^3+ax^2+bx+c where a , b , c a,b,c are integers. Clearly, all n n must be roots of the polynomial g ( x ) = f ( x 2 ) f ( x ) = x 6 + a x 4 x 3 + ( b a ) x 2 b x . g(x)=f(x^2)-f(x)=x^6+ax^4-x^3+(b-a)x^2-bx. Since n 2 = n n^2=n when n = 0 , 1 n=0, 1 these two values will always satisfy the given equation and are thus roots of g g . This means x ( x 1 ) x(x-1) is a factor of g g , so dividing though we have g / ( x ( x 1 ) ) = x 4 + x 3 + ( a + 1 ) x 2 + a x + b . g/(x(x-1))=x^4+x^3+(a+1)x^2+ax+b. Our remaining values of n n must be roots of this polynomial.

I claim the polynomial can only have 2 integer roots. Suppose it has 3: p , q , r . p,q,r. Then ( p 4 + p 3 + p 2 ) + ( p 2 + p ) a + b = 0 (p^4+p^3+p^2)+(p^2+p)a+b=0 (same for q q and r r .)

Now consider the 3 × 3 3 \times 3 matrix ( p 4 + p 3 + p 2 p 2 + p 1 q 4 + q 3 + q 2 q 2 + q 1 r 4 + r 3 + r 2 r 2 + r 1 ) \left( \begin{array}{ccc} p^4+p^3+p^2 & p^2+p & 1 \\ q^4+q^3+q^2 & q^2+q & 1 \\ r^4+r^3+r^2 & r^2+r & 1 \end{array} \right) Two roots define a , b a, b . This means that for there to be three roots total, each row in the matrix must be a linear combination of the other two. Now, subtract the first row from the second and third rows. ( A B 1 C D 0 E F 0 ) \left( \begin{array}{ccc} A & B & 1 \\ C & D & 0 \\ E & F & 0 \end{array} \right) Where A , B , C , D , E , F A, B, C, D, E, F are integers and the rightmost values of the second and third rows are now 0. Now subtract the second row times F D \frac{F}{D} from the third row, so we have ( A B 1 C D 0 G 0 0 ) \left( \begin{array}{ccc} A & B & 1 \\ C & D & 0 \\ G & 0& 0 \end{array} \right) Here, each row must still be a linear combination of the other two. However, the matrix is rank 3 due to the three 0's in the bottom right corner, so none of rows can be linear combinations of the other two. This is a contradiction. Consequently, we can have most two roots for each set of a , b a,b .

It is easy to see that two roots is indeed possible. An example is p = 2 , q = 4 p=2, q=4 which has a = 22 , b = 104 a=-22, b=104 .

Thus, these two roots, along with our original roots of 0 , 1 0, 1 yields a maximum number of 4 4 distinct values for n n .

Your matrix argument, unfortunately, contains a mistake: for all we know, G G may be zero. In fact, your argument never uses the fact that p , q , r p,q,r are integers, and without this requirement there may be up to four roots of x 4 + x 3 + ( a + 1 ) x 2 + a x + b x^4+x^3+(a+1)x^2+ax+b .

Calvin Lin Staff - 7 years ago
Daniel Crews
Nov 9, 2013

A general monic third degree polynomial is f ( x ) = x 3 + a x 2 + b x + c f(x)=x^{3}+ax^{2}+bx+c where a,b,c are arbitrary constants. Consider f ( n ) = f ( n 2 ) . f(n)=f(n^{2}). This can be written as n 3 + a n 2 + b n = n 6 + a n 4 + b n 2 n^{3}+an^{2}+bn=n^{6}+an^{4}+bn^{2} , as c is present on both sides of the equality. n=0 is one such integer that will satisfy this. Disregarding that we have:

  1. n 2 + a n + b = n 5 + a n 3 + b n = n ( n 4 + a n 2 + b ) n^{2}+an+b=n^{5}+an^{3}+bn=n(n^{4}+an^{2}+b) Which implies that
  2. n = n 2 + a n + b n 4 + a n 2 + b n=\frac{n^{2}+an+b}{n^{4}+an^{2}+b} if the denominator is not zero. If it is, then the numerator must be also as that is the only way to satisfy (1). Hence n 4 + a n 2 = n 2 + a n n^{4}+an^{2}=n^{2}+an , where b cancels as it is present on both sides. As n is not zero, since we considered that earlier, we have
  3. n 3 + a n = n + a n^{3}+an=n+a , which can be rearranged into a third order polynomial equal to zero. This has a max of three solutions n. Considering our rational equation (2) above, clearly there are no integer solutions greater than n=1, but n=1 is a solution of (3). Therefore the maximum number of solutions is 4! That is, n=0 and the three solutions of (3).
Abhishek Thakur
May 20, 2014

At first glance the values n=0 and n=1 are obvious. Then considering the cubic to be x^3 + ax^2 + bx +c and applying f(n)=f(n^2) we get: n^3 + an^2 + bn = n^6 + an^4 + bn^2. Now 0 is a possible soln. After that dividing by n we get n^2 + an + b = n^5 + an^3 + bn Rearranging we get, (n-1) (n^2 + b + (n^2 + a)(n)(n+1))=0 Now either n-1=0 in which case n=1 or the other factor is zero. If the other factor is zero then both (n^2 + b)=0 and (n^2 + a)(n)(n+1)=0 From the first we get n=(-b)^0.5 assuming b is negative and from second part we get n=-1 or n=(-a)^0.5 since n is not equal to 0. THEREFORE the four values of n are 1 0 -1 and (-a)^0.5 or (-b)^0.5 assuming a = b and both a and b are negative.

You wrote: "If the other factor is zero then both (n^2 + b)=0 and (n^2 + a)(n)(n+1)=0". This is false: the sum of two numbers may be zero when neither of the numbers is. Also, you proceed by finding those n, where just one of the numbers is zero, and miss the fact that if n^2+b=0, n may be positive or negative.

Calvin Lin Staff - 7 years ago
Rohit Sarathy
May 20, 2014

Clearly for n = 0 and 1, the condition holds true for ANY monic integer degree three polynomial.

If we drew a horizontal line and a monic integer cubic, there would be at most three points of intersection. In order to maximize the possible number of distinct n that we could have, the cubic would produce the same values for n , n 2 , n, n^2, and n 4 n^4 since f ( n ) = f ( n 2 ) = f ( n 4 ) . f(n) = f(n^2) = f(n^4).

Thus the cubic would be in the form f ( x ) = ( x n ) ( x n 2 ) ( x n 4 ) + c . f(x) = (x - n)(x - n^2)(x - n^4) + c.

Then the possible n that would work would 0 , 1 , n , 0, 1, n, and n 2 n^2 giving us 4 possible distict integers n.

You found the examples for four numbers, but did not show that five are impossible: it may happen that f ( n ) = f ( n 2 ) f(n)=f(n^2) and f ( m ) = f ( m 2 ) f(m)=f(m^2) without n n being m 2 m^2 or the other way around. And then there might be a fifth or sixth such pair, or even more.

Calvin Lin Staff - 7 years ago
Kiran Patel
May 20, 2014

Let f(x) = x^3 + ax^2 + bx + c. f(n^2) = n^6 + an^4 + bn^2 + c. f(n) = n^3 + an^2 + bn +c. Equating both,c gets cancel out and after further simplification we get, n^4 + n^3 + n^2(1+a) + an +b = 0. As this is a bi-quadratic monic equation there will be four roots and hence the maximum number of values of n.

This equation is not bi-quadratic (a bi-quadratic equation is the one that has only x^4, x^2 and constant terms). You are correct that degree four equation can have at most four roots. But you forgot that in your simplification process you divided by n and n-1, which corresponds to two more roots: 0 and 1. So, according to your argument, the answer should be six; however, no more than two of the roots of the equation n 4 + n 3 + n 2 ( 1 + a ) + a n + b = 0 n^4 + n^3 + n^2(1+a) + an +b = 0 can actually be integers.

Calvin Lin Staff - 7 years ago

Suppose the polynomial is:

f ( x ) = x 3 a x 2 + b x c f(x)=x^3-ax^2+bx-c (a,b,c are integers)

Let us find how much the polynomial tells us.Let it has 3 3 integer roots ( 0 , 1 \neq 0,1 ) as α , β , γ \alpha, \beta, \gamma . Then,

f ( α ) = f ( β ) = f ( γ ) = 0 f(\alpha)=f(\beta)=f(\gamma)=0

Now,since α , β , γ \alpha, \beta, \gamma are integers, f ( x ) f(x) is an integer polynomial,we can get at most two pairs of integer roots such that one is the square of the other.One pair will not hold this.

Say, β = α 2 \beta=\alpha^2 .Now either γ \gamma has to be α 2 \alpha^2 or α 4 \alpha^4 to be square of one of the other two roots.Say γ = α 4 \gamma=\alpha^4 .

Then,

a = α + α 2 + α 4 a=\alpha+\alpha^2+\alpha^4

b = α α 2 + α 2 α 4 + α α 4 = α 3 + α 5 + α 6 b=\alpha*\alpha^2+\alpha^2*\alpha^4+\alpha*\alpha^4=\alpha^3+\alpha^5+\alpha^6

c = α α 2 α 4 = α 7 c=\alpha*\alpha^2*\alpha^4=\alpha^7

Such f ( x ) f(x) can be found for any α \alpha ( 0 , 1 \neq 0,1 ),& hence from here we have 2 pairs of integers such that f ( n ) = f ( n 2 ) f(n)=f(n^2) ,applying n = α n=\alpha & n = α 2 n=\alpha^2 .

Consider the condition again. It is true also if n 2 = n n^2=n or, n ( n 1 ) = 0 n(n-1)=0 . Thus, n = 0 n=0 or 1 1 .These also satisfy the conditions.

Thus we get a total of 4 such pairs,as required.

Why must the polynomial have 3 integer roots?

You found a series of examples with four pairs, but you did not really show that five pairs are impossible: in the condition f ( n 2 ) = f ( n ) f(n^2)=f(n) it is not implied that f ( n ) = 0. f(n)=0.

Calvin Lin Staff - 7 years ago
Finn Hulse
Apr 9, 2014

Let's write the unexpanded form of the polynomial: ( x a ) ( x a 2 ) ( x a 4 ) + C (x-a)(x-a^{2})(x-a^{4})+C where C C is an arbitrary constant. Because a 4 a^{4} is a 2 a^{2} squared, and a 2 a^{2} is simply a a squared, we already have two cases that will make the equation equal to C C . Remember, this is the case because if we set any of the binomials equal to zero, then x x solves out to be the negative constant (Vieta's Formulas?). Anyways, that's two out of the way. Now let's try to find some more. Let's ignore the actual function for a second. We know that if n = n 2 n=n^{2} , then no matter what, they'll evaluate to the same thing! The solutions for that are one and zero, which add two more possible answers. Thus, the answer is 2 + 2 = 4 2+2=\boxed{4} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...