Algebra: advanced problems

Training stage for the Math Olympiad finals · Malignani, Udine · February 2017 · Revisited in English, 2026

Nunzio Alexandro Letizia

How this lesson works

Before we start

Seven short chapters, each with one idea and the problems it unlocks:

  1. Vieta’s formulas
  2. Sums of coefficients
  3. Polynomial interpolation
  4. Factoring over the integers
  5. Inequalities
  6. Symmetric systems: S, Q, P
  7. Conjugate roots

Solutions appear one step at a time: try each problem before moving on.

I gave this lesson in Italian in February 2017, at a training stage for students preparing the olympiad finals. The original slides are on letizia.tech/hobbies/math. This English version fixes two slips in my handwritten solutions.

Vieta’s formulas

01

Roots from coefficients

Let p(x)=x^n+a_{n-1}x^{n-1}+\dots+a_1x+a_0 be monic with roots x_1,\dots,x_n. Then

  • the sum of the roots is -a_{n-1};
  • the product of the roots is (-1)^n a_0.

If x_1,x_2 are the roots of x^2+x+1, find \dfrac{1}{x_1}+\dfrac{1}{x_2}.

No need to find the roots: \dfrac{1}{x_1}+\dfrac{1}{x_2}=\dfrac{x_1+x_2}{x_1x_2}=\dfrac{-1}{1}=-1.

Sums of coefficients

02

Evaluate at the right points

Let p(x)=(x^3+x^2+x+1)^{2017}=\sum_k a_kx^k. Compute

  1. \sum a_k, the sum of all coefficients;
  2. \sum a_{2k}, the coefficients with even index;
  3. \sum a_{3k}, the coefficients with index a multiple of 3.
  1. Set x=1: \ \sum a_k=p(1)=4^{2017}.
  2. Odd terms cancel in p(1)+p(-1): \ \sum a_{2k}=\dfrac{p(1)+p(-1)}{2}=\dfrac{4^{2017}+0}{2}=2^{4033}.

Roots of unity as a filter

  1. Let \omega=e^{2\pi i/3}, so 1+\omega+\omega^2=0. Then 1+\omega^k+\omega^{2k} is 3 when 3\mid k and 0 otherwise, so

p(1)+p(\omega)+p(\omega^2)=\sum_k a_k\left(1+\omega^k+\omega^{2k}\right)=3\sum a_{3k}

Since \omega^3=1 we get \omega^3+\omega^2+\omega+1=1, so p(\omega)=p(\omega^2)=1 and

\sum a_{3k}=\frac{4^{2017}+1+1}{3}=\frac{4^{2017}+2}{3}

The same trick solves Polynomial with Roots of Unity on the problem sheet.

Polynomial interpolation

03

One polynomial through the points

Given n+1 points with distinct x coordinates, there is exactly one polynomial of degree at most n whose graph passes through all of them.

If p has degree at most 4 and p(0)=1, p(1)=2, p(2)=5, p(3)=10, p(4)=17, then p(x)=x^2+1: it fits all five values, and it is the only one.

Drop one hypothesis

Now let p have degree 5 and integer coefficients, with the same five values as before. If p(5)>0, what is the smallest possible value of p(5)?

p(x)-(x^2+1) vanishes at 0,1,2,3,4, so

p(x)=x^2+1+a\,x(x-1)(x-2)(x-3)(x-4)

with a the leading coefficient: an integer, and nonzero because the degree is 5.

Then p(5)=26+120a. The value a=-1 gives -94, so the smallest positive value is a=1: \ p(5)=\mathbf{146}.

Fibonacci, or not

p has degree 6 and p(i)=F_i for i=1,\dots,7, where 1,1,2,3,5,8,13 are the first Fibonacci numbers. What is p(8)?

A polynomial of degree 6 has a zero 7th finite difference, so \sum_{k=0}^{7}(-1)^k\binom7k\,p(8-k)=0:

p(8)=7\cdot13-21\cdot8+35\cdot5-35\cdot3+21\cdot2-7\cdot1+1\cdot1=29

Not 21: the polynomial agrees with Fibonacci for seven terms and then leaves it.

Alternating values

p has degree 2016 and p(x)=(-1)^x for x=0,1,\dots,2016. Find p(2017).

With Lagrange’s formula, the basis polynomial for the node k evaluated at 2017 is

L_k(2017)=\prod_{j\neq k}\frac{2017-j}{k-j}=(-1)^k\binom{2017}{k}

so

p(2017)=\sum_{k=0}^{2016}(-1)^k\cdot(-1)^k\binom{2017}{k}=\sum_{k=0}^{2016}\binom{2017}{k}=2^{2017}-1

The 2014 version of this problem is on the sheet: A Triangle Polynomial.

Factoring over the integers

04

Warm-up

Factor over the integers:

  1. x^3-1
  2. x^7+x^2+1 (hint: what is its value at a cube root of unity \omega?)
  3. x^d+1 with d odd
  1. x^3-1=(x-1)(x^2+x+1).
  2. \omega^7+\omega^2+1=\omega+\omega^2+1=0, so x^2+x+1 divides it: \ x^7+x^2+1=(x^2+x+1)(x^5-x^4+x^2-x+1).
  3. -1 is a root, so x^d+1=(x+1)(x^{d-1}-x^{d-2}+\dots-x+1).

Sophie Germain’s identity

Prove that n^4+4^n is composite for every integer n>1.

If n is even, n^4+4^n is even and larger than 2. If n=2k+1 is odd, then 4^n=4\cdot(2^k)^4, and

a^4+4b^4=(a^2+2b^2)^2-(2ab)^2=(a^2+2ab+2b^2)(a^2-2ab+2b^2)

with a=n and b=2^k. The smaller factor is (n-2^k)^2+2^{2k}\geq 2^{2k}>1.

Three factorisations

Factor over the integers: \ x^8-98x^4+1, \ \ x^8+98x^4+1, \ \ 4x^4-10x^3+21x^2-10x+4.

x^8-98x^4+1=(x^4+1)^2-(10x^2)^2=(x^4+10x^2+1)(x^4-10x^2+1).

x^8+98x^4+1=(x^4+8x^2+1)^2-16x^2(x^2-1)^2, so

x^8+98x^4+1=(x^4+4x^3+8x^2-4x+1)(x^4-4x^3+8x^2+4x+1)

The last one is symmetric, so its roots come in pairs r,\frac1r. Try a factor and its mirror image: (x^2+ax+4)(4x^2+ax+1)=4x^4+5ax^3+(a^2+17)x^2+5ax+4. Then a=-2, the middle coefficient a^2+17=21 checks, and the answer is (x^2-2x+4)(4x^2-2x+1).

Inequalities

05

Cauchy-Schwarz

For real numbers a_i,b_i: \ \displaystyle\Big(\sum_i a_ib_i\Big)^2\leq\Big(\sum_i a_i^2\Big)\Big(\sum_i b_i^2\Big).

Derive the inequality between the arithmetic and quadratic means.

Take b_i=1: \ (a_1+\dots+a_n)^2\leq n\,(a_1^2+\dots+a_n^2), that is \dfrac{a_1+\dots+a_n}{n}\leq\sqrt{\dfrac{a_1^2+\dots+a_n^2}{n}}.

A factorial bound

Prove that 2^n\,n!\leq(n+1)^n for every n\geq1.

AM-GM on 1,2,\dots,n: \ \dfrac{n+1}{2}=\dfrac{1+2+\dots+n}{n}\geq\sqrt[n]{n!}. Raise to the n-th power.

A long product

Prove that \dfrac{1}{15}<\dfrac12\cdot\dfrac34\cdots\dfrac{99}{100}<\dfrac{1}{10}.

Call the product A. Shifting each fraction gives B=\frac23\cdot\frac45\cdots\frac{100}{101}>A and C=\frac12\cdot\frac23\cdot\frac45\cdots\frac{98}{99}<A. Both products telescope with A: AB=\frac{1}{101} and AC=\frac{1}{200}. So A^2<\frac{1}{101}<\frac{1}{100} and A^2>\frac{1}{200}>\frac{1}{225}.

A trigonometric substitution

If a,b,c>0 and a+b+c=abc, prove that \displaystyle\frac{1}{\sqrt{1+a^2}}+\frac{1}{\sqrt{1+b^2}}+\frac{1}{\sqrt{1+c^2}}\leq\frac32.

Set a=\tan\alpha, b=\tan\beta, c=\tan\gamma with angles in (0,\frac\pi2). The condition becomes \alpha+\beta+\gamma=\pi and each term becomes a cosine, so we need \cos\alpha+\cos\beta+\cos\gamma\leq\frac32: Jensen, since cosine is concave on [0,\frac\pi2].

Full solution on the sheet: Trigonometric Inequality.

Symmetric systems

06

S, Q, P

Solve \ a+b=1,\ a^4+b^4=17.

With S=a+b=1 and P=ab: \ a^4+b^4=(S^2-2P)^2-2P^2=2P^2-4P+1=17, so P=4 or P=-2. Then a,b are the roots of t^2-t+P: P=-2 gives (2,-1) and (-1,2); P=4 gives the complex pair \frac{1\pm i\sqrt{15}}{2}.

If a+b+c=1, a^2+b^2+c^2=7 and a^3+b^3+c^3=13, find a^4+b^4+c^4.

S=1; \ S^2-2Q=7 gives Q=-3; \ S(S^2-3Q)+3P=13 gives P=1. Newton’s identity: \ a^4+b^4+c^4=S\cdot13-Q\cdot7+P\cdot1=13+21+1=\mathbf{35}.

Conjugate roots

07

Power sums are integers

Let x_1,x_2 be the roots of x^2-x-1. Prove that x_1^n+x_2^n is an integer for every n.

Let s_n=x_1^n+x_2^n. Since each root satisfies x^2=x+1, \ s_n=s_{n-1}+s_{n-2}, starting from s_0=2 and s_1=1: integers forever.

The same idea, with a nearest-integer twist: Golden Ratio Series.

Cesenatico 2011

Let x be the positive root of x^2-29x-10=0. What are the last two digits of \lfloor x^{2011}\rfloor?

The other root y=\frac{29-\sqrt{881}}{2}\approx-0.34 is small. With a_n=x^n+y^n we get a_n=29a_{n-1}+10a_{n-2}, a_0=2, a_1=29: integers. For odd n, y^n is a small negative number, so x^n=a_n+|y|^n and \lfloor x^{2011}\rfloor=a_{2011}.

Modulo 100: \ 29,61,59,21,99,81,39,41,79,1,19,61,59,\dots From a_2 on, the residues repeat every 10 steps, so a_{2011}\equiv a_{11}\equiv\mathbf{19}.

Where to go next

Nunzio Alexandro Letizia · letizia.tech