Polynomials in The AIME
Polynomials in The AIME
Polynomials in The AIME
Author:
For:
naman12
AoPS
freeman66
Date:
May 13, 2020
0
−8 −6 −4 −2 0 2 4 6 8
−2
−4
−6
−8
Contents
0 Acknowledgements 3
1 Introduction 4
2 Roots 4
3 Vietas 10
4 Symmetric Polynomials 13
5 Complex Numbers 16
5.1 Direct Applications to Polynomials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.2 Polar Complex Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
10 Hints 36
2
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
§0 Acknowledgements
This was made for the Art of Problem Solving Community out there! We would like to thank Evan Chen for his
evan.sty code. In addition, all problems in the handout were either copied from the Art of Problem Solving
Wiki or made by ourselves. Finally, we would like to finally thank jsharmz for countless hours of proofreading
and correcting us for all of our silly mistakes.
Art of Problem Solving Community - Specific shout out to members of Professor-Mom’s Beginner AIME Forum
and FIREDRAGONMATH16’s Intermediate Algebra Forum
A friend of naman12’s, who spent a lot of time to make sure we weren’t making trivial mistakes.
3
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
§1 Introduction
Problems in polynomials come in all different flavors. Approximately once a year (AIME I and AIME II), there is
a polynomial problem. It’s not like the problem is very trivial: here’s the fish we are trying to chase:
This is definitely polynomial problem, and trying to solve it isn’t exactly trivial, as seen after a few minutes of
attempting this. Another problem is as follows:
x2 y2 z2 w2
+ + + =1
22 − 1 22 − 32 22 − 52 22 − 72
x2 y2 z2 w2
+ 2 + 2 + 2 =1
42 − 1 4 − 32 4 − 52 4 − 72
x2 y2 z2 w2
+ 2 + 2 + 2 =1
62 − 1 6 − 32 6 − 52 6 − 72
x2 y2 z2 w2
+ 2 + 2 + 2 =1
82 − 1 8 − 32 8 − 52 8 − 72
Do you see a polynomial here? Well, technically yes, but not what we’ve normally seen. So how can we relate
this to what we’ve seen before? We’ll see in the following sections.
A word of advice for those who intend to follow this document: almost all problems are from the AIME; a few
HMMT and USA(J)MO problems might be scattered in, but remember we go into a fair amount of depth here.
The Appendix A: Proof of Results contains very technical results that are only included for completion, but
don’t need to be understood. Appendix B: Polynomial Division contains information on polynomial division
that could be useful. Appendix C: Real Roots talks about some strategies used to find roots (not just rational)!
Most of these start basic, but quickly jump to advanced techniques and uses.
And do you have questions, comments, concerns, issues, or suggestions? Here are two ways to contact me:
1. Send an email to realnaman12@gmail.com and I should get back to you (unless I am incorporating your
suggestion into the document, when it might take a bit more time).
2. Send a private message to naman12 by either clicking the button that says PM or by going here and
clicking New Message and typing naman12.
Please include something related to Polynomial AIME Handout in the subject line so I know what you are
talking about.
§2 Roots
We start this section with one of the most important theorems (arguably) in algebra:
4
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Remark 2.2. The proof is given at the end. Don’t look at it unless you believe you can handle it!
Remark 2.3. n (the highest power x is raised to in f (x)) is called the degree of f and denoted as deg f .
Exercise 2.4. Show that deg(f · g) = deg f + deg g and deg(f + g) ≤ max(deg f, deg g). This is an
important exercise. Hints: 27
Now, this looks pretty naive, but we can use polynomial division (see Appendix B: Polynomial Division for more
details) repeatedly to get the following corollary:
Sketch of Proof. Induct on the degree of f , with n = 1 being trivial and use the Fundamental Theorem of
Algebra to reduce it to the case of n − 1.
Remark 2.6. Note that the roots need not be distinct. For example, the polynomial x2 − 2x + 1 = 0 has roots 1, 1,
which are the same.
Now, how does this help? It’s really useful in the next problem.
Proof. Assume that the roots of f (x) were r1 , r2 , . . . , rn (by Number of Roots Corollary), then we consider
g(x) = an (x − r1 )(x − r2 ) · · · (x − rn )
Then, consider f (x) − g(x). The terms of degree n cancel, so deg f − g is at most n − 1. However, r1 , r2 , . . . , rn
are roots of both f and g (the second because of the Zero Product Property). Thus, we get that f − g has n
roots, so by Zero Polynomial Corollary, f (x) − g(x) = 0, so f (x) = g(x).
5
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Remark 2.9. For those of you who know what a UFD is, this is proving that C[x] is a UFD. We haven’t shown it is
a domain yet, but the underlying idea is this.
Thus, we get that for all roots r of f (x), x − r is a factor of f (x) by the unique factorization of polynomials.
Thus, we get this useful theorem by using the fact f (r) = 0 for all roots:
The factor theorem is a special case by taking r as a root, so f (r) = 0, and so as the remainder is 0, it is divisible
by x − r. This doesn’t exactly relate to roots, but is still helpful. Let’s see an example in action:
g(x) = x3 + ax2 + x + 10
has three distinct roots, and each root of g(x) is also a root of the polynomial
What is f (1)?
Solution. Let’s see how to approach this. We get by the Factor Theorem, g(x) = (x − a)(x − b)(x − c) (as there
can not be any more roots by Zero Polynomial Corollary), and f (x) is divisible by x − a, x − b, x − c. Thus, f (x)
is divisible by their product, and in particular,
f (x) = g(x)h(x)
for some other polynomial h(x). So now, we need to find f (1), which seems pretty daunting. However, we can
try to extract more information from h(x). What’s the degree? Well, we have that if the degree of h(x) is d,
then g(x) has 3 roots and h(x) has d roots, so then f (x) has 3 + d roots. But we know f (x) has degree 4, so
3 + d = 4! Thus, we can write h(x) = x + r for some unknown root. Then, we get that
100 − (10 + r) = 0
6
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
so r = 90. Then, we get that a = −89. Now, we know g(x) = x3 − 89x2 + x + 10. Do we use that to find roots?
Well, we have no good way. Let’s try our idea of computing coefficients in (*); the coefficient of x2 is
b − (ar + 1) = 0
Remark 2.13. When the problem gets too big, try to take a step back and look at it from a different perspective.
Most of the time, if you have some substansial progress, start to work backwards.
We need to find f (1). That’s the same as g(1)h(1). Do we know g(1)? Well, we get
g(1) = 1 + a + 1 + 10 = 1 − 89 + 1 + 10 = −77,
h(1) = 1 + r = 1 + 90 = 91,
so
f (1) = g(1)h(1) = −77 · 91 = −7007 .
Remark 2.14. A question that may arise: how did we know that h(x) was in the form of x + r and not 2(x + r)?
The answer is once again to use (*) and the fact that if the coefficient of x4 (leading term) was k, then 1 − k = 0, so
k = 1. This is a small detaIl I glossed over; make sure you understand why this is valid.
Remark 2.15. So what if we didn’t notice that f (1) = g(1)h(1)? We can still find b and c, right? We can compute
b = ar + 1 = −89 · 90 + 1 = −8009
as well.
So our first remark showed us an important point - polynomials can have the exact same set of roots because
of the leading coefficient can vary while the roots are the same - something I talked above in the first remark.
For example, we can take f (x) = (x − 1)(x − 2) and g(x) = 2(x − 1)(x − 2), which are obviously not the same
polynomial, but the roots of both are 1, 2. Make sure you don’t forget this!
Our first problem – solved. And don’t think it’s easy - it is one of the harder problems on an AMC 12. I’ll leave
you with a few exercises:
7
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Exercise 2.16 (2018 AIME I Problem 1). Let S be the number of ordered pairs of integers (a, b) with
1 ≤ a ≤ 100 and b ≥ 0 such that the polynomial x2 + ax + b can be factored into the product of two (not
necessarily distinct) linear factors with integer coefficients. Find the remainder when S is divided by 1000.
Hints: 71
Exercise 2.17 (2007 AIME I Problem 8). The polynomial P (x) is cubic. What is the largest value of k for
which the polynomials Q1 (x) = x2 + (k − 29)x − k and Q2 (x) = 2x2 + (2k − 43)x + k are both factors of
P (x)? Hints: 57
Exercise 2.18. Let N be the number of complex numbersa z with the properties that |z| = 1 and z 6! − z 5!
is a real number. Find the remainder when N is divided by 1000. Hints: 50
a
See Complex Numbers for more information. The only pieces of information you will need: z is a root if and only if z is
needed, and for zz = |z|2 .
Now, let’s look at a theorem that is very useful when dealing with polynomials:
Sketch of Proof. Plug it in and multiply by q n . Rearranging and factoring gives −a0 q n = p(a1 q n−1 + a2 pq n−2 +
· · · + an pn−1 ). The left hand side is an integer and so is the second part of the right hand side, so we get p | a0 q n .
Because p and q are relatively prime, p | a0 . A similar result follows by isolating the term −an pn for q | an .
But what does this mean? Well, we can find all rational roots as follows1 : take the leading coefficient (say a)
and take the constant term (or the last term) (say b). Then, we get that if pq is a root, p has to divide b and
q has to divide a. This helps a lot as it gives an algorithm to give a (possibly long) list of solutions (that are
rational). Let’s look at this example:
(a) Write all factors of our leading coefficient (positive and negative).
(c) Consider the following: do we need to write all negative factors for part (b)?
1
Keep a watch; not all roots are rational - they can also be irrational or complex. In addition, not all of these roots are definitely
roots of the polynomial - they are all possible roots.
8
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Doing the rational root theorem is pretty tedious, so we can use this with polynomial division in Appendix B:
Polynomial Division For now, let us proceed with the following AIME problem:
Solution. At first look, where are the polynomials? We’ll need to manipulate our original condition. We can
exponentiate to get
24 cos x = (24 sin x)3/2
Squaring, we get
(24 sin x)3 = (24 cos x)2
Now what? Well, we know from trigonometry2 sin2 x + cos2 x = 1, so we can substitute to get
p
(24 1 − sin2 x)2 = (24 sin x)3
so expanding and dividing by 242 , we get
1 − sin2 x = 24 sin3 x
Now, take y = sin x, then we get
1 − y 2 = 24y 3
Rearranging, we get
24y 3 + y 2 − 1 = 0
Here’s where the Rational Root Theorem comes in handy: we use it and check that y = 13 is a root. Now, this
means that y − 31 is a factor. However, this is not very nice - however we can multiply by 3 (see my earlier
remark on leading coefficients) to rid of fraction to get 3y − 1 divides our previous polynomial, so sin x satisfies
(3y − 1)(8y 2 + 3y + 1) = 24y 3 + y 2 − 1 = 0
But the quadratic factor has no real roots3 ! So y = sin x = 13 . And then, we get because cos2 x + sin2 x = 1
√ √
(the standard Pythagorean identity) and cos x > 0, cos x = 2 3 2 . This gives cot x = cos
sin
x
x = 8, so our answer is
√ 2
24 cot2 x = 24 · 8 = 24 · 8 = 192 .
Remark 2.22. Even if a problem doesn’t have a polynomial, it’s possible that it was intended to be a polynomial
problem.
Exercise 2.23 (2018 AIME II Problem 6). A real number a is chosen randomly and uniformly from the
interval [−20, 18]. The probability that the roots of the polynomial x4 + 2ax3 + (2a − 2)x2 + (−4a + 3)x − 2
m
are all real can be written in the form , where m and n are relatively prime positive integers. Find m + n.
n
Hints: 47
Exercise 2.24 (1988 Canadian Mathematical Olympiad Problem 1). For what real values of k do 1988x2 +
kx + 8891 and 8891x2 + kx + 1988 have a common zero? Hints: 35
2
See the trigonometry handout for more information.
3
This can be checked by taking the discriminant of the quadratic.
√ In general, for a quadratic ax2 + bx + c, if it has (any) real roots,
we can use the quadratic formula to get that the term b − 4ac has to indeed be a real number, so b2 − 4ac ≥ 0 and b2 ≥ 4ac.
2
§3 Vietas
Vieta’s Formulas are a set of formulas that relate the roots of a polynomial to the coefficients of the polynomial.
Call the symmetric sum of the numbers k1 , k2 , . . . , km taking p at a time as4
X
σp = ka1 ka2 · · · kap
1≤a1 <a2 <...<ap ≤m
Remark 3.1. Don’t let fancy notation scare you! It normally is easier if you break the given equation down.
a1 , a2 , . . . , ar , what do they mean? Well, as this is a handout, I have5 to include the formal definition of everything
- which can get a bit tedious, and a bit of an eyesore. However, we can take a look at this.
Example 3.2
Find the symmetric sum of just one number k taking one at a time.
Solution. Isn’t this just k? Think about it. If we are choosing numbers 1 ≤ a1 ≤ 1, we have to have a1 = 1.
Easily, this means that σ1 = k.
Looking at the footnote above, there isn’t much else to do for one number. Let’s take two numbers:
Example 3.3
Find the symmetric sum of just two numbers k1 , k2 taking one and two at a time.
Solution. Well, let’s first tackle taking them one at a time. Well, we get that 1 ≤ a1 ≤ 2, so we have two choices:
a1 = 1 or a2 = 2. So σ1 = k1 + k2 .
Now, if we’re taking two at a time, we get that 1 ≤ a1 < a2 ≤ 2, so a1 = 1 and a2 = 2. Thus, σ2 = k1 k2 .
Exercise 3.4. Can you find what the symmetric sum of three numbers k1 , k2 , k3 are taking one, two, and
three at a time? Hints: 67
Exercise 3.5. Try expanding (x − k1 ), (x − k1 )(x − k2 ), and (x − k1 )(x − k2 )(x − k3 ). Do the results seem
familiar? Hints: 26
Now, we look at the following theorem that showcases the main idea of this section.
4
Technically, we define alternative values for p > m and p ≤ 0. See Newton’s Formulas (just the statement of the theorem) for more
details.
5
Well, not have, but should, at some point.
10
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Sketch of Proof. Just take the expansion of f (x) as cn (x − r1 )(x − r2 ) · · · (x − rn ). We choose cn so that the
leading coefficients of f (x) (in the expanded form and factored form) match. To find σk , look at the coefficient
of xn−k . On one hand, in the expanded form, it’s obviously cn−k . However, now consider how many x’s you will
need from (x − r1 )(x − r2 ) · · · (x − rn ) in the factored form. Then, see how many −rj ’s you can choose, as these
will be from the factors we didn’t choose an x from. Show that this sum is just (−1)k c0 σk .
Now, how do these help? Let’s look at an application:
Solution. Well, let’s see what happens if we try to pseudo-expand it. But first we need the following well-known
theorem:
That’s a simple answer. Is there another way to get this answer? Here is a hint: note that if x is a root, so is
1
2 − x. I leave the rest as an exercise:
Exercise 3.10 (AIME I 2001/3). Solve AIME I 2001/3 with the above method. Hints: 16
Exercise 3.12 (2014 AIME I Problem 5). Real numbers r and s are roots of p(x) = x3 + ax + b, and r + 4
and s − 3 are roots of q(x) = x3 + ax + b + 240. Find the sum of all possible values of |b|. Hints: 31
11
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Solution. Now, at first, this looks daunting. But let’s write down what we know and what we want to find. We
have by Vieta’s that
a + b + c = −3
ab + bc + ac = 4
abc = 11
and we want to find
That doesn’t look too nice, right? In the next section, we’ll see how to deal with this. However, we can try
something else. Let’s look at each of our terms in (a + b)(b + c)(c + a). We know a + b + c = −3, so a + b = −3 − c.
That’s pretty nice. We can then rewrite t (after cancelling out negative signs) as:
t = (3 + c)(3 + b)(3 + a)
which expands to
t = 27 + 9(a + b + c) + 3(ab + bc + ac) + abc = 23 .
Now, that looks a lot like something we’ve seen before - 27, 9, 3, and 1. So let’s see if there is a shorter way to
get this solution. We get that
t = −(−3 − c)(−3 − b)(−3 − a)
Let’s replace −3 with k, to make it look more symmetric. We get
Wait. By Factor Theorem, we have k 3 + 3k 2 + 4k − 11 = f (k) = (k − a)(k − b)(k − c). That’s interesting. We get
t = −f (k) = −f (−3) = 23 .
So there does exist a nice solution! This shows that there typically is a nice solution to most AIME Prob-
lems.
Exercise 3.14 (2005 AIME I Problem 8). The equation 2333x−2 + 2111x+2 = 2222x+1 + 1 has three real
roots. Given that their sum is m
n where m and n are relatively prime positive integers, find m + n. Hints: 44
Exercise 3.15 (1993 AIME Problem 5). Let P0 (x) = x3 + 313x2 − 77x − 8 . For integers n ≥ 1 , define
Pn (x) = Pn−1 (x − n) . What is the coefficient of x in P20 (x) ? Hints: 60
Exercise 3.16 (2008 AIME II Problem 7). Let r, s, and t be the three roots of the equation
12
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
§4 Symmetric Polynomials
We actually are going to go expand something from last section. Remember Vieta’s Formulas? Turns out, we
are going to use the same notation for σk .
Exercise 4.4. Show that x21 + x22 + · · · + x2n = σ12 − 2σ2 . Hints: 40
Now, the proof is once again given in the appendix. But this doesn’t tell us much - as an analogy, the theorem
tells us there is another planet outside of Earth, but not how to find it6 , where to find it, and anything about it.
Now, that does make sense. There are basically infinitely many symmetric polynomials - we can’t have all of them.
But, there are quite a few that appear very frequently, and these are given in the following relation:
Proof. We can write this as the sum/product of a bunch of symmetric polynomials as guaranteed by the
Fundamental Theorem of Symmetric Polynomials. Suppose that x1 , x2 , . . . , xn were the roots of P (x). We use
Vieta’s Formulas to get
k
(−1)j σk−j xji
X
P (x) =
k=0
Now, We have the following claim:
6
The clever Mr. Quines pointed out that the proof does give a greedy algorithm to find it, so more fun to the reader!
13
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
P (x)xn−k
and applying Claim 2.5 (as the zeroes contribute nothing). Now, to prove the other side, we just consider
where P (x) = an xn + an−1 xn−1 + · · · + a0 . From this, we can use the Claim on g(x).
This is the slickest proof I actually know. It’s pretty short. Let’s see if you got a hang of this:
Exercise 4.7. Find ρ1 , ρ2 , ρ3 , only in terms of σ1 , σ2 , σ3 (no ρ1 , ρ2 , ρ3 ). Compare your answer for ρ2 to
your answer to Exercise 4.4. Hints: 43
Where do these come up in the AIME? Correction: where do these not come up in the AIME? Let’s look at the
following example:
Solution. Now, we will use the result of Exercise 4.7. We get that
7 = ρ2 = σ12 − 2σ2
σ12 − 7
σ2 =
2
so substituting this into the second equation, we get
2
−σ13 + 21σ12
3 σ1 − 7
10 = σ1 − 3σ1 =
2 2
so σ13 − 21σ12 + 20 = 0. Using the Rational Root Theorem, we get that the solutions are σ1 = 1, 4, −5, so the
maximum value is 4 .
14
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Exercise 4.9. Find the values of σ2 for each value of AIME 1983/5. Are you glad we didn’t find the values
of x and y? Hints: 39
Exercise 4.10 (2019 AIME I Problem 8). Let x be a real number such that sin10 x + cos10 x = 11 36 . Then
sin12 x + cos12 x = m
n where m and n are relatively prime positive integers. Find m + n. Hints: 80
Solution. Although this is Newton’s Sums, we don’t bash. So, we note that we need to find
ρ6 − ρ5 − ρ3 − ρ2 − ρ1
Now, we can use our knowledge of Newton’s Sums. We get from Newton’s Formulas,
ρ6 − ρ5 − ρ4 − ρ2 = 0
so thus, we can reduce what we want to find (by subtracting the equations) to
ρ4 − ρ3 − ρ1
Similarly from Newton’s Formulas, we get
ρ4 − ρ3 − ρ2 − 4 = 0
so we need to find
ρ2 − ρ1 + 4
Now, we note that
ρ1 = σ1 = 1
and
ρ2 = σ12 − 2σ2 = 12 − 2(−1) = 3
Thus, our desired answer is
ρ2 − ρ1 + 4 = 6
So don’t rip in blindly, make manipulations and then finish off the problem with little computation.
Exercise 4.12 (2015 AIME II Problem 14). Let x and y be real numbers satisfying x4 y 5 + y 4 x5 = 810 and
x3 y 6 + y 3 x6 = 945. Evaluate 2x3 + (xy)3 + 2y 3 . Hints: 10
Exercise 4.13 (1973 USAMO Problem 4). Determine all the roots, real or complex, of the system of
simultaneous equations
x+y+z =3
x2 + y 2 + z 2 = 3
x3 + y 3 + z 3 = 3
Hints: 1
15
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
I know the last one is technically a USAMO problem, but it’s easier than the other AIME Problem. Finally, I
would like to write down four commonly seen factorizations (last one due to AoPS user dchenmathcounts, and is
known as the Sophie Germain Identity):
§5 Complex Numbers
So, what happens if we try to do √
−1
We shall define the two solutions to this ±i. We also note that7
√
x = −1 ⇐⇒ x2 = −1 ⇐⇒ x2 + 1 = 0
x2 + 1 = (x − i)(x + i)
i is called the imaginary unit. What happens if we add a real number and an imaginary unit (like 5i)? Well,
this gets to
z = a + bi
But what do we call it? We call it the following:
Definition 5.1 (Complex Number) — A complex number z = a + bi (for real a and b) is the sum of a
real number and imaginary number.
Note that all real numbers and pure imaginary numbers are also complex. Now, what happens when we add?
We consider
z = a + bi, w = c + di
Then, we get
where we used the associativity of addition (we add the imaginary and real numbers separately). What about
multiplication? It’s slightly different (using the distributive property):
(a + bi)(c + di) = a(c + di) + bi(c + di) = ac + adi + bci + bdi2 = ac + adi + bci − bd = (ac − bd) + (ad + bc)i
Note we brought our answer in the form x + yi, which is pretty normal to do. Similarly, we can define division
and subtraction. Now, we come to one of the most important definitions:
Definition 5.2 (Conjugate) — The conjugate of the complex number z = a + bi is denoted as z and has
value a − bi.
Example 5.3
Suppose z = a + bi. Find zz.
we have
1 a − bi
= 2
a + bi a + b2
Also try to verify the following:
Exercise 5.6. Prove that z n = z n . Hints: 54se Conjugate Multiplication (a.k.a the previous exercise).
Now, what happens when we imagine plotting complex numbers on a plane? We can do that and indeed define
this plane as the Argand Plane, while the one in which we plot (x, y) is the Cartesian Plane. These planes are
essentially identical except for one key caveat - the Cartesian Plane plots x versus y while the Argand Plane
plots Re(z) versus Im(z). We can define the following:
√
Remark 5.10. This can be seen (by the Pythagorean Theorem) as a2 + b2 , where z can be put in the Cartesian
Plane as (a, b).
Exercise 5.12 (Real Number Conjugate). Consider a real number r. Then r = r. Hints: 20
17
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Proof. Take a polynomial P (x) = an xn + an−1 xn−1 + · · · + a0 such that z is a root. Then, we get this means
0 = P (z) = an z n + an−1 z n−1 + · · · + a0
Now, what can we do? Well, one thing we can do is to take the conjugate. We get
0 = 0 = an z n + an−1 z n−1 + · · · + a0
Now, we can use Conjugate Addition to get
0 = an z n + an−1 z n−1 + · · · + a0
Now, we can use Conjugate Multiplication to get
0 = an (z)n + an−1 (z)n−1 + · · · + a0
Finally, as a0 , a1 , . . . , an are real numbers, we can use Real Number Conjugate to get
0 = an (z)n + an−1 (z)n−1 + · · · + a0 = P (z)
so z is a root. The “if” part can be resolved as z = z.
Let’s see an application:
Remark 5.15. z and w are commonly used for complex numbers (as opposed to x and y, which are for real variables).
We note that
w + w = 2p
is a real number, and so is z + z. Thus, we get that either w + z or w + z = 3 + 4i. By symmetry, it doesn’t
matter, so we assume w + z = 3 + 4i. Then, we get
w + z = w + z = 3 − 4i.
In addition, we get
w · z = 13 + i,
so thus it’s conjugate is
wz = w · z = 13 − i.
Now, let’s look at what we want to find. By Vieta’s, we know that
b = zw + zz + zw + wz + ww + wz = 26 + (zz + zw + wz + ww)
But how to finish? We know z + w, so let’s see is we can factor the last term. Aha!
zz + zw + wz + ww = (z + w)(z + w) = (3 + 4i)(3 − 4i) = |3 + 4i|2 = 32 + 42 = 25
So we finish by getting
b = 26 + 25 = 51 .
Exercise 5.16 (2013 AIME I Problem 13). There are nonzero integers a, b, r, and s such that the complex
number r + si is a zero of the polynomial P (x) = x3 − ax2 + bx − 65. For each possible combination of a
and b, let pa,b be the sum of the zeros of P (x). Find the sum of the pa,b ’s for all possible combinations of a
and b. Hints: 14
Exercise 5.17 (2013 AIME II Problem 12). Let S be the set of all polynomials of the form z 3 + az 2 + bz + c,
where a, b, and c are integers. Find the number of polynomials in S such that each of its roots z satisfies
either |z| = 20 or |z| = 13. Hints: 51
150◦ 30◦
165◦ 15◦
180◦ 0◦
1 2 3 4 5 6 7
195◦ 345◦
210◦ 330◦
225◦ 315◦
240◦ 300◦
255◦ 270◦ 285◦
We note that we can scale a complex number to another complex number with magnitude 1 (by dividing by
|z|). Then, we get that if
z = a + bi, a2 + b2 = 1,
we can substitute (a, b) = (cos θ, sin θ). Thus,
z z
= = cos θ + i sin θ
|z| r
so we can scale up to get
z = r(cos θ + i sin θ)
19
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
This is the polar form of a complex numbers (while previously we had the rectangular form a + bi). From this
eloquent form, we have the following formula:
Sketch of Proof. We can induct on n. When n = 1, the result is immediate. Otherwise, we have
cos((n − 1)θ) cos θ − sin(n − 1)θ sin θ + i(sin((n − 1)θ) cos θ + sin θ cos((n − 1)θ))
(cos θ + i sin θ)n = (cos θ + i sin θ)n−1 (cos θ + i sin θ) = (cos(n − 1)θ + i sin(n − 1)θ)(cos θ + i sin θ)
This is considered one of the most beautiful results in mathematics, especially when θ = π.
Remark 5.20. Actually, we “define” i = (1, π2 ) (as if we were plotting on a complex plane), but this is completely
arbitrary, as we could have chosen i = (1, 3π
2 ). This doesn’t matter too much, but it is pretty important in the terms
of complex numbers. It simplifies numbers a lot.
This theorem helps a lot. We can take another look at the proof of De Moivre’s Theorem using Euler’s
Formula:
8
See the trigonometry handout.
20
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Now, let’s consider the polynomial z n = 1, for some complex number z. First, let’s find |z|. We get that |z|n = 1,
so |z| = 1 (as |z| is a distance, so it is nonnegative and real). Now, we can write
Thus, this means that as there as n distinct values of θ for k = 0, 1, . . . , n − 1 (note that beyond this it repeats),
we get by the Fundamental Theorem of Algebra that these are the only (distinct, remember that we can keep
looping around the circle!) solutions. These are called the nth roots of unity:
Definition 5.24 (Roots of Unity) — The nth roots of unity are roots of z n = 1.
Exercise 5.25. Find the third and fourth roots of unity. Hints: 72
Exercise 5.26. Show that 31 | 531 + 517 + 1 (or 31 divides 531 + 517 + 1). 79
We can plot all of these roots of unity and also all other points z with |z| = 1. We get something like the
following graph:
Imaginary
θ
Real
21
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
The roots of unity actually do something more than expected - they form a regular polygon:
Imaginary
Real
Remark 5.27. Figuring out why exactly this is a regular pentagon is simple - because the idea is easy to see, I will
leave this as an exercise. Think about the angles between the roots of unity - more accurately, how are they spaced?
Solution. We note that it’s obvious that these (the zj ’s) aren’t roots of unity - we have to divide z by 236 to get
one. Let 8xk = zk for each k; we thus get that
x12
k − 1 = 0,
so thus
2πk 2πk πk πk
xk = cos + i sin = cos + i sin
12 12 6 6
π
Now, we note that multiplying by i adds to the imaginary part, so thus we get that
2
(3 + k)π (3 + k)π
ixk = cos + i sin
6 6
We don’t care about the imaginary part, so let’s drop it. Then, we get (by√manually plugging in the numbers - I
won’t do it here) that the sum of our desired xk has maximum value 2 + 2 3. However, we still have to multiply
by 8 to get our answer as
√ √ √
m + n = 16 + 16 3 = 16 + 768 =⇒ m + n = 16 + 768 = 784 .
22
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Exercise 5.30 (2019 AIME II Problem √ 8). The polynomial f (z) = az 2018 + bz 2017 + cz 2016 has real
√
coefficients not exceeding 2019, and f 1+2 3i = 2015 + 2019 3i. Find the remainder when f (1) is divided
by 1000. Hints: 24
Exercise 5.31 (1996 AIME Problem 11). Let P be the product of the roots of z 6 + z 4 + z 3 + z 2 + 1 = 0
that have a positive imaginary part, and suppose that P = r(cos θ◦ + i sin θ◦ ), where 0 < r and 0 ≤ θ < 360.
Find θ. Hints: 69
Sketch of Proof. Try to expand P (x) = cn xn + cn−1 xn1 + · · · + c0 . Then, substitute a and b, and use the
factorization:
k−1
!
X
ak − bk = (a − b) ai bk−i = (a − b)(ak−1 + ak−2 b + · · · + abk−2 + bk−1 )
i=0
Looking at Difference of Polynomials, we get that it isn’t too deep - how will this help us? Well, let’s take a look
at this problem:
Remark 6.3. One non-rigorous way to prove this is that we take P (x) as a quadratic. It isn’t 100% rigorous though.
So, this is the number theory section. Let’s try to see what we know - we do know that
P (n1 ) = n1 + 3
We’ll only focus on n1 , get two solutions, and then use one as n1 and the other as n2 . Well, the only thing I can
think of to induce Difference of Polynomials is to take the difference:
n1 − k | P (n1 ) − P (k) = n1 + 3 − P (k)
23
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
We only know 3 values of P (k) (that are not n1 ) - k = n2 , 17, 24. We can plug them all in
n1 − n2 | n1 + 3 − (n2 + 3) = n1 − n2
n1 − 17 | n1 + 3 − 10 = n1 − 7
n1 − 24 | n1 + 3 − 17 = n1 − 14
The first is useless. The second and third give the numbers
n1 − 7 n1 − 14
,
n1 − 17 n1 − 24
are integers. There’s an n1 in the numerator and denominator in each of them, so we can rewrite the fractions as
n1 − 7 n1 − 7 n1 − 17 10
= − +1= +1
n1 − 17 n1 − 17 n1 − 17 n1 − 17
n1 − 14 n1 − 14 n1 − 24 10
= − +1= +1
n1 − 24 n1 − 24 n1 − 24 n1 − 24
Wow, so we get n1 − 17, n1 − 24 | 10. So we have two divisors of 10 that differ by n1 − 17 − (n1 − 24) = 24 − 17 = 7.
We can list them out - there are only 8:
and easily find the only such ones are {2, −5}, {−2, 5}. Thus, we get that either n1 − 17 = 2 or n1 − 17 = 5, so
n1 = 19, 22. By what we mentioned above, it’s easy to see that n2 = 19, 22, so
n1 · n2 = 19 · 22 = 418 .
So this problem showed us that polynomial problems also can be solved with some Number Theory. For fun,
however, solve the following parody of the AIME problem. Don’t solve it with number theory - use Zero
Polynomial Corollary to explicitly find P (x) and then solve it:
Exercise 6.4 (Parody of 2005 AIME II Problem 13). Let P (x) be a monica quadraticb polynomial with
integer coefficients that satisfies P (17) = 10 and P (24) = 17. Given that P (n) = n + 3 has two distinct
integer solutions n1 and n2 , find the product n1 · n2 . Hints: 53
The problem is that there aren’t many problems on this topic. Here’s a problem I made:
Exercise 6.5. Consider a polynomial f (x) with integer coefficients such that for any integer n > 0, f (n)−f (0)
is a multiple of the sum of the first n positive integers. Find the minimum value of f (2020) − f (0), given
that f (n + 1) > f (n) for all positive integers n. Hints: 45
a
This means the leading coefficient is 1.
b
This means the degree is 2.
Sometimes, when we are working with σk (see Vieta’s Formulas) for small numbers, we will need to do a
24
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
bunch of manipulations. It isn’t very easy to go back to Newton’s Formulas every time, so here is a list for
3 variables (we get 2 variables is too easy, four variables is uncommon), due to freeman66. This list is not
exhaustive, but it includes almost everything seen in an AIME setting. Also note that he uses the shorthand
u = σ1 , v = σ2 , w = σ3 .
1. a2 + b2 + c2 = u2 − 2v
Solution.
2. a3 + b3 + c3 = u(u2 − 3v) + 3w
3. a2 b2 + b2 c2 + c2 a2 = v 2 − 2uw
5. (a + b)(b + c)(c + a) = uv − w
P
6. ab(a + b) = uv − 3w
cyc
7. (1 + a)(1 + b)(1 + c) = 1 + u + v + w
P
8. (1 + a)(1 + b) = 3 + 2u + v
cyc
(1 + a2 ) = u2 + v 2 + w2 − 2uw − 2v + 1
P
9.
cyc
I do suggest you go through these again to check that these are actually true. But let’s see some uses of these
manipulations. Most of them are AIME-like (suggested to me by ab xy123) and require clever insights of different
theorems to solve the problem:
This problem looks pretty hard - how are we going to solve it? Well, what is something that makes
1 1
x, , x +
x x
all look nice? I know that the only integer x such that x1 is also an integer is ±1. We can try plugging in x = 1.
We get
f (1 + 1) = f (1) + f (1)
We can use the polynomial to get
which gives b = 2. That’s a good start, but how do we find a? Well, let’s look at the problem. It says all roots
are integers. So what does this remind me of? Personally, I go back to the Rational Root Theorem. So we get
the roots are ±1, ±2. By Vieta’s Formulas, we also get the roots multiply to 2. So thus we get they are (1, 2) or
(−1, −2).
25
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
We got two solutions! How is this possible! Well, it just boils down to how attentive you are. We need to find a2
(because we already have b2 ), and a = 3, −3 are our two values of a (we used Vieta’s Formulas). So then, it’s
obvious - the sum is a2 + b2 = 13 no matter what! So the problem was crafted in such a way it’s impossible to
find the roots - you must find a2 .
Let’s see another example in action - we will use some of freeman66’s tactics:
• f (1) = 0
Solution. Well, let’s see what we know. We let the roots of f be r, s, t. By Vieta’s Formulas, we get
• r + s + t = −a
• rs + rt + st = b
• rst = −c
• r2 + s2 + t2 = −b
• r2 s2 + r2 t2 + s2 t2 = c
• r 2 s2 t2 = a
Now, we can use some of freeman66’s properties. Specifically, using property 1, we get
a2 − 2b = r2 + s2 + t2 = −b
b2 − 2ac = b2 − 2(−a)(−c) = r2 s2 + r2 t2 + s2 t2 = c
so
a4 = b2 = (2a + 1)c
This means that
a4
c= (Θ)
2a + 1
Finally, we get that
c2 = r2 s2 t2 = −a
so we get (a, b, c) = (−c2 , c4 , c). But what about (Θ)? Can we use it? Trying to use it, we get
c8
c= =⇒ c7 = 1 − 2c2 (Π)
1 − 2c2
26
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Oh god! Not a degree 7 equation. But we can still use it to check solutions, in case. Let’s see the other
information that we got in the problem. We know f (1) = 0. We know
f (x) = x3 − c2 x2 + c4 x = c
so
0 = f (1) = 1 − c2 + c + c4 = (c + 1)(c3 − c2 + 1)
But the second factor isn’t very nice, right? Let’s see what we get from (Π). We can factor it to get
0 = c7 + 2c2 − 1 = (c + 1)(c6 − c5 + c4 − c3 + c2 + c + 1)
so obviously c = −1 is a root. If we assume that r is a root of the second factor, then r3 = r2 − 1. We can
probably manipulate this, right? I mean, we must have that
r6 − r5 + r4 − r3 + r2 + r + 1 = 0
r4 − 2r3 + r2 + r + 1 = 0
−r3 + r2 + 1 = 0
Remark 7.3. The problem only asked the question if a, b, c are integers. We proved they must be!
Exercise 7.4 (1991 INMO Problem 2). How many ordered triples (x, y, z) of real numbers satisfy the
system of equations
x2 + y 2 + z 2 = 9,
x4 + y 4 + z 4 = 33,
xyz = −4?
Hints: 76
27
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
7
Solution. Eh, this problem looks too mild. Let’s spice it up! How about we find P (x), and I leave plugging in 2
for you?
First, let’s try to scout for roots. We note that x = −1 and x = −2 give ”easy” roots; here we get P (1) =
P (−1) = 0 (do the work here, I may be lying). Now, plugging in x = 0 gives us 0 = −P (1) = 2P (0), so 0 is also
a root.
So, what other roots are there, if any? Let’s consider a root r 6= 0, ±1. Then, what can we get? We plug them
into our only thing we know to get
(r − 1)P (r + 1) = (r + 2)P (r) = 0
but as r 6= 1, we have r + 1 = 0. Similarly, we get that r + 2, is a root, and so on.
Or really? What if r = −2? Then we sort of hit a stopping point - we can’t go forwards anymore, as we stop at
1. However, we only went forwards - we can do the same thing backwards to get
0 = (r − 2)P (r) = (r + 1)P (r − 1)
so as r 6= −1, we are good as we go backwards. Obviously, no nonzero polynomial has ∞ roots, so the only
roots are 0, ±1. Thus, we almost have our polynomial - P (x) = cx(x − 1)(x + 1). How to find c? Well, there’s a
reason we have that second equation. That gives
P (2) = c · 2 · 1 · 3 = 6c
P (3) = c · 3 · 2 · 4 = 24c
so thus
36c2 = P (2)2 = P (3) = 24c
As c is nonzero, we divide by 0 to get c = 23 . Thus, P (x) = 23 x(x − 1)(x + 1). I’ll do a formal write-up in the
following:
Formal Proof.
Call the assertion Q(x) as (x − 1)P (x + 1) = (x + 2)P (x)a . Then, we get that 0, ±1 are roots from
Q(1), Q(−2), and Q(0).
Now, we shall prove that these are the only such roots. Assume that r is another root. If r is not a negative
integer, we note that Q(r) gives
28
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
so as r − 1 6= 0, we have that r + 1 is also a root. Now, we shall induct on k to show that r + k is a root:
so for negative integer roots r not −1, we get r − 1 is also a root. Now, we shall induct on k to show that
r − k is a root:
Base Case. k = 1 has been shown above.
Induction Hypothesis. Assume it is true for some k; we will show it for k + 1.
Base Case. As r ≤ −2, then r + k + 1 ≤ −2 and thus r 6= 0, ±1. Thus, we have that in this case r − (k + 1)
is an integer by applying our Base Case to r − k instead of r.
Now, in either case we get infinitely many roots, so by Zero Polynomial Corollary, we have that P (x) is
the zero polynomial, a contradiction. Thus, we get that P (x) = cx(x − 1)(x + 1). Plugging in x = 2, 3, we
have that P (2) = 6c, P (3) = 24c, so
and as c is nonzero, c = 32 . Thus, we get that P (x) = 23 x(x − 1)(x + 1) and in particular
m 7 2 7 9 5 105
=P = · · · =
n 2 3 2 2 2 4
x2 y2 z2 w2
+ + + =1
22 − 1 22 − 32 22 − 52 22 − 72
x2 y2 z2 w2
+ 2 + 2 + 2 =1
42 − 1 4 − 32 4 − 52 4 − 72
x2 y2 z2 w2
+ 2 + 2 + 2 =1
62 − 1 6 − 32 6 − 52 6 − 72
x2 y2 z2 w2
+ 2 + 2 + 2 =1
82 − 1 8 − 32 8 − 52 8 − 72
Solution. Ok, now this looks daunting. And in the wrong handout. Where’s the polynomial? But that’s the
beauty of this problem - the polynomial comes when we see that trying to expand is too tedious. So, first, the
29
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
w2 , x2 , y 2 , z 2 seems 150% unecessary - like we could replace them with a, b, c, d. So let’s do that:
a b c d
+ + + =1
22 −1 22
− 32 22
− 52 22
− 72
a b c d
+ 2 + 2 + 2 =1
42 − 1 4 − 32 4 − 52 4 − 72
a b c d
+ 2 + 2 + 2 =1
62 − 1 6 − 32 6 − 52 6 − 72
a b c d
2
+ 2 + 2 + 2 =1
8 −1 8 − 32 8 − 52 8 − 72
It’s already nicer. We just have to find a + b + c + d. Ok, now what else happens nicely? The denominators are
always t2 − 1, t2 − 9, t2 − 25, t2 − 49 for t = 2, 4, 6, 8. Hmmm...if we used this, we would get really big numbers,
like degree 8 polynomials. What about t − 1, t − 9, t − 25, t − 49, where t = 4, 16, 36, 64.
Remark 8.3. It’s more beneficial to spend time to step back and look at a problem from a different angle, especially
when you have time and you realize the numbers you are getting are cancerous. Also, try to show any pattern you see
holds.
a(t − 9)(t − 25)(t − 49) + b(t − 1)(t − 25)(t − 49) + c(t − 1)(t − 9)(t − 49) + d(t − 1)(t − 9)(t − 25)
=1
(t − 1)(t − 9)(t − 25)(t − 49)
Remark 8.4. It is implied that these are polynomials. I should do a better job of this, but it’s in the formal write-up.
for t = 4, 16, 36, 64. How can we manipulate this? Well, the equation has degree 4, and we have four roots, so we
can use the Unique Factorization of Polynomials to say they are equal. But which one of aτa + bτb + cτc + dτd
and (t − 1)(t − 9)(t − 25)(t − 49) do we choose?
What are we doing? We have to write f (t) = 0, so we want the polynomial of their difference,
30
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
and get that t = 4, 16, 36, 64 are roots. So then, we can take this equal to (t − 4)(t − 16)(t − 36)(t − 64), right?
But what about the leading coefficients? Don’t forget them! We see that τa , τb , τc , τd are all degree 3 polynomials,
so (#) has leading coefficient −1. Thus, we actually get that (#) = −(t − 4)(t − 16)(t − 36)(t − 64), so
aτa + bτb + cτc + dτd − (t − 1)(t − 9)(t − 25)(t − 49) = −(t − 4)(t − 16)(t − 36)(t − 64)
Yeah, so we can look at what we want to find: a + b + c + d. As this has infinitely many roots, we have that by
Zero Polynomial Corollary, the coefficients on each side are equal. But, what can we do?
Looking at τa , τb , τc , τd , we get that as we move towards lower degree terms, the polynomial gets more “cancerous”,
shall we say? So thus, we start with the highest degree terms: 4. We get that the left hand side has leading
coefficient −1 (τa , τb , τc , τd all have degree 3), but the right hand side has coefficient −1.
Oh well, let’s go to degree 3. τa has the coefficient of degree 3 as 1, so aτa has coefficient a. Similarly, bτb , cτc , dτd
all have coefficients of t3 as b, c, d. Now, by Vieta’s Formulas, the coefficient of t3 in (t − 1)(t − 9)(t − 25)(t − 49)
is −(1 + 9 + 25 + 49) = −84. However, once again by Vieta’s Formulas, the coefficient of t3 in −(t − 4)(t −
16)(t − 36)(t − 64) is 4 + 16 + 36 + 64 = 120 (note the negative signs cancelled out). Thus, we get that
a + b + c + d − (−84) = 120 =⇒ a + b + c + d = 120 − 84 = 36 .
Formal Proof.
Define a = x2 , b = y 2 , c = z 2 , d = w2 , then we get that the problem condition rewrites to
a b c d
+ + + =1
22 −1 22
− 32 22
− 52 22
− 72
a b c d
+ 2 + 2 + 2 =1
42 − 1 4 − 32 4 − 52 4 − 72
a b c d
+ 2 + 2 + 2 =1
62 − 1 6 − 32 6 − 52 6 − 72
a b c d
2
+ 2 + 2 + 2 =1
8 −1 8 − 32 8 − 52 8 − 72
31
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
χ(t) = aτa (t) + bτb (t) + cτc (t) + dτd (t) − τ (t) (Ω)
has zeroes at t = 4, 16, 36, 64. Furthermore, as τa , τb , τc , τd have degree 3 and τ has degree 4, we have that
χ has degree 4. Thus, we can write (by Unique Factorization of Polynomials):
for some (nonzeroa ) real k. Now, we get that comparing the leading coefficients, by (Ω), the leading
coefficient of χ is the opposite of the leading coefficient of τ (as τa , τb , τc , τd have degrees all less than τ ).
Thus, because the leading coefficient of τ is 1, the leading coefficient of χ is −1, and thus so is k (by (ζ)).
Now, we compare the coefficients of t3 . The coefficient of t3 in τa , τb , τc , τd is 1. The coefficient of t3 in τ is
32
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Problem
√ 9.1 (1983 AIME Problem 3). What is the product of the real roots of the equation x2 + 18x + 30 =
2 x2 + 18x + 45? Hints: 63
Problem 9.3 (2010 AIME I Problem 6). Let P (x) be a quadratic polynomial with real coefficients satisfying
x2 − 2x + 2 ≤ P (x) ≤ 2x2 − 4x + 3 for all real numbers x, and suppose P (11) = 181. Find P (16). Hints: 66
Problem 9.4 (2015 AIME II Problem 6). Steve says to Jon, “I am thinking of a polynomial whose roots are
all positive integers. The polynomial has the form P (x) = 2x3 − 2ax2 + (a2 − 81)x − c for some positive integers
a and c. Can you tell me the values of a and c?”
After some calculations, Jon says, “There is more than one such polynomial.”
Steve says, “You’re right. Here is the value of a.” He writes down a positive integer and asks, “Can you tell me
the value of c?”
50
P m
Then |ai | = , where m and n are relatively prime positive integers. Find m + n. Hints: 8
i=0 n
Problem 9.6 (2004 AIME I Problem 7). Let C be the coefficient of x2 in the expansion of the product
P (x) = (1 − x)(1 + 2x)(1 − 3x) · · · (1 + 14x)(1 − 15x). Find |C|. Hints: 5 55
Problem 9.7 (2011 AIME I Problem 7). Find the number of positive integers m for which there exist nonnegative
integers x0 , x1 , . . . , x2011 such that
2011
X
m x0 = mxk .
k=1
Hints: 3
Problem 9.8 (1984 AIME Problem 8). The equation z 6 + z 3 + 1 = 0 has complex roots with argument θ
between 90◦ and 180◦ in the complex plane. Determine the degree measure of θ. Hints: 12
Problem 9.9 (1989 AIME Problem 8). Assume that x1 , x2 , . . . , x7 are real numbers such that
Find the value of 16x1 + 25x2 + 36x3 + 49x4 + 64x5 + 81x6 + 100x7 . Hints: 52
√
Problem 9.10 (2014 AIME I Problem 9). Let x1 < x2 < x3 be the three real roots of the equation 2014x3 −
4029x2 + 2 = 0. Find x2 (x1 + x3 ). Hints: 15
33
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Problem 9.11 (2010 AIME II Problem 10). Find the number of second-degree polynomials f (x) with integer
coefficients and integer zeros for which f (0) = 2010. Hints: 6
Problem 9.12 (2015 AIME I Problem 10). Let f (x) be a third-degree polynomial with real coefficients satisfying
Problem 9.13 (2019 AIME I Problem 10). For distinct complex numbers z1 , z2 , . . . , z673 , the polynomial
(x − z1 )3 (x − z2 )3 · · · (x − z673 )3
can be expressed as x2019 + 20x2018 + 19x2017 + g(x), where g(x) is a polynomial with complex coefficients and
with degree at most 2016. The value of
X
z j z k
1≤j<k≤673
m
can be expressed in the form n, where m and n are relatively prime positive integers. Find m + n. Hints: 32
Problem 9.14 (1986 AIME Problem 11). The polynomial 1 − x + x2 − x3 + · · · + x16 − x17 may be written in
the form a0 + a1 y + a2 y 2 + · · · + a16 y 16 + a17 y 17 , where y = x + 1 and the ai ’s are constants. Find the value of
a2 . Hints: 4
Problem 9.15 (1988 AIME Problem 13). Find a if a and b are integers such that x2 − x − 1 is a factor of
ax17 + bx16 + 1. Hints: 2
Problem 9.16 (2000 AIME √ Problem 13). The equation 2000x6 + 100x5 + 10x3 + x − 2 = 0 has exactly two
real roots, one of which is m+r n , where m, n and r are integers, m and r are relatively prime, and r > 0. Find
m + n + r. Hints: 74 30
Problem 9.17 (2004 AIME I Problem 13). The polynomial P (x) = (1 + x + x2 + · · · + x17 )2 − x17 has 34 complex
roots of the form zk = rk [cos(2πak ) + i sin(2πak )], k = 1, 2, 3, . . . , 34, with 0 < a1 ≤ a2 ≤ a3 ≤ · · · ≤ a34 < 1 and
rk > 0. Given that a1 + a2 + a3 + a4 + a5 = m n , where m and n are relatively prime positive integers, find m + n.
Hints: 68
Problem 9.18 (2007 AIME II Problem 14). Let f (x) be a polynomial with real coefficients such that f (0) = 1,
f (2) + f (3) = 125, and for all x, f (x)f (2x2 ) = f (2x3 + x). Find f (5). Hints: 11 38 9
Problem 9.19 (2020 AIME I Problem 14). Let P (x) be a quadratic polynomial with complex coefficients whose
x2 coefficient is 1. Suppose the equation P (P (x)) = 0 has four distinct solutions, x = 3, 4, a, b. Find the sum of
all possible values of (a + b)2 . Hints: 37 58 19
Problem 9.20 (2011 AIME I Problem 15). For some integer m, the polynomial x3 − 2011x + m has the three
integer roots a, b, and c. Find |a| + |b| + |c|. Hints: 36 77
Problem 9.21 (1984 USAMO Problem 1). In the polynomial x4 − 18x3 + kx2 + 200x − 1984 = 0, the product
of 2 of its roots is −32. Find k. Hints: 70
x
Problem 9.22 (2017 RMO Problem 3). Let P (x) = x2 + + b and Q(x) = x2 + cx + d be two polynomials with
2
real coefficients such that P (x)Q(x) = Q(P (x)) for all real x. Find all real roots of P (Q(x)) = 0. Hints: 56 23
Problem 9.23 (2018 PRMO Problem 30). Let P (x) = a0 + a1 x + a2 x2 + · · · + an xn be a polynomial in which
ai is non-negative integer for each i ∈ 0, 1, 2, 3, ...., n . If P (1) = 4 and P (5) = 136, what is the value of P (3)?
Hints: 7 75 59
34
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Problem 9.24 (2020 February HMMT Algebra and Number Theory Problem 8). Let P (x) be the unique
polynomial of degree at most 2020 satisfying P (k 2 ) = k for k = 0, 1, 2, . . . , 2020. Compute P (20212 ). Hints: 42
41 46
Problem 9.25 (Modified from 2016 PUMaC A7). Let SP be the set of all polynomials P with complex
coefficients, such that P (x2 ) = P (x)P (x − 1) for all complex numbers x. Hints: 29 65 21 25
35
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
§10 Hints
1. Find σ1 , σ2 , σ3 . This should be a routine exercise, and then consider all roots of x3 − σ1 x2 + σ2 x − σ3 = 0.
2. You could try to use recursions if you recognize x2 − x − 1. Otherwise, try to use polynomial division with smaller
sequences - and see if there is a pattern.
3. Doesn’t seem like a polynomial problem? Think of a simple value of which you know xk for all k - and find P (x).
Then, try to use polynomial division. The backwards of this, however, is purely number theory. I’m sure you can do
it!
4. Try a geometric series as the value of the polynomial. It should make the rest very easy.
1 1
5. Well, considering the x2 term isn’t very good. How about the polynomial with roots r1 , r2 , . . . (r1 , r2 , . . . are the
roots of P (x))? Is it simpler now?
6. Write it in factored form! Where can you go from there?
7. Can you bound n? Remember, 53 = 125!
8. This is more daunting than it looks - try to see what value of x satisfies P (x) is the sum of the coefficients of P (x).
Can you generalize to Q(x)?
9. Consider the polynomial g(x) with the roots found above, and write f (x) = g(x)h(x). Does h(x) satisfy the same
constraints as f (x)? Use this to finish off the problem (after finding the form of f (x)).
10. Use Newton’s Sums, but make sure to factor first! Make it as simple as possible! (In general, try to keep everything
factored for as long as possible).
11. Try to find a root with r > 1. Can you find another? What is the magnitude of that? Greater, equal to, or less than
r? Can you keep going? Remember Zero Polynomial Corollary and use ∞ roots.
12. Let x = z 3 . Does this look familiar (third roots of unity)? Use the polar form to get such a value of θ.
13. Use induction and the fact nk + k+1 n
= n+1
9
k .
14. Use Complex Conjugate Theorem as well as the fact that every polynomial of odd degree has at least one real root.
We can show the last statement as follows: graph f (x), and note on one side, it goes to ∞ while on the other it goes
to −∞ so it must hit the x−axis in the middle.
√
15. Let n = 2014. Write 2014 and 4029 in terms of n. Now try to factor!
16. How many roots are there? Can you use a double counting method?
17. Can you use Vieta’s to find an expression for t in terms of r and s? Then try to expand!
18. Try to use manipulations 2 and 4 from freeman66’s list. It’s not 4!
19. For some of the cases, you may have to solve for a and b explicitly. There’s nothing to do about that.
20. What’s the imaginary part of r?
21. What if |r| < 1? First, however, ignore r = 0.
22. Use the exponent laws - don’t try to convert into complex numbers.
23. Expanding is good. We already should know one value, so there are only two “unknowns”.
√
1+ 3i
24. Rewrite 2 as a root of unity. Can you simplify, for example, z 2018 to a lower power?
25. Assume |r| = 1, and let r = a + bi. You’ll get an equation in terms of a and b. Expand and solve!
26. The answer to “do the results seem familiar” should be yes. They should relate to the coefficients in the expansions.
29. What are the roots of P (x2 ) in terms of the roots of P (x)?
30. Only one of the two factors will have real roots. Use the Discrimant of a Quadratic Polynomial to help you determine
this (if x2 is not real, neither is x).
31. What’s the third root? Also use Factor Theorem; it can be helpful to reduce the amount of extra algebra done. But
alas, the problem ends bashy.
32. It’s a little more complicated than straightforward Vieta’s Formulas - can you also use Newton’s Formulas (or
freeman66’s tactics)?
33. Assume z = a + bi, and then expand both sides and then show they are equal.
34. Assume z = a + bi, w = c + di, and then expand both sides and then show they are equal.
35. Use the Rational Root Theorem to find all possible roots of both polynomials.
36. Without loss of generality, let |a| ≤ |b| ≤ |c|. Consider what c is in terms of a and b. Also use Newton’s Formulas to
reduce your search.
37. Consider the roots of P (x) as r1 , r2 . How many cases do you really have here for P (x) = r1 , P (x) = r2 . Remember
to exploit symmetry.
38. Repeat the same thing with r < 1. Can you find a root with |r| = 1?
39. Use the first equation to substitute.
40. Expand! No better hint for this problem.
41. Now, here’s the magic (it’s called finite differences). Consider Q(x + 1) − Q(x).
• What’s its degree?
• List 4038 roots.
• Can you find the value of the leading coefficient (what is Q(1) − Q(−1))?
42. If you know Lagrange Interpolation, use it! Otherwise, can you find an obvious root of P (x)? Can you consider a
polynomial Q(x) (of degree 4039) with roots k = 1, 2, . . . , 2020 and manageable values for k = −1, −2, . . . , −2020?
43. Solve the exercise in the order given ρ1 , ρ2 , ρ3 . You may need to substitute.
44. Try using y = 2111x . Then, try to also work backwards as we did in the above problem to find a nice expression for
the sum of all values for x in terms of all values of y.
45. Remember, 2020 also divides f (2020) − f (0). Now, can you find a polynomial that satisfies f (2020) as the value you
had. I suggest looking at the formula for the sum of the first n numbers.
46. If you don’t recognize some of the scary terms - think of binomial coefficients.
47. Can you experiment with some smaller roots? Maybe use Rational Root Theorem?
48. Look at Complex Conjugate Theorem for a weakened version. Follow the same proof.
49. Take that problem step by step. Also, Vieta’s Formulas comes in handy here. And Newton’s Formulas can help too.
Alternatively, consider #1 from freeman66’s tactics.
50. This has a nice polynomial solution. Note a number is real if and only if it is equal to its conjugate. Use that to
obtain a polynomial in z. How many roots does it have?
51. Use Complex Conjugate Theorem and the fact that every polynomial of odd degree has at least one real root.
52. Try to generalize (like we did in AIME 1984/15)! Can you find a polynomial here? Can you find the coefficients?
53. Try to find a linear polynomial Q(x) with Q(17) = 10 and Q(24) = 17. Then factor P (x) − Q(x).
54. U
55. Newton’s Formulas can help too. Alternatively, consider #1 from freeman66’s tactics.
37
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
56. Assume P (x) has real roots (otherwise the problem is trivial). Consider any root r of P (x). What’s P (r)Q(r)?
Q(P (r))?
57. How many roots are in common between Q1 (x) and Q2 (x)?
58. Also remember that the polynomials P (x) − r1 , P (x) − r2 have the same linear term. Some cases will be nearly
trivial with Vieta’s Formulas. Others will be almost impossible without bashing.
59. The bounds should be easy to obtain for the rest except a0 , a1 , where you will get two equations in two variables.
Elimination works, and so does substitution, and any other method taught in Algebra I. Solve for P (x).
60. How can you relate the roots of Pk and Pk+1 . The rest should follow from Vieta’s relationships.
61. It was k1 for σ1 , k1 k2 for σ2 , and k1 k2 k3 for σ3 . See a pattern?
62. Assume z = a + bi, w = c + di, and then expand both sides and then show they are equal.
63. Make the substitution y = x2 + 18x + 30 and solve for y instead.
64. Do some of the terms look similar to those in (x + 1)3 ? What can you conclude (rearrange it to (x + 1)3 = something)?
65. Consider a root r. What can you tell me if |r| > 1 (specifically, √
what is the magnitude in relationship to r)?
Remember Zero Polynomial Corollary with ∞ roots. Also use m > m if m > 1.
66. Suppose Q(x) = x2 − 2x + 2 and R(x) = 2x2 − 4x + 3. When Q(x) = R(x), do we know the value of P (x)? Can you
find the exact value of P (x) from there?
P
67. Like in the above two problems, just break the into less daunting sums and take casework.
68. Use a geometric series, and then expand! It won’t disappoint if you try to factor.
69. Can you try to factor? Use the fifth roots of unity to help you.
70. The algebraic manipulation ab + ac + ad + bc + bd + cd = (a + b)(c + d) + ab + cd comes in handy a lot.
71. Factor it! How many roots does it have?
72. Use (β) and (Γ).
73. This was built for Vieta’s Formulas. Find the roots of P (x) + 12 and P (x) − 12 (note the only change between the
polynomials is the constant term).
74. You could try to factor this. Focus on the terms of even degree and odd degree separately.
75. Is it even possible that am = 0, where m is the maximum value of n? Remember that the sum of the ai is 4! Can it
be more than 1?
76. Try to use manipulations 2 and 4 from freeman66’s list.
77. Take cases on if c > 0 or c < 0. Bound c well, and do casework on the rest.
78. Use Euler’s Formula.
79. Try to rewrite 31 = 52 + 5 + 1. Can you use roots of unity (you may have to factor xn − 1)?
80. Let ζ = sin2 x and χ = cos2 x. Do you have any information on ζ and χ that would allow you to solve for ζχ?
38
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Proof due to Matthew Steed, University of Chicago. We shall use Liouville’s Theorem, which is a powerful argu-
ment in complex analysis which states the following:
That’s it. It’s pretty powerful, and for sake of completeness, I include a proof:
Proof. Note any holomorphic function f is analytic. Consider the Taylor Series about 0:
∞
X
f (x) = bk xk
k=0
1 |f (ζ)| M M 2πr M
I I
|bk | ≤ |dζ| ≤ |dζ| = = k
2π C |ζ|k+1 C r k+1 2πr k+1 r
Taking r → ∞, we accomplish our proof.
Back to the proof of Fundamental Theorem of Algebra. Consider a disk of radius R used in the previous proof.
There exists some α on the disk such that |f (α)| is aminimum on the disk. We suppose again that f (α) 6= 0.
1 1
For any z such that |z| ≥ |R|, |f (z)| > |f (α)|, so f (α) > f (z) . By Liouville’s Theorem, this is bounded above,
so f1 is constant, so |f | is constant, which is a contradiction. Thus, f (α) = 0.
Base Case.
m = 1 is obvious.
39
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Induction Hypothesis.
Assume the statement is true for all m − 1 ≥ k ≥ 1. We shall prove it is true for m.
Induction Step.
Now, for the rest of the proof to work, we can break up our polynomial into a bunch of symmetric polynomials
of the same degree. We shall thus focus only when the degree of each term is m. Now, let us order the
terms of our symmetric polynomial, with axa11 xa22 · · · coming before bxb11 xb22 · · · if and only if for the first k
such that bk 6= ak , ak > bk . Now, consider any term of our symmetric polynomial f = axa11 xa22 · · · xann (and
a1 + a2 + · · · + an = m. We can assume
a1 ≥ a2 ≥ · · · ≥ an
Then, this has the same leading term as f , so applying our induction hypothesis, we can write f − g as
the sum/product of a bunch of symmetric polynomials, so we can write f as a sum/product of a bunch of
symmetric polynomials.
Base Case.
When deg f = deg g, we consider q(x) the constant defined as the ratio of the leading coefficients of f to g.
Then, we get that f (x) − q(x)g(x) has it’s terms of deg g cancel out, so thus we get our claim is valid in
this case. Where deg f < deg g, we get that r(x) = f (x) and q(x) = 0 works.
Induction Hypothesis.
We assume the result holds for all polynomials such that deg f ≤ k for some k. We shall show the result
holds for k + 1 as well.
Induction Step.
Consider p as the ratio of the leading coefficients of f to g. Then, we get that considering
we get the leading term (of degree deg f ) cancel, so thus deg f 0 ≤ k. Thus, we get
40
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
But how do we do this? Remember normal division? We can use something like that. Let’s recap:
949
13 12345
117
64
52
125
117
8
94
13 12345
117
64
52
12
X 2 + 2X + 2
X 3 + X 2 + 0X − 1
X −1
− X3 + X2
2X 2 + 0X
− 2X 2 + 2X
2X − 1
Until we get the quotient as described above. And for the sake of demonstration that it can be done with not
only linear polynomials:
X 2 + 2X + 1
X2 + X − 1 X 4 + 3X 3 + 2X 2 − 2X − 3
− X4 − X3 + X2
2X 3 + 3X 2 − 2X
− 2X 3 − 2X 2 + 2X
X 2 + 0X − 3
− X2 − X + 1
−X −2
But onto the proof of Remainder Theorem. We have that we can divide a polynomial f (x) by x − r to get
However, we note that deg h < deg(x − r) = 1, so deg h = 0, so h(x) is constant. Thus, h(x) = f (r), so the
remainder is indeed f (r).
42
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Remark C.2. It isn’t necessary I = [a, b]. It can be [a, b), (a, b], (a, b) as well. That’s just how we talk about the
intermediate value theorem in normal context.
Proof. Consider the set S = {x | x ∈ I, f (x) ≤ c}, or all elements x in I such that f (x) ≤ c. Now, we note that
as min(f (a), f (b)) < c (by our assumption), so thus we can talk about the supremum of S, say k. We shall show
f (k) = c. Otherwise, by the definition of continuity, we can find for all > 0 some δ > 0 such that
|f (x) − f (k)| ≤ , |x − k| ≤ δ
f (k) = c
Now, how does Intermediate Value Theorem help? Let’s take a look at 2005 AIME I Problem 8. In particular,
how did they know there were 3 real roots? Well, we note the function
is definitely continuous (essentially almost all functions are continuous, these can be visualized as being smooth
graphs). So we will try to find some values of f (x). We can make the following table:
f (−∞) -1
f (0) 1
f (1) Really Huge Number
so that won’t really work. We found guarantee of a root, but not 3. Let’s try the substitution that motivates
the solution of the problem:
1
g(y) = y 3 − 2y 2 + 4y − 1
4
1
If we can find three positive roots of this, we should be done, right (as for any solution y we can take x = 111 log2 x?
Let’s make a table (I’m only including even values so I get eve:
f (0) -1
f (2) 1
f (4) -1
f (6) 5
so we have a real root y in each of (0, 2), (2, 4), (4, 6), so we have three positive integer roots by Intermediate
Value Theorem. This is also very helpful when using the rational root theorem - sometimes it isn’t easy to do
the division - but it’s better to use this to find integer values and then find where there are roots for sure. Now,
let’s talk about this following magnificent result due Descartes:
43
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
where an > 0 and n ∈ {−1, 0, 1}. Let m be the number of times k k−1 = −1. Then, the number of positive
roots (say p) (counting multiplicities, i.e. the roots of (x − 1)2 are 1, 1) is at most m, and furthermore leaves
the same remainder as m when divided by 2.
Remark C.4. This following heuristic argument helped me understand the argument (due to Professor Stewart A.
Levin) - as x goes towards 0, the constant term comes into play, and as we move to +∞, the leading term comes into
play. In the middle the other ones have a chance to dominate, but sometimes are still dominated by other terms.
Proof due to Xiaoshen Wang. Divide by an n (as it doesn’t affect the product k k−1 as it is divided by 1) so
thus
f (x) = xn + an−1 n−1 xn−1 + · · · + a0 0
Now, if 0 = 0, then we can “remove” it as it doesn’t affect the number of positive roots. Thus, we also assume
0 6= 0. We have the following lemma:
Proof. We note that at any root r, if it has odd multiplicity, then the function crosses the x-axis, while if it has
even multiplicity, then it does not cross the x-axis. We note that if 0 = 1, then f (0) > 0 and f (∞) > 0, so
thus we must have an even number of roots (counting multiplicities). Similarly, if 0 = −1, then f (0) < 0 and
f (∞) > 0, so thus we must have an odd number of roots.
We shall prove this by induction on deg f :
Base Case.
n = 1 is fairly obvious. If 0 > 0, then by our Lemma, there are no real roots, and 0 1 = 1. If 0 < 0, then
by our Lemma, there is one real root (as it is odd and at most 1 by the Fundamental Theorem of Algebra),
and 0 1 = −1.
Induction Hypothesis.
Assume for some positive integer k, the lemma is true for all polynomials f such that deg f ≤ k. We shall
show the statement for deg f = k + 1.
Induction Step.
Now, we have two cases:
f 0 (x)
p0 ≥ p − 1 and m0 ≡ p0 (mod 2) and m0 ≥ p0 (by the inductive hypothesis assuming that m0 and p0 have the
same definition with respect to f 0 (x)). By our lemma, we have that considering it with f (x) and f 0 (x),
44
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
p ≡ p0 (mod 2) (as 0 , q have the same sign), but then we get that
p ≡ p0 ≡ m0 = m (mod 2)
p ≤ p0 + 1 ≤ m0 + 1 = m + 1
f 0 (x)
p0 ≥ p − 1 and m0 ≡ p0 (mod 2) and m0 ≥ p0 (by the inductive hypothesis assuming that m0 and p0 have the
same definition with respect to f 0 (x)). By our lemma, we have that considering it with f (x) and f 0 (x),
p ≡ 1 + p0 (mod 2) (as 0 , q have the opposite sign), but then we get that
p ≡ p0 + 1 ≡ m0 + 1 = m (mod 2)
p ≤ p0 + 1 ≤ m0 + 1 ≤ m
Now, this can provide upper bounds on the number of roots. For example, consider the following:
Example C.7
Find the number of nonreal roots of f (x) = x3 + 1.
Solution. By Descartes’ Rule of Signs, we see that there are at most 0 positive roots. By Descartes’ Rule of
Sign’s Corollary, we see there are an odd number of negative roots and at most 1 negative root. Thus there is
exactly 1 negative root, so exactly 1 real root. Thus there are 2 nonreal roots.
Now, there is something that is very useful, and described as the discriminant. We touched on it in our discussion
of AIME I 2011/9 but didn’t actually use it much. We will introduce it here:
where the leading coefficient of p(x) is an , the degree is n, and the roots are r1 , r2 , . . . , rn .
45
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Note that this immediately implies that the discriminant is 0 if and only if two roots are equal. In addition, all
roots are real if and only if the discriminant is nonnegative (the if part is hard to prove and out of scope - the
only if part is very easy to prove). But how does this help? Well, let’s see an example:
b2 − 4ac
Proof. You may have seen something like this when dealing with the quadratic formula. Let’s talk about it here.
Let the roots be r1 , r2 . By Vieta’s Formulas, we have that
b
σ1 = r1 + r2 = −
a
c
σ2 = r1 r2 =
a
Then, we get that
Disc(p(x)) = a2 (r1 − r2 )2
Let’s expand this:
Disc(p(x)) = a2 (r12 + r22 − 2r1 r2 )
We note that by Newton’s Formulas (or #1 of freeman66’s tactics), we get
Substituting, we get
Disc(p(x)) = b2 − 4ac
Now, how can we get the discriminant without actually using the roots? We need the following definition:
Definition C.10 (Matrix of Two Polynomials) — Consider two polynomials f (x) and g(x), with degrees m
and n. The resultant is the discriminant of the (m + n) × (m + n) matrix formed by writing the coefficients
of f (x) n times and the coefficients of g(x) m times.
Example C.11
Find the resultant of the polynomials x2 + 2x + 1 and 2x + 2.
I know the definition is hard to grasp, but with this example it should be a lot easier. Anyways, we can compute
the resultant to indeed be 0.
How does this relate to anything? The following theorem says it all:
46
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
where R(p, p0 ) is the resultant of p(x) and p0 (x), n = deg p, and an is the leading coefficient of p.
This is way too out of scope for me to present. Google it up if you want to see it. However, we can indeed once
again check Discrimant of a Quadratic Polynomial:
b2 − 4ac
The only other case that would be helpful would be a cubic. I am stating the result, but you can use Discriminants
from Resultants for matrix bashing. Have fun!
I can’t really think of a good time this would be useful, except maybe as for what we did for 2005 AIME I
Problem 8 in the beginning of the Appendix.
47
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
is
n
X (x − a1 ) (x − a2 ) · · · (x − ai−1 ) (x − ai+1 ) · · · (x − an )
P (x) = bi
(ai − a1 ) (ai − a2 ) · · · (ai − ai−1 ) (ai − ai+1 ) · · · (ai − an )
i=1
or more simply,
n
X Y x − am
P (x) = bi
0≤m≤n
ai − am
i=1
m6=i
k
P (k) =
k+1
for k = 0, 1, 2, . . . , n, determine P (n + 1).
n (n+1)!
X k n+1−k
= ·
k + 1 k(k − 1)(k − 2) . . . 1 · (−1)(−2) . . . (k − n)
k=0
n
X k (n + 1)!
= (−1)n−k ·
k+1 k!(n + 1 − k)!
k=0
n n
(n + 1)!(−1)n−k
X
n−k n + 1
X
= (−1) −
k (k + 1)!(n + 1 − k)!
k=0 k=0
n+1 n
!
n+1−k n + 1 1 n+2
X X
=− (−1) −1 + · (−1)n+1−k
k n+2 k+1
k=0 k=0
n+1 !
1 X n + 2
=1+ (−1)n+2−(k+1) − (−1)n+2 − 1
n+2 k+1
k=−1
(−1)n + 1
= 1− .
n+2
48
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Determine n.
and hence
n n
X Y 3n + 1 − r X Y 3n + 1 − r
f (3n + 1) = 2 + .
3p − r 3p − 2 − r
p=0 0≤r6=3p≤3n p=1 0≤r6=3p−2≤3n
and if p is odd,
π pπ
−2p+1 sinp (i)p+1 sin
p p p 3 3
− + − ··· = .
0 3 6 3
(We will not discuss the proof of this lemma in this handout - the idea is Roots of Unity Filter.) Using the
above lemma, we do not get any solutions when n is odd, but when n is even, 3n + 1 = 13 satisfies the required
condition, implying n = 4 is the only solution.
49
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
Y 20212 − m2
Now let us painfully evaluate what P (20212 ) will be. For convenience, let’s first evaluate what
0≤m≤2020
i2 − m2
m6=i
will be.
Y 20212 − m2 Y (2021 + m)(2021 − m)
= .
0≤m≤2020
i2 − m2 0≤m≤2020
(i + m)(i − m)
m6=i m6=i
• Denominators: We have a (2021 + i)!, a (2020 − i)!, an extra i, and then we need to exclude 2i from
(2021 + i)! since m 6= i. Also notice that the sign of (2020 − i)! depends on parity of i. Hence, the product is
(2020 + i)!(2020 − i)!
(−1)i .
2
Let’s finish this monster off:
4041!·2021
Y (2021 + m)(2021 − m) (2021+i)(2021−i)
=
0≤m≤2020
(i + m)(i − m) (−1)i (2020+i)!(2020−i)!
2
m6=i
(−1)i · 4042!
=
(2021 + i)!(2021 − i)!
i 4042
= (−1) .
2021 − i
Sweet! But before we truly destroy the beast, we use Pascal’s Identity.
50
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
2020
X Y 20212 − m2
= i
0≤m≤2020
i2 − m2
i=1
m6=i
2020
X
i 4042
= i(−1)
2021 − i
i=1
2021
!
X 4041 4041
= 2021 − (−1)i+1 i +
2021 − i 2020 − i
i=0
2021 !
X 4041
= 2021 − (−1)i+1
2021 − i
i=1
2021 !
X 4040 4040
= 2021 − (−1)i+1 +
2021 − i 2020 − i
i=1
4040
= 2021 − .
2020
Exercise D.6 (USAMO 2002/3). Prove that any monic polynomial (a polynomial with leading coefficient
1) of degree n with real coefficients is the average of two monic polynomials of degree n with n real roots.
Exercise D.7 (AIME I 2015/10). Let f (x) be a third-degree polynomial with real coefficients satisfying
Find |f (0)|.
Exercise D.8 (HMMT February Algebra & Number Theory 2017/6). A polynomial P of degree 2015
satisfies the equation P (n) = m12 for n = 1, 2, . . . , 2016. Find b2017P (2017)c.
List of Theorems
51
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
List of Corollaries
52
Copyright © 2020 by Euclid’s Orchard. All rights reserved.
naman12 and freeman66 (May 13, 2020) Polynomials in the AIME
List of Definitions
53
Copyright © 2020 by Euclid’s Orchard. All rights reserved.