Maths WorkshopMaths problems with full solutions
Exercise 600Algebra › PolynomialsM1Added 4 Nov 2026

The remainder of a huge power

#polynomial division#remainder#roots of unity

Statement

  1. A polynomial PP satisfies P(1)=2P(1)=2 and P(2)=3P(2)=3. Find the remainder of PP divided by (x−1)(x−2)(x-1)(x-2).
  2. Find the remainder of x2026+x+1x^{2026}+x+1 divided by x2+x+1x^2+x+1.
Hint

The remainder of a division by a polynomial of degree nn has degree <n<n. For part 2, notice that x3−1=(x−1)(x2+x+1)x^3-1=(x-1)(x^2+x+1).

Show solutionHide solution

Solution

1. The remainder has degree at most 11: P(x)=(x−1)(x−2)Q(x)+ax+bP(x)=(x-1)(x-2)Q(x)+ax+b. Evaluating at 11 and 22 gives a+b=2a+b=2 and 2a+b=32a+b=3, so a=1a=1, b=1b=1. The remainder is x+1x+1.

2. Since x3−1x^3-1 is divisible by x2+x+1x^2+x+1, we have x3≡1x^3\equiv1 modulo x2+x+1x^2+x+1. Now 2026=3⋅675+12026=3\cdot675+1, so
x2026=(x3)675x≡x.x^{2026}=\left(x^3\right)^{675}x\equiv x.
Therefore x2026+x+1≡2x+1x^{2026}+x+1\equiv2x+1. As 2x+12x+1 has degree <2<2, it is the remainder.

Remark. Equivalently, with ω=e2πi/3\omega=e^{2\pi i/3}: ω2026+ω+1=2ω+1\omega^{2026}+\omega+1=2\omega+1, and the remainder is the unique polynomial of degree ≤1\le1 taking the same values at ω\omega and ωˉ\bar\omega.

Lesson. Work "modulo" the divisor: replace x2+x+1x^2+x+1 by 00 (or x3x^3 by 11) and reduce the exponents.