Chapter

Polynomials, Sequences and Number Theory

This module teaches how to use integer-coefficient polynomials, finite differences, and recurrence periodicity in divisibility problems.
Log in to track solved progress and bookmarks.

Theory

Key Idea

A polynomial with integer coefficients behaves well modulo \(m\): from \(a\equiv b\pmod m\) it follows that \(f(a)\equiv f(b)\pmod m\). Therefore divisibility problems about polynomial values often reduce to one value, usually \(f(0)\).

Sequences modulo \(m\) have only finitely many states. For recurrences this gives periodicity or eventual periodicity; if the transition is reversible, the periodicity is pure.

Basic Facts

  • For \(f\in\mathbb Z[x]\), \(a-b\mid f(a)-f(b)\).
  • If \(n\mid f(n)\) for all \(n\), then \(f(0)\) is usually the key value.
  • The finite difference \(\Delta f(n)=f(n+1)-f(n)\) lowers the degree by \(1\).
  • The polynomials \(\binom{x}{k}\) take integer values at integer \(x\), even though their coefficients may be fractional.
  • The pair \((u_n,u_{n+1})\) of a recurrence modulo \(m\) has only finitely many possible values.
  • For Fibonacci numbers, the identity \(F_{r+s}=F_{r-1}F_s+F_rF_{s+1}\) is often decisive.

When to Use This Method

Use it when the statement contains values \(f(n)\), divisibility for all \(n\), differences \(f(a)-f(b)\), sums of powers, recurrence sequences, periodicity modulo \(m\), or Fibonacci numbers.

How to Recognise the Method

Look for phrases such as “for all integers \(n\)”, “polynomial with integer coefficients”, “the sequence is defined recursively”, or “prove that some term is divisible by \(m\)”. Often the right move is not to compute values, but to compare states modulo \(m\).

Typical Mistakes

  • Assuming that every integer-valued polynomial has integer coefficients.
  • Checking divisibility for a few \(n\) without proving periodicity.
  • Confusing periodicity of the sequence itself with periodicity of its residues.
  • Using Fibonacci identities without fixing the indexing.
  • Forgetting that a recurrence transition may be non-invertible modulo \(m\).

Mini-Checklist

  • For a polynomial, first check \(f(a)\equiv f(b)\).
  • If \(n\mid f(n)\), compare \(n\) with \(0\).
  • For sums and powers, try finite differences.
  • For recurrences, write down the state, such as \((u_n,u_{n+1})\).
  • For Fibonacci numbers, use the Euclidean idea: \(F_m\) and \(F_n\) behave like their indices \(m\) and \(n\).

Examples

Example 1. Polynomial Values Modulo a Divisor

A basic fact that replaces many computations.

Problem. Let \(f\in\mathbb Z[x]\). Prove that \(a-b\mid f(a)-f(b)\).

Solution.

It is enough to check a monomial: \(a^k-b^k=(a-b)(a^{k-1}+a^{k-2}b+\cdots+b^{k-1})\). A linear combination of such differences with integer coefficients is also divisible by \(a-b\). Hence \(a-b\mid f(a)-f(b)\).

Comment. This is the main bridge between polynomials and number theory.

Example 2. Divisibility of \(a^n-b^n\)

The classical factorisation is a special case of the polynomial principle.

Problem. Prove that \(a-b\mid a^n-b^n\) and \(a+b\mid a^{2r+1}+b^{2r+1}\).

Solution.

The first statement is the difference of powers. For the second, set \(x=a\), \(y=-b\). Then \(a^{2r+1}+b^{2r+1}=a^{2r+1}-(-b)^{2r+1}\), which is divisible by \(a-(-b)=a+b\).

Comment. Changing a sign often turns the second formula into the first.

Example 3. The Condition \(n\mid f(n)\)

A typical problem where \(f(0)\) is the key.

Problem. Find the condition on \(f\in\mathbb Z[x]\) under which \(n\mid f(n)\) for all \(n\ge1\).

Solution.

Since \(n-0\mid f(n)-f(0)\), we have \(f(n)\equiv f(0)\pmod n\). Therefore \(n\mid f(n)\) for all \(n\) if and only if \(n\mid f(0)\) for all \(n\). This is possible only when \(f(0)=0\). Conversely, if \(f(0)=0\), then \(n\mid f(n)-f(0)=f(n)\).

Comment. Many problems of this kind become one-line arguments after the right congruence.

Example 4. Finite Differences

Differences turn degree \(d\) into degree \(d-1\).

Problem. Let \(S_k(n)=1^k+2^k+\cdots+n^k\). Explain why \(S_k(n)\) is a polynomial in \(n\) of degree \(k+1\).

Solution.

By the binomial theorem, \((t+1)^{k+1}-t^{k+1}\) equals \((k+1)t^k\) plus a polynomial of smaller degree. Summing over \(t=1,\ldots,n\), the left side telescopes to \((n+1)^{k+1}-1\), while the right side contains \((k+1)S_k(n)\) plus already known sums of lower powers. Induction on \(k\) shows that \(S_k(n)\) is a polynomial of degree \(k+1\).

Comment. The idea matters more than the explicit formula.

Example 5. Integer-Valued but Not Integer-Coefficient

Not all integer values come from integer coefficients.

Problem. Prove that \(P(n)=\frac{n(n-1)}2\) is an integer for every integer \(n\), although not all coefficients of \(P\) are integers.

Solution.

The product of two consecutive integers is even, so \(\frac{n(n-1)}2\in\mathbb Z\). But the coefficient of \(n^2\) is \(\frac12\), so \(P\notin\mathbb Z[x]\).

Comment. This example prevents the dangerous automatic replacement of “integer-valued” by “integer-coefficient”.

Example 6. Fibonacci Periodicity Modulo \(m\)

Periodicity comes from finitely many states.

Problem. Prove that the Fibonacci sequence is periodic modulo every \(m\).

Solution.

Consider the pairs \((F_n,F_{n+1})\) modulo \(m\). There are at most \(m^2\) such pairs, so two of them coincide. The transition \((x,y)\mapsto(y,x+y)\) is reversible: from \((y,x+y)\) we recover \((x,y)\). Therefore the repeated pair gives a pure period starting from \((0,1)\).

Comment. The reversibility of the transition matters: it removes the preperiod.

Example 7. Divisibility of Fibonacci Numbers

Indices often inherit divisibility.

Problem. Prove that if \(d\mid n\), then \(F_d\mid F_n\).

Solution.

Use the identity \(F_{r+s}=F_{r-1}F_s+F_rF_{s+1}\). It implies that if \(F_d\mid F_r\), then \(F_d\mid F_{r+d}\), because \(F_{r+d}=F_{d-1}F_r+F_dF_{r+1}\). Starting with \(r=d\), induction gives \(F_d\mid F_{td}\) for all \(t\).

Comment. This prepares for \(\gcd(F_m,F_n)=F_{\gcd(m,n)}\).

Example 8. Infinitely Many Composite Terms

Sometimes one modulus and one residue class of indices are enough.

Problem. Prove that among the numbers \(2^{2^n}+3\), infinitely many are composite.

Solution.

Work modulo \(19\). Since \(2^4\equiv16\equiv-3\pmod{19}\), we want \(2^n\equiv4\pmod{18}\), because the order of \(2\) modulo \(19\) divides \(18\). The sequence \(2^n\pmod{18}\) has period \(6\), and \(2^n\equiv4\pmod{18}\) when \(n\equiv2\pmod6\). Thus for all \(n\equiv2\pmod6\), the number \(2^{2^n}+3\) is divisible by \(19\). For \(n>2\), it is greater than \(19\), hence composite.

Comment. This is an example of a “period of the index inside an exponent”.

Problems

Problems

#12.1
#12.1

Difference of Polynomial Values

Divisibility Grade 8 Grade 9 ★★☆☆☆

Let \(f\in\mathbb Z[x]\). Prove that for any integers \(a,b\), the number \(f(a)-f(b)\) is divisible by \(a-b\).

Details
Problem: NT-B2-M12-P001
Difficulty: Level 2 of 5
Tag: Divisibility
Grade: Grade 8, Grade 9
#12.2
#12.2

Two Power Divisibilities

Divisibility Grade 8 Grade 9 ★★☆☆☆

Prove that \(a-b\mid a^n-b^n\) and \(a+b\mid a^{2n+1}+b^{2n+1}\) for all integers \(a,b\) and \(n\ge0\).

Details
Problem: NT-B2-M12-P002
Difficulty: Level 2 of 5
Tag: Divisibility
Grade: Grade 8, Grade 9
#12.3
#12.3

Polynomial Residues Are Periodic

Modular Arithmetic Grade 8 Grade 9 ★★☆☆☆

Let \(f\in\mathbb Z[x]\), \(m\ge1\). Prove that the sequence \(f(0),f(1),f(2),\ldots\) modulo \(m\) has period \(m\).

Details
Problem: NT-B2-M12-P003
Difficulty: Level 2 of 5
Tag: Modular Arithmetic
Grade: Grade 8, Grade 9
#12.4
#12.4

A Quadratic Polynomial Modulo 7

Remainders Grade 8 Grade 9 ★★☆☆☆

Find all integers \(n\) such that \(7\mid n^2+n+1\).

Details
Problem: NT-B2-M12-P004
Difficulty: Level 2 of 5
Tag: Remainders
Grade: Grade 8, Grade 9
#12.5
#12.5

Second Difference

Polynomials Grade 8 Grade 9 ★★☆☆☆

For \(u_n=3n^2+2n+1\), prove that \(u_{n+1}-2u_n+u_{n-1}\) is constant, and find this constant value.

Details
Problem: NT-B2-M12-P005
Difficulty: Level 2 of 5
Tag: Polynomials
Grade: Grade 8, Grade 9
#12.6
#12.6

When \(n\mid f(n)\)

Divisibility Grade 9 Grade 10 ★★★☆☆

Let \(f\in\mathbb Z[x]\). Prove that \(n\mid f(n)\) for all positive \(n\) if and only if \(f(0)=0\).

Details
Problem: NT-B2-M12-P006
Difficulty: Level 3 of 5
Tag: Divisibility
Grade: Grade 9, Grade 10
#12.7
#12.7

Two Roots Give Two Factors

Divisibility Grade 9 Grade 10 ★★★☆☆

Let \(f\in\mathbb Z[x]\), \(f(0)=f(1)=0\). Prove that \(n(n-1)\mid f(n)\) for all integers \(n\).

Details
Problem: NT-B2-M12-P007
Difficulty: Level 3 of 5
Tag: Divisibility
Grade: Grade 9, Grade 10
#12.8
#12.8

Integer Values Without Integer Coefficients

Polynomials Grade 9 Grade 10 ★★★☆☆

Prove that \(P(n)=\frac{n(n-1)}2\) takes integer values for all integers \(n\), but \(P\notin\mathbb Z[x]\).

Details
Problem: NT-B2-M12-P008
Difficulty: Level 3 of 5
Tag: Polynomials
Grade: Grade 9, Grade 10
#12.9
#12.9

Checking by Residues

Divisibility Grade 9 Grade 10 ★★★☆☆

Let \(f\in\mathbb Z[x]\), \(m\ge1\). Prove: if \(m\mid f(r)\) for all \(r=0,1,\ldots,m-1\), then \(m\mid f(n)\) for all integers \(n\). Apply this to prove \(6\mid n^3-n\).

Details
Problem: NT-B2-M12-P009
Difficulty: Level 3 of 5
Tag: Divisibility
Grade: Grade 9, Grade 10
#12.10
#12.10

Fibonacci Periodicity

Periodicity Grade 9 Grade 10 ★★★☆☆

Let \(F_0=0\), \(F_1=1\), \(F_{n+2}=F_{n+1}+F_n\). Prove that the sequence \(F_n\) is periodic modulo every \(m\ge2\).

Details
Problem: NT-B2-M12-P010
Difficulty: Level 3 of 5
Tag: Periodicity
Grade: Grade 9, Grade 10
#12.11
#12.11

Divisibility by Index

Divisibility Grade 9 Grade 10 ★★★☆☆

Prove: if \(d\mid n\), then \(F_d\mid F_n\).

Details
Problem: NT-B2-M12-P011
Difficulty: Level 3 of 5
Tag: Divisibility
Grade: Grade 9, Grade 10
#12.12
#12.12

A Recurrence Modulo \(m\)

Periodicity Grade 9 Grade 10 ★★★☆☆

Let \(u_{n+2}=3u_{n+1}+2u_n\), where \(u_0,u_1\) are integers. Prove that the sequence \(u_n\) modulo \(m\) is eventually periodic.

Details
Problem: NT-B2-M12-P012
Difficulty: Level 3 of 5
Tag: Periodicity
Grade: Grade 9, Grade 10
#12.13
#12.13

A Polynomial Cannot Always Give Primes

Divisibility Grade 9 Grade 10 ★★★★☆

Let \(f\in\mathbb Z[x]\) be a nonconstant polynomial. Prove that it is impossible for all numbers \(f(1),f(2),f(3),\ldots\) to be positive primes.

Details
Problem: NT-B2-M12-P013
Difficulty: Level 4 of 5
Tag: Divisibility
Grade: Grade 9, Grade 10
#12.14
#12.14

Sums of Powers

Polynomials Grade 10 Grade 11 ★★★★☆

For \(k\ge1\), let \(S_k(n)=1^k+2^k+\cdots+n^k\). Prove that \(S_k(n)\) is a polynomial in \(n\) of degree \(k+1\) with rational coefficients.

Details
Problem: NT-B2-M12-P014
Difficulty: Level 4 of 5
Tag: Polynomials
Grade: Grade 10, Grade 11
Source: 1001 Problems in Classical Number Theory (method inspiration) · Problem 23
#12.15
#12.15

Composite Terms \(2^{2^n}+3\)

Modular Arithmetic Grade 10 Grade 11 ★★★★☆

Prove that the sequence \(2^{2^n}+3\), \(n=1,2,\ldots\), contains infinitely many composite numbers.

Details
Problem: NT-B2-M12-P015
Difficulty: Level 4 of 5
Tag: Modular Arithmetic
Grade: Grade 10, Grade 11
Source: 1001 Problems in Classical Number Theory (method inspiration) · Problem 355
#12.16
#12.16

A Polynomial of Given Degree with a Given Value

Polynomials Grade 9 Grade 10 ★★★★☆

Let \(N>1\), \(k>1\). Construct a polynomial \(p(x)\in\mathbb Z[x]\) of degree \(k\) and a positive integer \(m\) such that \(p(m)=N\).

Details
Problem: NT-B2-M12-P016
Difficulty: Level 4 of 5
Tag: Polynomials
Grade: Grade 9, Grade 10
Source: 1001 Problems in Classical Number Theory (method inspiration) · Problem 259
#12.17
#12.17

When \(n^2\mid f(n)\)

Divisibility Grade 10 Grade 11 ★★★★☆

Let \(f\in\mathbb Z[x]\). Prove that \(n^2\mid f(n)\) for all positive \(n\) if and only if \(f(x)=x^2g(x)\) for some \(g\in\mathbb Z[x]\).

Details
Problem: NT-B2-M12-P017
Difficulty: Level 4 of 5
Tag: Divisibility
Grade: Grade 10, Grade 11
#12.18
#12.18

Leading Coefficient of an Integer-Valued Polynomial

Polynomials Grade 10 Grade 11 ★★★★★

Let \(P(x)\) be a degree \(d\) polynomial with rational coefficients that takes integer values at every integer \(x\). Prove that \(d!\) times the leading coefficient of \(P\) is an integer.

Details
Problem: NT-B2-M12-P018
Difficulty: Level 5 of 5
Tag: Polynomials
Grade: Grade 10, Grade 11
#12.19
#12.19

GCD of Fibonacci Numbers

Divisibility Grade 10 Grade 11 ★★★★★

Prove that \(\gcd(F_m,F_n)=F_{\gcd(m,n)}\) for all positive \(m,n\), where \(F_0=0\), \(F_1=1\).

Details
Problem: NT-B2-M12-P019
Difficulty: Level 5 of 5
Tag: Divisibility
Grade: Grade 10, Grade 11
#12.20
#12.20

A Fibonacci Number Divisible by \(m\)

Divisibility Grade 10 Grade 11 ★★★★★

Prove that for every \(m\ge2\) there exists a positive \(n\) such that \(m\mid F_n\). Moreover, there are infinitely many such \(n\).

Details
Problem: NT-B2-M12-P020
Difficulty: Level 5 of 5
Tag: Divisibility
Grade: Grade 10, Grade 11

Ladders

No published ladders were found.
Previous Chapter