Problem:
Let P(x) be a polynomial with rational coefficients such that when P(x) is divided by the polynomial x2+x+1, the remainder is x+2, and when P(x) is divided by the polynomial x2+1, the remainder is 2x+1. There is a unique polynomial of least degree with these two properties. What is the sum of the squares of the coefficients of that polynomial?
Answer Choices:
A. 10
B. 13
C. 19
D. 20
E. 23
Solution:
Write P(x)=Q(x)(x2+x+1)+(x+2) for some polynomial Q(x) with rational coefficients. It follows that x2+1 divides
P(x)β(2x+1)=Q(x)(x2+1)+xQ(x)βx+1
Thus xQ(x)βx+1 is a multiple of x2+1. Hence the degree of Q(x) is at least 1 . Assume that Q(x)=ax+b and that xQ(x)βx+1=c(x2+1) for some rational numbers a,b, and c. Then c=1 and a=b=1. Therefore the polynomial of least degree is
P(x)=(x+1)(x2+x+1)+(x+2)=x3+2x2+3x+3
The requested sum of squares is 12+22+32+32=(E)23β.
OR
Divide (x2+x+1)(x2+1) into P(x) to obtain a quotient polynomial Q(x) and a remainder R(x). Thus
P(x)=Q(x)(x2+x+1)(x2+1)+R(x)
When R(x) is divided by x2+x+1 it gives the same remainder, x+2, as does P(x), and when R(x) is divided by x2+1 it gives the same remainder, 2x+1, as does P(x). But R(x) has degree at most 3 , so the polynomial of least degree having the desired properties has degree at most 3 . Let P(x)=a3βx3+a2βx2+a1βx+a0β where the values of the coefficients aiβ are to be determined. Polynomial division yields
P(x)β=(a3βx+a2ββa3β)(x2+x+1)+(a1ββa2β)x+a0ββa2β+a3β=(a3βx+a2β)(x2+1)+(a1ββa3β)x+a0ββa2ββ
For P(x) to have the desired properties, the aiβ must be chosen so that
βa1ββa2β=1a0ββa2β+a3β=2a1ββa3β=2a0ββa2β=1.β
To solve this system, first subtract the fourth equation from the second to see that a3β=1. Then insert this information into the third equation to see that a1β=3. Insert this value of a1β in the first equation to see that a2β=2. Finally, insert this value of a2β into the fourth equation to see that a0β=3. Thus P(x)=x3+2x2+3x+3, as above.
Let P(x) be any polynomial that yields the required remainders. By polynomial division, there exist polynomials Q(x) and R(x) such that
P(x)=Q(x)(x2+x+1)(x2+1)+R(x)
where R(x) has degree less than or equal to 3 . The polynomial R(x) also yields the two required remainders, and a polynomial that yields the required remainders and has degree less than or equal to 3 is unique. Indeed, if there were two of them, say R1β(x) and R2β(x), then put S(x)= R1β(x)βR2β(x). Both x2+x+1 and x2+1 evenly divide S(x). Because the two divisors are relatively prime, their product (which has degree 4) divides S(x). Because S(x) has degree less than or equal to 3 , this is possible only if S(x) is identically zero.\
Because P(x) yields the desired remainder when divided by x2+x+1, which is to say that there is a polynomial Q1β(x) such that
P(x)=Q1β(x)(x2+x+1)+x+2(1)
It suffices to find all Q1β(x) such that there exists a polynomial Q2β(x) such that
Q1β(x)(x2+x+1)+x+2=Q2β(x)(x2+1)+2x+1
that is,
Q1β(x)(x2+x+1)=Q2β(x)(x2+1)+xβ1(2)
A brief application of the Extended Euclidean Algorithm yields
βx(x2+x+1)+(x+1)(x2+1)=1
Multiply both sides of this by xβ1, and rearrange, to see that
(βx2+x)(x2+x+1)=(1βx2)(x2+1)+xβ1
Subtract the respective sides of this from equation (2) to see that
(Q1β(x)+x2βx)(x2+x+1)=(Q2β(x)+x2β1)(x2+1)
Because x2+x+1 and x2+1 are relatively prime, it follows that x2+1 divides the first factor on the left-hand side above. That is, there is a polynomial K(x) such that Q1β(x)=βx2+x+K(x)(x2+1). For Q1β(x) of this form, the polynomial P(x) will have the desired remainder when divided by x2+1. Substitute this formula for Q1β(x) into (1) to see that
P(x)β=(βx2+x+K(x)(x2+1))(x2+x+1)+x+2=βx4+2x+2+K(x)(x2+x+1)(x2+1)β
The desired polynomial of least degree occurs when K(x)=1 - that is, when P(x)=x3+2x2+ 3x+3, as above. As a quick check,
x3+2x2+3x+3β=(x+1)(x2+x+1)+x+2=(x+2)(x2+1)+2x+1β
Note: The calculation completed in the third solution generalizes to give an analogue for polynomials of the Chinese Remainder Theorem.
The problems on this page are the property of the MAA's American Mathematics Competitions