JB Math Club 26-27 · Lecture notes

Vieta’s and Remainder Theorems

Polynomials · Lecture notes

A polynomial can be described by its coefficients, its factors, or its values. The aim of this lecture is to move between these descriptions and choose the one that makes a problem easier.

\[\begin{aligned}P(x)&=x^3-6x^2+11x-6\\&=(x-1)(x-2)(x-3),\qquad P(2)=0.\end{aligned}\]

Route through the lecture. Definitions → division → remainders → roots and factorization → Vieta’s formulas → coefficient counting → challenge problems → review.

1. What is a polynomial?

A polynomial in \(x\) is a finite sum of nonnegative integer powers of \(x\), multiplied by coefficients. Unless stated otherwise, our coefficients are real numbers. A nonzero polynomial has the form

\[P(x)=a_nx^n+a_{n-1}x^{n-1}+\cdots+a_1x+a_0,\qquad a_n\ne0.\]

For \(P(x)=-3x^4+2x^2-7\), the degree is \(4\), the leading coefficient is \(-3\), and the constant term is \(-7\). The missing powers have zero coefficients: \(a_3=a_1=0\).

ExpressionPolynomial?Reason
\(5x^3-2x+7\)YesNonnegative integer powers; degree \(3\).
\(7\)YesA nonzero constant has degree \(0\).
\(\sqrt{2}x+1\)YesIrrational coefficients are allowed; degree \(1\).
\(x^{-1}+2\)NoThe variable has a negative exponent.
\(\sqrt{x}+1\)NoThe variable has a noninteger exponent.

The zero polynomial. The expression \(P(x)\equiv0\) is also a polynomial. We leave its degree undefined in these notes. It must be treated separately in statements about degrees or numbers of roots.

Degree rules

If \(P\) and \(Q\) are nonzero, then

\[\deg(PQ)=\deg P+\deg Q.\]

If \(P\), \(Q\), and \(P+Q\) are nonzero, then

\[\deg(P+Q)\le\max\{\deg P,\deg Q\}.\]

The leading terms in a sum can cancel. For example,

\[(x^3+2x)+(-x^3+x^2)=x^2+2x.\]

The degree drops from \(3\) to \(2\). In a product, the leading coefficient is the product of two nonzero real numbers, so it cannot vanish.

2. Division with remainder

Definition of division with remainder

Definition. For real polynomials \(P\) and \(D\), with \(D\ne0\), division with remainder is a representation

\[\underbrace{P(x)}_{\text{dividend}}=\underbrace{D(x)}_{\text{divisor}}\,\underbrace{Q(x)}_{\text{quotient}}+\underbrace{R(x)}_{\text{remainder}},\]

where \(R=0\) or \(\deg R<\deg D\).

If \(R=0\), the division is exact and we write \(D\mid P\). The degree condition takes the place of the size condition in integer division.

For example,

\[x^2+3x+5=(x+1)(x+2)+3.\]

Here the quotient is \(x+2\), and the remainder is \(3\), whose degree is \(0<1\).

Existence. If the current remainder has degree at least \(\deg D\), divide its leading term by the leading term of \(D\), add the resulting monomial to the quotient, and subtract its product with \(D\). The degree strictly decreases at each step, so the process stops. If \(P=0\), take \(Q=R=0\); if \(P\ne0\) has degree below \(\deg D\), take \(Q=0\) and \(R=P\).

Uniqueness of division with remainder

Theorem. For fixed \(P\) and nonzero \(D\), there is exactly one quotient \(Q\) and one remainder \(R\) satisfying \(P=DQ+R\) and \(R=0\) or \(\deg R<\deg D\).

Proof. Suppose two such representations exist:

\[P=DQ_1+R_1=DQ_2+R_2.\]

Subtracting gives

\[D(Q_1-Q_2)=R_2-R_1.\]

If \(Q_1-Q_2\ne0\), the left side is nonzero and has degree at least \(\deg D\). The right side is either zero or has degree smaller than \(\deg D\), a contradiction. Thus \(Q_1=Q_2\), and the identity then gives \(R_1=R_2\). This also covers a nonzero constant divisor: its remainder must be zero.

Example 1. Long division by a linear polynomial

Problem. Divide \(P(x)=2x^3+3x^2+x+5\) by \(x-1\). Find the quotient and the remainder.

Solution. At each stage, divide the leading terms, multiply, and subtract. Align equal powers of \(x\), including missing terms with coefficient zero.

\[\begin{array}{r|rrrr} & &2x^2&+5x&+6\\ \hline x-1&2x^3&+3x^2&+x&+5\\ &2x^3&-2x^2&&\\ \hline &&5x^2&+x&+5\\ &&5x^2&-5x&\\ \hline &&&6x&+5\\ &&&6x&-6\\ \hline &&&&11 \end{array}\]

Each row immediately above a horizontal subtraction line is subtracted from the preceding working row. Thus

  1. \(2x^3/x=2x^2\). Subtract \(2x^2(x-1)\), leaving \(5x^2+x+5\).
  2. \(5x^2/x=5x\). Subtract \(5x(x-1)\), leaving \(6x+5\).
  3. \(6x/x=6\). Subtract \(6(x-1)\), leaving \(11\).

\[\boxed{Q(x)=2x^2+5x+6,\qquad R(x)=11.}\]

Check the result by multiplying back:

\[2x^3+3x^2+x+5=(x-1)(2x^2+5x+6)+11.\]

Setting \(x=1\) gives \(P(1)=11\). This observation will become the Remainder Theorem.

Example 2. A quadratic divisor

Problem. Divide \(P(x)=2x^3+3x^2+x+5\) by \(x^2+1\).

Solution. Write the missing linear term in the divisor as \(0x\). The same algorithm gives

\[\begin{array}{r|rrrr} &&&2x&+3\\ \hline x^2+0x+1&2x^3&+3x^2&+x&+5\\ &2x^3&+0x^2&+2x&\\ \hline &&3x^2&-x&+5\\ &&3x^2&+0x&+3\\ \hline &&&-x&+2 \end{array}\]

First subtract \(2x(x^2+1)\), and then subtract \(3(x^2+1)\). Stop at \(-x+2\), because its degree is \(1<2\).

\[\boxed{Q(x)=2x+3,\qquad R(x)=-x+2.}\]

\[P(x)=(x^2+1)(2x+3)+(-x+2).\]

Remember. A remainder need not be constant. It must be zero or have degree smaller than the divisor.

When do coefficients stay integers?

The notation \(\mathbb Z[x]\) means polynomials with integer coefficients. If \(P,D\in\mathbb Z[x]\) and \(D\) is monic, long division produces \(Q,R\in\mathbb Z[x]\). At every step we divide by the leading coefficient \(1\), so only integer multiples of \(D\) are subtracted.

For a nonmonic divisor, fractions can appear even when the original coefficients are integers:

\[x^2+1=(2x)\left(\frac{x}{2}\right)+1.\]

3. The Remainder Theorem

Theorem. When \(P(x)\) is divided by \(x-a\), the remainder is \(P(a)\).

Proof. The divisor has degree \(1\), so the remainder is a constant \(r\) (possibly zero). Write

\[P(x)=(x-a)Q(x)+r.\]

Substitute \(x=a\). The term involving \(Q\) vanishes:

\[P(a)=(a-a)Q(a)+r=r.\]

Equivalently, the division identity is

\[P(x)=(x-a)Q(x)+P(a).\]

Example 3. A remainder without long division

Problem. Find the remainder when \(P(x)=x^3-6x^2+11x-5\) is divided by \(x-2\).

Solution. The divisor is zero at \(x=2\). Therefore

\[P(2)=8-24+22-5=1.\]

\[\boxed{\text{Remainder}=1.}\]

4. Roots and factorization

A number \(a\) is a root of \(P\) if \(P(a)=0\).

Theorem (Factor Theorem). A number \(a\) is a root exactly when \(x-a\) divides \(P(x)\).

\[P(a)=0\quad\Longleftrightarrow\quad(x-a)\mid P(x).\]

Proof. By the Remainder Theorem, \(P(x)=(x-a)Q(x)+P(a)\). If \(P(a)=0\), this gives the required factor. Conversely, if \(P(x)=(x-a)Q(x)\), setting \(x=a\) gives \(P(a)=0\).

Example 4. Turn roots into factors

Problem. Factorize \(P(x)=x^3-6x^2+11x-6\).

Solution. Since \(P(1)=1-6+11-6=0\), we can factor out \(x-1\). Division gives

\[P(x)=(x-1)(x^2-5x+6).\]

The quadratic equals \((x-2)(x-3)\), so

\[\boxed{P(x)=(x-1)(x-2)(x-3).}\]

How many distinct roots can there be?

Theorem. A nonzero polynomial of degree \(n\) has at most \(n\) distinct roots.

Proof. A root \(r_1\) gives \(P(x)=(x-r_1)Q(x)\). If \(r_2\ne r_1\) is another root, then

\[0=P(r_2)=(r_2-r_1)Q(r_2).\]

Since \(r_2-r_1\ne0\), we have \(Q(r_2)=0\). Repeat this argument. If \(P\) has \(m\) distinct roots, then their \(m\) linear factors divide \(P\), so \(m\le n\) by the degree rule.

In particular, if \(P\) has degree \(n\), leading coefficient \(a_n\), and \(n\) distinct roots \(r_1,\ldots,r_n\), then the remaining factor has degree zero. Comparing leading coefficients gives

\[P(x)=a_n\prod_{i=1}^{n}(x-r_i).\]

Distinct roots and multiplicity

For \(P(x)=(x-1)^2(x+2)=x^3-3x+2\), there are two distinct roots, \(1\) and \(-2\), but three roots with multiplicity: \(1,1,-2\). In Vieta's formulas,

\[1+1-2=0,\qquad1\cdot1+1\cdot(-2)+1\cdot(-2)=-3,\qquad1\cdot1\cdot(-2)=-2.\]

These agree with the coefficients of \(x^3-3x+2\). The root bound concerns a nonzero polynomial and says at most its degree many distinct roots. The zero polynomial vanishes everywhere; \(x^2+1\) has no real roots.

5. Vieta's formulas

Choose terms to make a coefficient

Start with three linear factors. To form a term in their product, choose one term from each factor:

\[\begin{aligned}(x-r_1)(x-r_2)(x-r_3) &=x^3-(r_1+r_2+r_3)x^2\\ &\quad +(r_1r_2+r_1r_3+r_2r_3)x\\ &\quad -r_1r_2r_3. \end{aligned}\]

The general formula

Theorem (Vieta). Suppose a degree-\(n\) polynomial is written as

\[P(x)=a_nx^n+\cdots+a_0=a_n\prod_{i=1}^{n}(x-r_i).\]

Use all \(n\) roots, counted with multiplicity. The formulas apply over the real numbers whenever this factorization exists there, and also over the complex numbers when complex roots are allowed.

\[\sum_{1\le i_1<i_2<\cdots<i_k\le n}r_{i_1}r_{i_2}\cdots r_{i_k}=(-1)^k\frac{a_{n-k}}{a_n},\quad 1\le k\le n.\]

Proof. To obtain \(x^{n-k}\), choose a constant from exactly \(k\) of the factors and choose \(x\) from all the others. Every such choice contributes \(k\) minus signs. Comparing coefficients gives the stated identity.

In particular,

\[\begin{aligned} \sum_{i=1}^{n}r_i&=-\frac{a_{n-1}}{a_n},\\ \sum_{1\le i<j\le n}r_ir_j&=\frac{a_{n-2}}{a_n}\quad(n\ge2),\\ \prod_{i=1}^{n}r_i&=(-1)^n\frac{a_0}{a_n}. \end{aligned}\]

Quadratic case

If \(ax^2+bx+c=a(x-r_1)(x-r_2)\), with \(a\ne0\), then

\[r_1+r_2=-\frac ba,\qquad r_1r_2=\frac ca.\]

Example 5. Find the sum and product of the roots of \(2x^2-7x+3\).

Solution. Apply the formulas with \(a=2\), \(b=-7\), and \(c=3\):

\[\boxed{r_1+r_2=\frac72,\qquad r_1r_2=\frac32.}\]

As a check, \(2x^2-7x+3=(2x-1)(x-3)\), whose roots are \(\tfrac12\) and \(3\).

Cubic case

If \(P(x)=a_3x^3+a_2x^2+a_1x+a_0\), with \(a_3\ne0\), and its roots counted with multiplicity are \(r_1,r_2,r_3\), then

\[\begin{aligned} r_1+r_2+r_3&=-\frac{a_2}{a_3},\\ r_1r_2+r_1r_3+r_2r_3&=\frac{a_1}{a_3},\\ r_1r_2r_3&=-\frac{a_0}{a_3}. \end{aligned}\]

Example 6. A sum of squares without finding the roots

Problem. The roots of \(2x^3-3x^2-11x+6\) are \(r_1,r_2,r_3\). Find \(r_1^2+r_2^2+r_3^2\).

Solution. Vieta gives

\[r_1+r_2+r_3=\frac32,\qquad r_1r_2+r_1r_3+r_2r_3=-\frac{11}{2}.\]

Use the identity

\[\begin{aligned} r_1^2+r_2^2+r_3^2 &=(r_1+r_2+r_3)^2-2(r_1r_2+r_1r_3+r_2r_3)\\ &=\frac94+11. \end{aligned}\]

\[\boxed{r_1^2+r_2^2+r_3^2=\frac{53}{4}.}\]

Three descriptions of a polynomial

DescriptionWhat determines the polynomial?
CoefficientsAll coefficients \(a_n,\ldots,a_0\).
RootsAll roots with multiplicities, together with the leading coefficient, when the polynomial splits into linear factors.
ValuesFor degree at most \(n\), the values at \(n+1\) distinct points determine at most one polynomial. We prove uniqueness in Section 8.

6. Counting coefficients in products

The notation \([x^m]F(x)\) means the coefficient of \(x^m\) in \(F(x)\). When multiplying polynomials, exponents add and coefficients multiply. Add the contributions from every choice that gives the required exponent.

Example 7. Start small

Problem. Find \([x^2](1+2x)(1+3x+x^2)\).

Solution. The only relevant choices are \(1\cdot x^2=x^2\) and \(2x\cdot3x=6x^2\). Therefore

\[\boxed{[x^2](1+2x)(1+3x+x^2)=1+6=7.}\]

Example 8. Match the exponents

Problem. Find the coefficient of \(x^{50}\) in \(A(x)B(x)\), where

\[\begin{aligned} A(x)&=1+2x+3x^2+\cdots+101x^{100},\\ B(x)&=1+x+x^2+\cdots+x^{25}. \end{aligned}\]

Solution. Choose \(x^j\) from \(B\), where \(0\le j\le25\). Then \(A\) must supply \(x^{50-j}\), whose coefficient is \(51-j\). All these powers occur in \(A\).

Exponent from \(B\)Exponent from \(A\)Contribution
\(0\)\(50\)\(51\)
\(1\)\(49\)\(50\)
\(\vdots\)\(\vdots\)\(\vdots\)
\(25\)\(25\)\(26\)

There are \(26\) contributions, so

\[[x^{50}]A(x)B(x)=51+50+\cdots+26=\frac{26(51+26)}2.\]

\[\boxed{[x^{50}]A(x)B(x)=1001.}\]

Example 9. Three factors, a smaller exponent

Problem. Find \([x^4](1+x+x^2+x^3+x^4)^3\).

Solution. Choose \(x^a\), \(x^b\), and \(x^c\) from the first, second, and third factors. We need \(a+b+c=4\), with \(a,b,c\ge0\). Each exponent is automatically at most \(4\).

For a fixed \(a\), there are \(5-a\) pairs \((b,c)\). The triples are ordered: \((1,1,2)\) and \((1,2,1)\) describe different choices of factors.

\[\boxed{[x^4](1+x+x^2+x^3+x^4)^3=5+4+3+2+1=15.}\]

Example 10. The coefficient of a much larger power

Problem. Find \([x^{100}](1+x+x^2+\cdots+x^{100})^3\).

Solution. Now count ordered triples satisfying

\[a+b+c=100,\qquad a,b,c\ge0.\]

The upper bounds \(a,b,c\le100\) are automatic. With \(a\) fixed, choose \(b\) from \(0\) to \(100-a\), and then \(c\) is determined. This gives \(101-a\) choices.

\[101+100+\cdots+1=\frac{101\cdot102}{2}=5151.\]

\[\boxed{[x^{100}](1+x+\cdots+x^{100})^3=5151.}\]

Stars and bars: a second solution

Problem. Find \([x^{100}](1+x+\cdots+x^{100})^3\) by counting exponent choices.

Solution. A product contributes \(x^{100}\) exactly when its chosen exponents satisfy \(a+b+c=100\). More generally, represent a triple with \(a+b+c=m\) by \(m\) stars separated into three groups by two bars. For example,

\[(2,0,3)\quad\longleftrightarrow\quad\star\star\mid\mid\star\star\star.\]

The stars before, between, and after the bars count \(a,b,c\). Adjacent bars allow a zero middle entry; bars at the ends allow \(a=0\) or \(c=0\). Every triple corresponds to exactly one arrangement.

Choose the two bar positions among \(m+2\) positions. Thus the number of nonnegative ordered triples with sum \(m\) is \(\binom{m+2}{2}\). At \(m=100\), each exponent is automatically at most \(100\), so all arrangements are allowed.

\[\boxed{[x^{100}](1+x+\cdots+x^{100})^3=\binom{102}{2}=5151.}\]

Example 11. The coefficient of the next power

Find \([x^{101}](1+x+\cdots+x^{100})^3\).

Solution. Without upper bounds, stars and bars gives \(\binom{103}{2}=5253\) triples with sum \(101\). But each factor only contains powers up to \(100\). The only invalid triples are \((101,0,0)\), \((0,101,0)\), and \((0,0,101)\). Therefore

\[\boxed{[x^{101}](1+x+\cdots+x^{100})^3=5253-3=5250.}\]

7. Factorization challenges

Problem 1. A Fibonacci factorization

Let \(F_0=0\), \(F_1=1\), and \(F_{k+1}=F_k+F_{k-1}\) for \(k\ge1\). For every integer \(n\ge2\), prove that

\[P_n(x)=F_nx^{n+1}+F_{n+1}x^n-1\]

can be factored into two positive-degree polynomials in \(\mathbb Z[x]\).

Idea. Inspect the first two cases:

\[\begin{aligned} x^3+2x^2-1&=(x^2+x-1)(x+1),\\ 2x^4+3x^3-1&=(x^2+x-1)(2x^2+x+1). \end{aligned}\]

Solution. The second factor suggests the polynomial

\[S_n(x)=F_1+F_2x+\cdots+F_nx^{n-1}=\sum_{k=1}^{n}F_kx^{k-1}.\]

Expand \((x^2+x-1)S_n=x^2S_n+xS_n-S_n\). The coefficient of \(x^{n+1}\) is \(F_n\), and that of \(x^n\) is \(F_{n-1}+F_n=F_{n+1}\). For every middle power \(x^j\), where \(2\le j\le n-1\), the coefficient is

\[F_{j-1}+F_j-F_{j+1}=0.\]

The coefficient of \(x\) is \(F_1-F_2=0\), and the constant term is \(-F_1=-1\). For \(n=2\) the middle range is empty, and the same computation applies. Hence

\[\boxed{P_n(x)=(x^2+x-1)\sum_{k=1}^{n}F_kx^{k-1}.}\]

Both factors have integer coefficients and positive degrees: \(2\) and \(n-1\ge1\). This proves the required reducibility.

Why the condition matters. At \(n=1\), the polynomial is \(x^2+x-1\). It has no rational root (the only possible integer roots are \(1\) and \(-1\), and neither works), so it has no factorization into positive-degree integer polynomials.

Problem 2. When does one geometric sum divide another?

Find all positive integers \(n\) for which \(Q\mid P\), where

\[\begin{aligned} P(x)&=1+x^4+x^8+\cdots+x^{4n},\\ Q(x)&=1+x^2+x^4+\cdots+x^{2n}. \end{aligned}\]

Solution. Step 1: use polynomial identities. The geometric-sum identities give

\[\begin{aligned} (x^4-1)P(x)&=x^{4n+4}-1,\\ (x^2-1)Q(x)&=x^{2n+2}-1. \end{aligned}\]

Factor the first right-hand side, then substitute the second identity:

\[\begin{aligned} (x^2-1)(x^2+1)P(x) &=(x^{2n+2}-1)(x^{2n+2}+1)\\ &=(x^2-1)Q(x)(x^{2n+2}+1). \end{aligned}\]

Cancel the nonzero polynomial \(x^2-1\):

\[(x^2+1)P(x)=Q(x)(x^{2n+2}+1).\]

This is an identity of polynomials, so no numerical value of \(x\) needs to be excluded.

Step 2: reduce the divisibility question. If \(P=QT\), substitution and cancellation of \(Q\ne0\) give \(x^{2n+2}+1=(x^2+1)T\). Conversely, if this last factorization holds, the displayed identity lets us cancel \(x^2+1\) and obtain \(P=QT\). Thus

\[Q\mid P\quad\Longleftrightarrow\quad x^2+1\mid x^{2n+2}+1.\]

Step 3: check parity. Modulo \(x^2+1\), we may replace \(x^2\) by \(-1\), because their difference is a multiple of the divisor. Therefore

\[x^{2n+2}+1\equiv(-1)^{n+1}+1\pmod{x^2+1}.\]

This constant remainder is \(0\) when \(n\) is even and \(2\) when \(n\) is odd.

\[\boxed{n\in\{2,4,6,\ldots\}.}\]

For even \(n\), the quotient has integer coefficients:

\[\frac{P(x)}{Q(x)}=x^{2n}-x^{2n-2}+\cdots-x^2+1.\]

For example, \(n=2\) gives \(1+x^4+x^8=(1+x^2+x^4)(x^4-x^2+1)\).

8. Known values can create roots

How many values determine a polynomial?

Theorem. If two polynomials, each zero or of degree at most \(n\), agree at \(n+1\) distinct points, then they are identical.

Proof. Let \(H=P-Q\). If \(H\ne0\), it has degree at most \(n\), but it has \(n+1\) distinct roots. This contradicts the root bound. Hence \(H\equiv0\), so \(P\equiv Q\).

Example 12. Three values determine a quadratic

Problem. Find a polynomial \(P\) of degree at most \(2\) with \(P(0)=1\), \(P(1)=2\), and \(P(2)=3\).

Solution. The polynomial \(x+1\) gives all three values. Any other polynomial of degree at most \(2\) agreeing with it at three distinct points must be identical to it, by the theorem.

\[\boxed{P(x)=x+1.}\]

For degree at most \(3\), the values would be insufficient: \(x+1+c\,x(x-1)(x-2)\) gives the same three values for every real \(c\).

Problem 3. Five remainders, one quartic

A polynomial \(f\) of degree \(4\) leaves remainders \(24,-6,4,-6,24\) on division by \(x-2003,x-2004,x-2005,x-2006,x-2007\), respectively. Find \(f(2008)\).

Solution. Step 1: turn remainders into values. By the Remainder Theorem,

\(x\)\(2003\)\(2004\)\(2005\)\(2006\)\(2007\)
\(f(x)\)\(24\)\(-6\)\(4\)\(-6\)\(24\)

Step 2: move the centre to zero. Let \(g(t)=f(t+2005)\). Then

\[g(-2)=g(2)=24,\qquad g(-1)=g(1)=-6,\qquad g(0)=4.\]

We want \(g(3)\). The values look symmetric, but we must justify that \(g\) is even. Set \(h(t)=g(t)-g(-t)\). If \(h\ne0\), its degree is at most \(4\). Yet it vanishes at the five distinct points \(-2,-1,0,1,2\). The root bound forces \(h\equiv0\). Hence \(g(t)=g(-t)\), so

\[g(t)=4+At^2+Bt^4.\]

Step 3: find the coefficients. Using \(g(1)=-6\) and \(g(2)=24\), we obtain

\[\begin{aligned}A+B&=-10,\\4A+16B&=20.\end{aligned}\]

Subtract four times the first equation from the second: \(12B=60\). Thus \(B=5\) and \(A=-15\), giving

\[g(t)=4-15t^2+5t^4.\]

Therefore \(f(2008)=g(3)=4-15\cdot9+5\cdot81\), and

\[\boxed{f(2008)=274.}\]

The polynomial itself is \(f(x)=4-15(x-2005)^2+5(x-2005)^4\). Five values determine at most one polynomial of degree at most \(4\), so the construction is unique.

Problem 4. A polynomial with 2025 known values

Let

\[P(x)=x^{2026}+a_{2025}x^{2025}+\cdots+a_1x+a_0\]

satisfy \(P(i)=2i-1\) for \(i=1,2,\ldots,2025\). Find \(P(0)+P(2026)-2026!\).

Solution. Step 1: subtract the simple pattern. Set

\[H(x)=P(x)-(2x-1),\qquad A(x)=\prod_{i=1}^{2025}(x-i).\]

The polynomial \(H\) vanishes at \(1,\ldots,2025\), so \(A\mid H\). Both are monic, with degrees \(2026\) and \(2025\). The quotient is therefore monic and linear: \(x-r\), for some real \(r\). Thus

\[P(x)=2x-1+A(x)(x-r).\]

The parameter \(r\) may coincide with a known root. We will not need its value.

Step 2: evaluate at the endpoints. At zero there are \(2025\) negative factors, an odd number. At \(2026\), the factors are \(2025,2024,\ldots,1\). Hence

\[A(0)=-2025!,\qquad A(2026)=2025!.\]

Consequently,

\[\begin{aligned}P(0)&=-1+r\cdot2025!,\\P(2026)&=4051+(2026-r)2025!.\end{aligned}\]

Step 3: add the values. The terms containing \(r\) cancel:

\[\begin{aligned}P(0)+P(2026)&=4050+\bigl[r+(2026-r)\bigr]2025!\\&=4050+2026!.\end{aligned}\]

\[\boxed{P(0)+P(2026)-2026!=4050.}\]

9. Review: choose a tool

Quick check 1. Find the remainder when \(x^4+2x^3+3\) is divided by \(x^2-1\).

Solution. Replace \(x^2\) by \(1\) modulo \(x^2-1\). Then \(x^4+2x^3+3\equiv1+2x+3\). The result has degree less than \(2\), so it is the remainder.

\[\boxed{R(x)=2x+4.}\]

Quick check 2. For the roots of \(x^3-4x^2+x+6\), find the sum, the sum of pairwise products, and the product.

Solution. Read off the coefficients using Vieta's formulas.

\[\boxed{\sum_{i=1}^{3}r_i=4,\qquad\sum_{1\le i<j\le3}r_ir_j=1,\qquad\prod_{i=1}^{3}r_i=-6.}\]

Quick check 3. A polynomial \(H\) is zero or has degree at most \(3\). If \(H(0)=H(1)=H(2)=H(3)=0\), find \(H(10)\).

Solution. Four distinct roots force \(H\equiv0\) by the root bound.

\[\boxed{H(10)=0.}\]

What does the problem give or ask?First tool to try
A remainder on division by \(x-a\)Evaluate at \(a\).
Many values matching a simple expressionSubtract that polynomial, then factor using the resulting roots.
A symmetric expression in the rootsUse Vieta's formulas and algebraic identities.
A coefficient in a productCount all choices whose exponents add to the required power.