AMC 10 Step by Step

2022 AMC 10B Problem 21

P21-25~5 minPrint

Let P(x)P(x) be a polynomial with rational coefficients such that when P(x)P(x) is divided by the polynomial x2+x+1x^2 + x + 1 , the remainder is x+2x + 2 , and when P(x)P(x) is divided by the polynomial x2+1x^2 + 1 , the remainder is 2x+12x + 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?

Log in to save your progress.
Show solution without answering

Key insight

For the remainder on dividing by x² + 1, replace x² by −1. For x² + x + 1, replace x² by −x − 1 and x³ by 1.

Solution

A shortcut for remainders. Since x2=(x2+1)−1x^2 = (x^2 + 1) - 1, every x2x^2 is "−1-1 plus a multiple of x2+1x^2 + 1". So to find the remainder after dividing by x2+1x^2 + 1, you may replace x2x^2 by −1-1 (and so x3=x⋅x2x^3 = x \cdot x^2 by −x-x).

For x2+x+1x^2 + x + 1 the same idea says replace x2x^2 by −x−1-x - 1. Also x3−1=(x−1)(x2+x+1)x^3 - 1 = (x - 1)(x^2 + x + 1) is a multiple of x2+x+1x^2 + x + 1, so replace x3x^3 by 11.

1. Try a cubic. Two remainder conditions, each with two numbers to match, give four equations, so a polynomial with four coefficients is the natural first guess:
P(x)=ax3+bx2+cx+d.P(x) = ax^3 + bx^2 + cx + d.
2. Divide by x2+1x^2 + 1. Replace x3x^3 by −x-x and x2x^2 by −1-1:
−ax−b+cx+d=(c−a)x+(d−b).-ax - b + cx + d = (c - a)x + (d - b).
This must be 2x+12x + 1, so c−a=2c - a = 2 and d−b=1d - b = 1.
3. Divide by x2+x+1x^2 + x + 1. Replace x3x^3 by 11 and x2x^2 by −x−1-x - 1:
a−bx−b+cx+d=(c−b)x+(a+d−b).a - bx - b + cx + d = (c - b)x + (a + d - b).
This must be x+2x + 2, so c−b=1c - b = 1 and a+d−b=2a + d - b = 2.
4. Solve. From d−b=1d - b = 1 and a+(d−b)=2a + (d - b) = 2 we get a=1a = 1. Then c=a+2=3c = a + 2 = 3, b=c−1=2b = c - 1 = 2, and d=b+1=3d = b + 1 = 3.
5. Nothing smaller works. A polynomial of degree 22 or less is the case a=0a = 0. But step 4 showed aa must be 11, so no smaller polynomial fits. The least-degree polynomial is
P(x)=x3+2x2+3x+3.P(x) = x^3 + 2x^2 + 3x + 3.
6. Check. Replace x2x^2 by −1-1: −x−2+3x+3=2x+1-x - 2 + 3x + 3 = 2x + 1. Replace x3x^3 by 11 and x2x^2 by −x−1-x - 1: 1−2x−2+3x+3=x+21 - 2x - 2 + 3x + 3 = x + 2. Both match.
7. Sum of squares. 12+22+32+32=1+4+9+9=231^2 + 2^2 + 3^2 + 3^2 = 1 + 4 + 9 + 9 = 23.

The answer is (E) 23\boxed{\textbf{(E)}\ 23}.

Why this works

The remainder only cares about what is left after taking away multiples of the divisor, so you can swap x2x^2 (or x3x^3) for something simpler that differs from it by such a multiple. This turns each remainder condition into two plain equations. Two conditions give four equations, which is why a polynomial with four coefficients, a cubic, is the smallest that can satisfy both.

Alternative approach

Build PP from the second condition. Any PP with remainder 2x+12x + 1 after dividing by x2+1x^2 + 1 has the form P(x)=(x2+1)(px+q)+2x+1P(x) = (x^2 + 1)(px + q) + 2x + 1 for a cubic. Multiplying out gives px3+qx2+(p+2)x+(q+1)px^3 + qx^2 + (p + 2)x + (q + 1). Now replace x3x^3 by 11 and x2x^2 by −x−1-x - 1: the remainder is (p−q+2)x+(p+1)(p - q + 2)x + (p + 1). Matching x+2x + 2 gives p=1p = 1 and q=2q = 2, so again P(x)=x3+2x2+3x+3P(x) = x^3 + 2x^2 + 3x + 3.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

PP cannot have degree ≤1\le 1, since then both remainders would equal PP itself, but x+2≠2x+1x + 2 \ne 2x + 1.

The second condition says P(x)=(x2+1)Q(x)+2x+1P(x) = (x^2 + 1)Q(x) + 2x + 1. Try the smallest QQ.

If Q=cQ = c is constant, P=cx2+2x+c+1P = cx^2 + 2x + c + 1. Modulo x2+x+1x^2 + x + 1 we may replace x2x^2 by −x−1-x - 1: P≡c(−x−1)+2x+c+1=(2−c)x+1P \equiv c(-x-1) + 2x + c + 1 = (2 - c)x + 1. The constant term 11 can never match the required 22, so no quadratic works.

Let Q=ax+bQ = ax + b:
P(x)=(x2+1)(ax+b)+2x+1=ax3+bx2+(a+2)x+(b+1).P(x) = (x^2+1)(ax+b) + 2x + 1 = ax^3 + bx^2 + (a+2)x + (b+1).
Modulo x2+x+1x^2 + x + 1 use x2≡−x−1x^2 \equiv -x - 1 and x3=x⋅x2≡−x2−x≡(x+1)−x=1x^3 = x \cdot x^2 \equiv -x^2 - x \equiv (x + 1) - x = 1:
P≡a+b(−x−1)+(a+2)x+(b+1)=(a−b+2)x+(a+1).P \equiv a + b(-x-1) + (a+2)x + (b+1) = (a - b + 2)x + (a + 1).
Matching with x+2x + 2: a+1=2a + 1 = 2 gives a=1a = 1, then 1−b+2=11 - b + 2 = 1 gives b=2b = 2.

So P(x)=x3+2x2+3x+3P(x) = x^3 + 2x^2 + 3x + 3, and the sum of the squares of its coefficients is 1+4+9+9=231 + 4 + 9 + 9 = 23.

The answer is (E) 23\boxed{\textbf{(E)}\ 23}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.