Worksheet PDF
Worksheet PDF
NICE Committee
Second Edition
Preface
Hello everyone!
This is the second NICE Journal, and we’re glad that you’ve decided to read us. Below is
a short list of notes that may enhance your reading experience.
Acknowledgements
We would like to thank everyone involved in this journal:
Sincerely,
Dylan Yu
3
Contents
1 Algebraic Manipulation 6
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Variable Assignment and Flexibility . . . . . . . . . . . . . . . . . . . . . . 7
1.3 Simon’s Favourite Factoring Trick . . . . . . . . . . . . . . . . . . . . . . . . 8
1.4 Various Useful Identities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.5 Power Laddering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.6 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.6.1 Easier problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.6.2 Harder problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3 Incenter Miquel 19
3.1 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.2 Spiral Similarity at R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.3 The Mixtillinear Touchpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.4 More Interesting Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.5 Involving the A-Antipode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.6 A very interesting concyclicity . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.7 Some Nice Contest Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.7.1 A problem related to IMO 2019/6 . . . . . . . . . . . . . . . . . . . 29
3.7.2 A beautiful Isogonal Mittenpunkt problem . . . . . . . . . . . . . . 31
3.8 Changing an incenter problem to an orthocenter one . . . . . . . . . . . . . 32
3.9 An induced bicentric quadrilateral and its properties . . . . . . . . . . . . 36
3.10 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4 Multiplicative Functions 42
4.1 Dictionary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
4.2 An instructive example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
4.3 Dirichlet Convolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
4.4 Operations with convolutions . . . . . . . . . . . . . . . . . . . . . . . . . . 45
4.5 Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
4
NICE Committee (Second Edition) NICE Journal
A Key Parts 62
A.1 List of Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
A.2 List of Theorems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
A.3 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
B Selected Solutions 67
B.1 Solution 4 (Euclid 2021/2.c) . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
B.2 Solution 5 (Euclid 2014/3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
B.3 Solution 6 (blackpenredpen) . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
B.4 Solution 7 (AoPS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
B.5 Solution 8 (Instagram) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
B.6 Solution 12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
B.7 Solution 13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
B.8 Solution 15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
B.9 Solution 16 (AMC 12A 2021/15) . . . . . . . . . . . . . . . . . . . . . . . . . 71
B.10 Solution 17 (AIME II 2016/12) . . . . . . . . . . . . . . . . . . . . . . . . . . 71
B.11 Solution 65 (AMC 12A 2021/25) . . . . . . . . . . . . . . . . . . . . . . . . . 72
B.12 Solution 68 (PUMaC Number Theory 2019/A2) . . . . . . . . . . . . . . . 73
B.13 Solution 69 (PUMaC Number Theory 2016/A5) . . . . . . . . . . . . . . . 73
B.14 Solution 70 (PUMaC Number Theory 2015/A6) . . . . . . . . . . . . . . . 74
B.15 Solution 73 (ISL 1989/11) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
B.16 Solution 74 (HMMT February Algebra-NT 2019/8) . . . . . . . . . . . . . . 75
B.17 Solution 80 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
B.18 Solution 81 (AHSME 1999/30) . . . . . . . . . . . . . . . . . . . . . . . . . . 75
B.19 Solution 82 (MR S499, Titu Andreescu) . . . . . . . . . . . . . . . . . . . . . 76
5
1 Algebraic Manipulation
You might want to review factoring and Vieta’s formulas.
â1.1 Introduction
Let’s start with two relatively simple techniques:
Fact 1 (Completing the Square). Start with arbitrary quadratic ax2 + bx + c = 0. Then,
b 2 b2 − 4ac
one can rearrange that to a x + − = 0.
2a 4a
ax2 + bx + c =0
b c
2
a x + x+ =0
a a
b b 2 b 2 c
2
a x + x+ 2 − 2 + =0
a 4a 4a a
2 2
!
b b c
a x+ − 2+ =0
2a 4a a
2
b b2
a x+ +c− =0
2a 4a
2 2
b b − 4ac
a x+ − =0
2a 4a
as shown.
It is best not to memorize the result of this, but rather the steps; as completing the square
is a very useful technique.
This result can be extended to our beloved quadratic formula:
Proof. Continue with the “completing the square” from before. Then:
2
b b2 − 4ac
a x+ − =0
2a 4a
b 2 b2 − 4ac
x+ =
2a 4a2
√
b b2 − 4ac
x+ =±
2a 2a
√
−b ± b2 − 4ac
x=
2a
b
Remark 3. If we let b0 = , then we can rewrite the quadratic formula as
2
−b0 ± b0 2 − ac
p
x= .
a
This representation has fewer coefficients, so it’s a reasonable idea to keep this in the back of
your head.
The idea is to take advantage of the structure of the problem (all the phrases can be
represented as equations and the ages as unknowns). This isn’t really regarded as a
technique, but it works wonders – when you’re stuck, try assigning variables randomly
and delving further.
A corollary of this is that variable substitutions are very easy to perform, and if you
can do one, it is advisable to do so (if it’s beneficial, of course).
I’m also a huge fan of using Vieta’s formulas backwards when given the chance. This
is best illustrated in the following example:
7
NICE Journal NICE Committee (Second Edition)
a + b = 16
1 1 4
+ =
a b 7
1. Find ab.
Example 6 (blackpenredpen)
√
Solve the equation 5 − x = 5 − x2 .
2. Here comes the trick: square both sides and treat 5 as the variable. You’ll end up
with two quadratics.
Example 7 (AoPS)
Find all pairs of positive integers (m, n) that satisfy mn + 3m − 8n = 59.
Walkthrough. If you’ve never seen this before, you should just read the solution.
2. Find a way to turn the “−8n” part to −8(n + 3) and get (m − 8)(n + 3) = 35.
The main reason why this is a useful trick is because m and n have to both be integers.
If they had to be rational numbers, or even real numbers, it would be much harder or
downright impossible to get precise values for m and n.
8
NICE Committee (Second Edition) NICE Journal
• SFFT: xy + jx + ky = a =⇒ ( x + k)(y + j) = a + jk
• a2 ± 2ab + b2 = ( a ± b)2
• a2 − b2 = ( a + b)( a − b)
• a3 ± b3 = ( a ± b) a2 ∓ ab + b2
• TFFT: a3 + b3 + c3 − 3abc = ( a + b + c) a2 + b2 + c2 − ab − bc − ca
Example 8 (Instagram)
x4 − 6x3 − 2x2 + 18x + 23 p √
Without using a calculator, evaluate when x = 19 − 8 3.
x2 − 8x + 15
3. Multiply the quadratic you formed in the above step by x2 and subtract it off the
numerator. Note that this does not affect your answer because you are subtracting
0.
4. Multiply the quadratic by 2x and do the same thing. Then again by multiplying the
quadratic with some constant. You’ll be left with a constant in the numerator and
you can finish from there.
9
NICE Journal NICE Committee (Second Edition)
â1.6 Problems
â1.6.1 Easier problems
Problem 1 (Fermat 2019/24). Consider the quadratic equation x2 − (r + 7) x + r + 87 =
0 where r is a real number. This equation has two distinct real solutions x which are
both negative exactly when p < r < q for some real numbers p and q. Find the value of
p2 + q2 .
Problem 2 (Own). Determine the sum of all possible x values such that x is a positive
integer and xy = 317 + 2x + 3y for some integer y.
372
Problem 3 (Own). Let p, q, and r be the roots of x3 − 16x2 + 84x − 112 = 0. Find
p3 + q3 + r3 − 3pqr.
64
3
Problem 4 (Own). If x +
x
= 1, find x5 − x2 . 18
10
NICE Committee (Second Edition) NICE Journal
Problem 10 (NICE Spring 2021/13, David Altizio). Suppose x and y are nonzero real
numbers satisfying the system of equations
3x2 + y2 = 13x,
x2 + 3y2 = 14y.
Find x + y.
11
2 Roots of Unity Filter
â2.1 Lecture notes
â2.1.1 Statement
A fun story: roots of unity filter (ROUF) was said to be invented by Nikolai Nikolov
when he solved IMO 1995/6 in contest via roots of unity. He was awarded a special prize
(which is given to people with beautiful solutions) for this discovery.
n −1
(
k
m 0 n-m
∑ ω = n n|m.
k =0
Solution via symmetric sums It suffices to show the result for 0 ≤ m < n, since we may
take the exponent mod n without changing the value of the sum. The result is obvious for
m = 0, so discard that case. Now, as 1, ω, ω 2 , . . . , ω n−1 are roots of the polynomial x n − 1,
this means that all symmetric sums of the nth roots of unity, except for their product, are
0. However, note that the given sum is of degree less than n, so it can be written in terms
the symmetric sums without using the product. But all these symmetric sums are 0, so
the entire sum evaluates to 0, as desired.
Solution via induction Strong induct on n. The result is obvious for n = 1 and n a prime
(why?), then split the nth roots of unity into equally spaced groups of size gcd(nn,m) and
apply the inductive hypothesis to finish.
1
a0 + an + a2n + . . . = P (1 ) + P ( ω ) + P ( ω 2 ) + . . . + P ( ω n −1 ) .
n
2πi
Remark 11 (Which root of unity?). The nth root of unity we use doesn’t have to be ω = e n ; it can
be ω k for any k relatively prime to n, but I’ve never seen a question where ω won’t work when
ω k will.
Example 12
Evaluate
10 10 10 10 10 10
+ + + + + .
0 2 4 6 8 10
Walkthrough.
1. What should we have as the value of n here? What is our P( x )? (Hint: use binomial
theorem!)
(1+1)10 +(1−1)10
2. Show that the desired sum is equivalent to 2 , and conclude.
The above example uses the 2nd roots of unity, but −1 and 1 aren’t enough to justify the
use of complex numbers. We’ll see a better use of roots of unity in action below.
Example 13
Evaluate
10 10 10
+ + .
2 5 8
Walkthrough.
2. Why doesn’t the P( x ) in our previous problem work? There is an additional reason
besides “the common differences are different.”
3. How can we edit P( x ) so that the coefficients of the terms with degree a multiple of
n are precisely (10 10 10
2 ), ( 5 ), ( 8 )? (Hint: consider dividing by a power of x.)
13
NICE Journal NICE Committee (Second Edition)
2πi
4. Prove that if ω = e 3 , then the desired sum is equivalent to
N 1 n
∑ m + kn xm+kn = n ∑ (ω k )−m (1 + ω k · x) N ,
k ≥0 k =1
Moral
The real power of ROUF comes when evaluating how many ways for something to
happen such that some parameter is a multiple of some number n. These problems
can be tackled using a generating function and then applying ROUF.
For example, the examples above could have instead been rephrased as:
• Reworded from example 12: How many ways are there to choose a subset with
even size out of 10 distinct objects?
• Reworded from example 13: How many ways are there to choose a subset of k
objects out of a set of 10 distinct objects such that k ≡ 2 (mod 3)?
Although the computations may become very messy in the following problem, can you
see the idea behind the solution for it?
Illustrate an idea How many ways are there to choose a subset of k objects out of a
set of 2021 distinct objects such that k ≡ 2 (mod 3) or k ≡ 1 (mod 4)?
It’s just two-set PIE: add the ways for each modulo, then subtract the overlap.
â2.2 Examples
This next problem is a repeat of the ones before but just for insurance:
Example 15
Compute
1000
∑ 3k
.
k ≥0
2πi
Walkthrough. Let f (n) equal 1 when 3 | n and 0 otherwise, and let ω = e 3 be a 3rd root
of unity.
2. For what value of y (in terms of x) can we change x m yn to x m−n ? Let g( x ) = f ( x, •),
where • is the new value of y.
3. Apply ROUF on g with the 4th roots of unity.
15
NICE Journal NICE Committee (Second Edition)
Walkthrough. Suppose that the colors are 0, 1, 2, 3. Clearly the difference between the
colors in adjacent sections is 1, 2, or 3 modulo 4. Define the number at each border
between sections to be this difference.
3. If we go around the ring and the colors have increased by n, what must n be
divisible by to ensure that the color of the section we started with is still the right
color? Let the number n is divisible by be m.
4. Apply ROUF on A( x ) with the mth roots of unity to finish.
See the solutions for other interesting ways of solving the problem, one using linear
algebra, and another using chromatic polynomials.
â2.4 Problems
Silly example:
16
NICE Committee (Second Edition) NICE Journal
Problem 11 (AMC 10B 2021/16). Call a positive integer an uphill integer if every digit is
strictly greater than the previous digit. For example, 1357, 89, and 5 are all uphill integers,
but 32, 1240, and 466 are not. How many uphill integers are divisible by 15?
Problem 14. Three regular 7-sided dice, two regular 5-sided dice, and one regular 4-
sided die are rolled. The probability that the 6 dice sum to a number divisible by 3 can be
expressed as m n , where m and n are relatively prime positive integers. Find m.
Problem 15 (IMC 1999/8). We roll a regular die n times. What is the probability that
the sum of the numbers shown is a multiple of 5?
Problem 16 (AIME I 2018/12). For every subset T of U = {1, 2, 3, . . . , 18}, let s( T ) be the
sum of the elements of T, with s(∅) defined to be 0. If T is chosen at random among all
subsets of U, the probability that s( T ) is divisible by 3 is m
n , where m and n are relatively
prime positive integers. Find m.
Problem 18 (HMMT February Combinatorics 2012/10). Jacob starts with some com-
plex number x0 other than 0 or 1. He repeatedly flips a fair coin. If the nth flip lands
heads, he lets xn = 1 − xn−1 , and if it lands tails he gets xn = x 1 . Over all possible
n −1
choices of x0 ; what are all possible values of the probability that x2012 = x0 ?
17
NICE Journal NICE Committee (Second Edition)
n −1
kπ
2n
f (n) = ∑ cos n
.
k =0
Compute
∞
f (k)
∑ k
.
k =2 k · 2
Problem 20 (PUMaC Live 2018/4.3). Let 0 ≤ a, b, c, d ≤ 10. For how many ordered
quadruples ( a, b, c, d) is ad − bc a multiple of 11?
Problem 22 (Putnam 1974/B6). Let S be a set with 1000 elements. Find a, b, c, the
number of subsets R of S such that | R| ≡ 0, 1, 2 (mod 3), respectively. Find a, b, c if
|S| = 1001 instead.
Problem 23 (MOP 1999). There are n points on a unit circle such that the product of the
distances from any point on the unit circle to the given points is at most 2. Prove that the
given n points must be vertices of a regular n-gon.
18
3 Incenter Miquel
Basic knowledge of inversion and projective geometry is assumed.
â3.1 Notation
We will introduce some notation that we will use for the rest of the article. Although we
would eventually be forced to use some of the point names for different purposes, we
hope the purpose is clear from the context.
Notation
• We denote the circle passing through the n concyclic points A1 , . . . , An as
( A1 · · · An ), the circumcircle. If there are only two points ( AB), then it denotes
the circle with diameter AB.
• For some 4 ABC, let M A denote the midpoint of arc BC not containing A
in ( ABC ). Furthermore, let MBC denote the midpoint of arc BAC in ( ABC ).
Similarly define MB , MC , MCA , M AB .
• Let M denote the midpoint of side BC in 4 ABC.
• Let A0 denote the A-antipode in ( ABC ), and let D 0 denote the D-antipode in
( DEF ).
• Let R = ( AI ) ∩ ( ABC ) (the intersection of the two circles) distinct from A.
• Let S ∈ EF (S lies on the line EF) satisfy DS ⊥ EF (DS and EF are perpendicu-
lar).
• Let P = DS ∩ ( DEF ) distinct from D, and Q = AP ∩ ( DEF ) distinct from P.
• Let T = AP ∩ ( ABC ) distinct from A.
19
NICE Journal NICE Committee (Second Edition)
• Let G = AR ∩ BC.
The diagram featured on the title page conveys all of these points.
MBC
A
R
P 0 J E
F S M
I
B
D M
MA
Consider the spiral similarity taking EF to BC. Note the similarity is centered at R by
using the Miquel point of EFBC. Now, this implies it sends ( AFIE) to ( ABC ), so as I is
the midpoint of arc EF, I goes to M A . Similarly, A goes to MBC .
Now, we can easily angle chase to get
1
∠ PFE = ∠ PDE = ∠SDE = 90◦ − ∠SED = 90◦ − ∠ FED = ∠ B = ∠ IBC
2
and similarly with ∠ PEF gives that 4 PFE ∼ 4 IBC. In particular, if the spiral similarity
f centered at R maps F 7→ B and E 7→ C, then
f ( P) = I f (S) = D f ( I ) = MA
20
NICE Committee (Second Edition) NICE Journal
However, we know that SD k I M A (both are perpendicular to EF). Since R is the spiral
center taking SI to DM A , hence it is also the center of a spiral similarity g which takes
SD to I M A .So g is a homothety for the two mentioned lines. Inverting about the incircle,
we note that we switch R and S, so R, S, I are collinear. Thus, we have the following
fact:
Lemma 18
In the said configuration, R, D, M A are collinear.
Proof. From our above discussion on g being a homothety and R, S, I being collinear,
their images are also collinear, so R, D, M A are collinear.
In addition, we have the following claim:
Lemma 19
I, MBC , J are all collinear.
MMBC AM0 I J⊥
= =
MM A M0 I J⊥ MBC
where the first relation follows by the first spiral similarity mentioned and the second
one follows by using Thales’ theorem on EF k AMBC . Thus, we get that MJ⊥ k AI, but
as AI ⊥ EF, we have MJ⊥ ⊥ EF. Thus, J = J⊥ .
The reader might want to take a look at the following exercises:
Exercise 20 (USAJMO 2014/6). Let ABC be a triangle with incenter I, incircle γ and circumcircle
Γ. Let M, N, P be the midpoints of sides BC, CA, AB and let E, F be the tangency points of γ
with CA and AB, respectively. Let U, V be the intersections of line EF with line MN and line
MP, respectively, and let X be the midpoint of arc BAC of Γ.
(a) Prove that I lies on ray CV.
(b) Prove that line XI bisects UV.
The above problem is incinerated by the Iran lemma and our mentioned claim.
Exercise 21 (EMMO Seniors 2016). In 4 ABC, let point D be the tangency point of incircle ω with
side BC. Analogously define E and F for sides AC and AB respectively. Let P be the feet of
_
the perpendicular from D to EF. Let N be the midpoint of arc ABC of circumcircle Γ of 4 ABC.
Prove that the lines AP and ND concur on Γ.
21
NICE Journal NICE Committee (Second Edition)
Exercise 22 (CMIMC Tiebreaker 2018/G3). Let ABC be a triangle with incircle ω and incenter I.
The circle ω is tangent to BC, CA, and AB at D, E, and F respectively. Point P is the foot of
the angle bisector from A to BC, and point Q is the foot of the altitude from D to EF. Suppose
AI = 7, IP = 5, and DQ = 4. Compute the radius of ω.
MBC
A
R
D0
P J E
F
L
K
I
G
B
D M
T
MA
Lemma 23
T is the A-mixtillinear touchpoint.
Proof. Note that P and D 0 are reflections of each other in AI, as PD 0 k EF. This means that
AP and AD 0 are isogonal, so as AD 0 is the A-nagel cevian. This implies the mixtillinear
touchpoint lies on AP, so T is indeed the said touchpoint.
Lemma 25
Recall that G := AR ∩ BC. Then
G ≡ RA ∩ BC ∩ KL ∩ TM A
22
NICE Committee (Second Edition) NICE Journal
Proof. By using radical axes on ( AI ), ( BIC ), ( ABC ), we see that AR, KL, BC all concur.
As AR ∩ BC = G, we have that G ∈ KL. Similarly, using radical axis on ( I M A ), ( BIC ),
and ( ABC ), we see that BC, KL, TM A concur. As G = BC ∩ KL, we have that G ∈ TM A ,
which completes the proof.
MBC
A
R
P Y
J E
S
Z X F
L
X1 K
I
G
B
D M
MA
Now, let’s talk about X1 . We have the following concurrencies and concyclities:
Lemma 27
X1 , R, MBC are collinear and X1 , R, S, D are concyclic.
Proof. Notice that (SX1 D ) is the S-Apollonian circle of 4SBC, so taking a spiral similarity
of R gives
RB FB BS
= =
RC EC SC
which implies that R is also on the S-Appolonius incircle. Thus, X1 , R, S, D are concyclic.
In addition, DX1 is the diameter, so we have DR ⊥ RX1 , As DR = DM A ⊥ RMBC , we
see that X1 , R, MBC are collinear.
23
NICE Journal NICE Committee (Second Edition)
Lemma 28
4 RDX1 , 4 RIG, and 4 RSZ are similar.
Proof. Notice that ] RIG = ] RDG = ] RDX1 and from our above discussion, ]X1 RD =
]GRI = π2 . Thus the first two triangles are similar. Furthermore, SZ = EF k IG, which
means that the last two triangles are similar.
We have the following claim:
Lemma 29
GI is tangent to ( X1 GR).
Lemma 30
Let f is the spiral similarity at R discussed before. Then
f ( Z ) = X1 .
Proof. To see this, just note that Z ∈ EF. Thus, as f ( EF ) = BC, we see that f ( Z ) ∈ BC.
However, we also have that ]X1 RZ = ] IRD, so as ] IRD is the angle of the spiral
similarity, f ( Z ) = X1 .
Let’s see another tangent line:
Lemma 31
BC is tangent to ( RZX1 ).
Lemma 32
If K1 be the midpoint of DX1 , then ZK1 ⊥ OI.
Proof. Note that ZR · ZA = ZE · ZF imples Z lies on the radical axis of ( ABC ) and ( DEF ).
Also by midpoint of Harmonic Bundle Lemma, we have
MBC
A
R
P Y
0 J E
S M
Z X F
Z1 L
K
I
G
B
D M
A0
MA
Lemma 33
S lies on the radical axis of ( AZZ1 ) and ( A0 EF ).
Proof. Note that Z1 ∈ ( A0 EF ), ZRM0 I is cyclic, ZZ1 M0 A is cyclic, and S is the orthocenter
of 4 AZI. Thus, ZS · SM0 = IS · SR = SE · SF, because the reflection of S over M0 lies on
( AI ) and the inversion about the incircle sends S to R and A to M0 , so PoP on ( AI ) yields
the desired.
Exercise 34 (ELMO SL 2019/G3). Let 4 ABC be an acute triangle with incenter I and circumcenter
O. The incircle touches sides BC, CA, and AB at D, E, and F respectively, and A0 is the reflection
of A over O. The circumcircles of ABC and A0 EF meet at G, and the circumcircles of AMG and
A0 EF meet at a point H 6= G, where M is the midpoint of EF. Prove that if GH and EF meet at
T, then DT ⊥ EF.
25
NICE Journal NICE Committee (Second Edition)
Exercise 35 (ELMO 2010/6). Let ABC be a triangle with circumcircle ω, incenter I, and A-excenter
I A . Let the incircle and the A-excircle hit BC at D and E, respectively, and let M be the midpoint
of arc BC without A. Consider the circle tangent to BC at D and arc BAC at T. If TI intersects ω
again at S, prove that SI A and ME meet on ω.
J0
MBC
A
R
P Y
M0 J E
S
Z X F
X1 I
G Q
B
D M
T
MA
Lemma 36
If EF ∩ ( ABC ) = { X, Y }, then we have ( XYQDM ) is concyclic.
Proof. We first prove that M ∈ ( DXY ). Note that RMBC DM is cyclic by the shooting
lemma. Note that
X1 D · X1 M = X1 R · X1 MBC = X1 X · X1 Y
Showing that Q ∈ ( DXY ) is a bit more trickier:
26
NICE Committee (Second Edition) NICE Journal
Claim —
Q ∈ ( DXY )
We will introduce two very special points which are very closely related to the standard
orthocenter configuration, namely Queue and Ex Points. Surprisingly, the will aid a lot of
our proofs that follow in this article. We wil now define them.
Remark 37 (The A-Queue point of 4 ABC). If we let B0 , C 0 to be the feet of altitudes from B, C
onto CA, AB, with BB0 ∩ CC 0 ≡ H, then the A-Queue point of 4 ABC, Q A is defined as
Q A ≡ ( AB0 HC”) ∩ ( ABC ).
Remark 38 (The A-Ex point of 4 ABC). If we let B0 , C 0 to be the feet of altitudes from B, C onto
CA, AB, with BB0 ∩ CC 0 ≡ H, then the A-Ex point of 4 ABC, Q A is defined as X A ≡ B0 C 0 ∩ BC.
√
Remark 39. Q A and X A are inverses of each other in the circle ( A, AB0 · AC )
If the reader is interested, they should have a look at The Ex-points and the Queue-
points Part One and Part Two for more interesting properties.
Approach 1; Using Orthic Axis. Note that −1 = (SQ : EF ) =⇒ Q is the D-Queue point
of triangle DEF. Let DQ ∩ EF = XD .
Then it is well known that XD is the D-Ex point in 4 DEF. So XD lies on the orthic
axis of 4 DEF, which is the radical axis of ( DEF ) and the circumcircle of its tangential
triangle, that is ( ABC ). Thus we have
XD X · XD Y = XD E · XD F = XD Q · XD D
Remark 40. Radical axes on ( ARSM0 ), ( AI ),and ( DQSM0 ) give that Z = XD (!) So Z is the
D-Ex point of 4 DEF
and similarly for S, implying that ( DSM0 ), ( DQ0 XY ), and ( DEF ) are coaxal. Thus,
Q0 ∈ ( DSM0 ) ≡ ( DM0 ). We present two ways to finish from the second approach:
First Finish. Note that Q0 becomes the D-Queue point of 4 DEF. So Q = Q0 (!)
Second Finish. We want AD 0 and AQ0 are isogonal. In other words, if K = AMBC ∩ M0 Q0 ,
then we need −1 = (KM0 ; Q0 D 0 ). This is again equivalent to proving that ( M0 K ) is
orthogonal to the incircle.
To do this note that A ∈ ( M0 K ), so since we have I M0 · I A = r2 (where r is the radius
of the incircle), we are done!
Having done this, lets take a look at some contest problems destroyed by the lemma. We
will suitably change the notation in the problems presented to suit the notation used so
far in the article.
Solution. Note that we have ]QIT = ] BDQ = ]QJ 0 J. This implies QJ 0 J I is cyclic. So T
lies on the radical axis of ( AI J ) and ( DXY ).
Example 43
Prove that the line I MBC is the perpendicular bisector of QD.
Solution. This follows from the fact that TA and TD are isogonal in ] BTC and IQ =
ID.
These exercises will be left for the reader.
28
NICE Committee (Second Edition) NICE Journal
O0 R A
M 0 MBC
F P N
S E
B I
Q K1
U
D
T L
D1
MA
29
NICE Journal NICE Committee (Second Edition)
Claim —
U ≡ U0
and
]UD1 A = ] BD1 A = π − ] B − ] BAD1
Now, we note AD1 , AT are isogonal in ] BAC, so ]UD1 A = ]U MBC A, so indeed
U 0 ≡ U.
All poles and polars are taken with respect to ( DEF ). Now note that, by La Hire, U, M0 N
are collinear if and only if their polars are concurrent.
It is easy to note that the polar of M0 is AMBC . By a previous example, we have that
the polar of U is DQ. Also the polar of N is just the line through M’ perpendicular to DI.
(Remark that by La hire M0 lies on the polar of N).
Let K = DQ ∩ AMBC . Note that KAM0 Q is cyclic with diameter (KM0 ).We need to
prove that KM0 ⊥ DI. Note that M0 Q and IT are parallel, so we have
So if KM0 cuts M A MBC at some point K1 , then KAK1 M A is cyclic, so KM0 is perpendicular
M A MBC which gives KM0 ⊥ DI.
Now we present some easy facts for the reader to ponder on. Let O0 denote the midpoint
of KM0
The point N is famous as the IMO 2019/6 concurrency point. We present an auxiliary
lemma which is helpful in solving the IMO problem itself.
Lemma 51
If L = AI ∩ BC, then ( ARQDLN ) is a cyclic hexagon
Proof. Note that N ADL is cyclic due to obvious reasons. By Shooting Lemma,
M A L · M A A = M A D · M A R =⇒ ARDLN is cyclic
MBC
A
R
P E
F S
W1
Y1
Z Z1 I
Q
U O
B C
D
MA
The presence of so many circles motivates looking at radical axes. Indeed,note that by
31
NICE Journal NICE Committee (Second Edition)
Radical axes on ( AVE), ( AVF ) and ( DEF ), we have that FZ1 , EY1 and AV concur at a
point, say W.
Since FZ1 Y1 E seems to be our chief quadrilateral, we will introduce W1 = FY1 ∩ EZ1
and Z 0 = Y1 Z1 ∩ EF. The reader might have already guessed what’s going on. Since
EFZ1 Y1 is a cyclic quadrlateral, we have IW1 ⊥ Z 0 W. So we need to prove that OI ⊥ Z 0 W.
However note that because we have WY1 · WE = WV · WA, this implies that W lies on
the radical axis of ( ABC ) and ( DEF ).
Hence,we realize that Z 0 must also lie on this radical axis. But since Z 0 ∈ EF, so Z 0
must actually be Z. So we now seek to prove that Z 0 = Z. It turns out that proving
Z 0 = Z, or equivalently Z 0 , R, A are collinear, is just a matter of cross ratio chasing. All
poles and polars are taken with respect to the incircle.
Remark that we have, by definition,
R
−1 = ( A, I; E, F ) = ( Z, S; E, F )
By La Hire, we also know that A lies on the polar of Z 0 . So the polar of Z 0 is just AV. So S
lies on the polar of Z 0 . Hence,we may write
−1 = ( Z 0 , S; E, F )
We now leave the following exercise to the reader, which justifies the title of this prob-
lem.
Exercise 53. Prove that W1 is the Isogonal Mittenpunkt Point ( X57 ) of 4 ABC.
32
NICE Committee (Second Edition) NICE Journal
X A K P Y
T
T0
M E
F
I
G
B C
D D0
TA
MA
We claim that G is the desired concurrency point We will prove a series of claims:
This implies that EFXY is cyclic. Next, note that we also have
B
] AXD = ] FDB = π −
2
We also have
B
] AFX = ]XFA = ] BFD = π −
2
Claim — G ∈ ( DXY )
Proof. Let D ∗ denote the D-antipode in ( DXY ). We have ] DGT = ] DGA = π2 . But
since A, T, D ∗ are collinear, we have that ] DGD ∗ = π2 . Thus, G ∈ ( DXY ). Hence, the
claim is proven.
Now note that G is the D-Queue point in 4 DXY. So we completely rephrase the problem
in terms of 4 DXY as follows.
Restated in terms of 4 DXY Let 4 ABC be a triangle with orthic triangle as 4 DEF.
Let G and Q be the D-Queue points of 4 ABC and 4 AEF. Let I denote the midpoint
of AH. Let QH ∩ BC = P. Prove that ( MPQ) and ( ABC ) are tangent to each other
at G, where M is the midpoint of BC.
34
NICE Committee (Second Edition) NICE Journal
A
Q
E
G
N
F
H L
K B P D M C
HA
Let M and N denote the midpoints of BC and EF respectively. Note that H, N and Q are
collinear.
First note that since AQDP and AGDM are cyclic quadrilaterals, hence, we can use a
simple Power of Point trick.
We have
PH · HQ = AH · HD = HG · HM
so MPQG is cyclic. Remark that we had proved earlier that G, Q are reflections of each
other in MI. In particular, we have EF k GQ. Let the tangent to G at ( ABC ) hit BC at K.
Let H A be the reflection of H in BC.
Since we have −1 = ( GH A ; BC ), hence KH A is tangent to ( ABC ) at H A . Further, since
( BHC ) and ( ABC ) are reflections of each other about BC, hence KH is tangent to( ABC ).
Hence KH is anti-parallel to BC and hence parallel to EF.
Now to finish off, we will proceed by radical axes. We want that KH A is tangent to
( MPH A ). Thus, we we basically need ]KH A P = ] BMH A .
35
NICE Journal NICE Committee (Second Edition)
We will just do an angle chase. Note that G is the Miquel point of BFEC and the spiral
similarity centered at G that sends FE 7→ BC also sends N 7→ M.
So we have
]KH A P = ]KHP = ] FNH = ]GQH = ]GQN = ] NGQ = ]GNF = ]GMB
]GMB = ] HMK = ]KMH A = ] BMH A
so by radical axes on ( ABC ), ( PMH A ), ( MPQ), we win!
Z2
A
Y
R
E
X P
F S
Z1
G B D C
MA
Lemma 55
XYBC has an incircle.
36
NICE Committee (Second Edition) NICE Journal
Lemma 56
XYBC has a circumcircle.
Proof.
So yes, the title of the section does make sense. XYCB is our very own induced bicentric
quadrilateral.
Lemma 57
RAYX is a cyclic quadrilateral.
Solution. We will use a small fact that inversion with center A and radius AI swaps the
A-mixtilinear incircle and the incircle of 4 ABC. We will also use another small claim,
which is indeed trivial. Yet we will state it.
Claim (Rephrased Fact 5) — In any triangle 4 XYZ with K as the midpoint of arc YZ
not containing X in ( XYZ ), the incenter I of the triangle is the intersection of XK and
(KYZ ) which lies closer to X.
midpoint of arc Z10 Z20 As I is the incenter of 4 MZ10 Z20 , therefore 4 MZ10 Z20 and 4 ABC
would share the same incircle.
Perform an inversion with center A and radius AI. It swaps the A-mixtilinear incircle
with the incircle. So, P and T are swapped. Now the conclusion trivially follows as
( ABC ) (image of Z10 Z20 ) is tangent to the A-mixtilinear incircle (image of the incircle) at T
(image of S). The problem is thus solved.
The reader might want to have a look at the following exercises:
Exercise 60 (OMO Spring 2020/15). Let ABC be a triangle with AB = 20 and AC = 22. Suppose
its incircle touches BC, CA, and AB at D, E, and F respectively, and P is the foot of the
perpendicular from D to EF. If ∠ BPC = 90◦ , then compute BC2 .
Exercise 61. Prove that ( AXY ) is tangent to the A-mixtilinear incircle at a point on AD.
Exercise 62 (Due to math-pi-rate). Let tangents from M A to ( I ) hit ( I ) at U1 and V1 .Prove that
4 PU1 V1 and 4 DEF share the same nine point circle.
â3.10 Problems
We finally present a bunch of practice problems for the reader. Try invoking the machinery
we have developed throughout the article. The problems are quite nice and we encourage
the reader to try them. Enjoy!
Remark 63. A few of the following problems might require knowledge the “Iran incenter lemma.”
If the reader is unfamiliar with the lemma, then the article here is a fantastic one to learn it.
Problem 24 (CJMO 2019/3). Let I be the incenter of 4 ABC, and M be the midpoint
of BC. Let Ω be the nine-point circle of 4 BIC. Suppose that BC intersects Ω at a point
D 6= M. If Y is the intersection of BC and the A-intouch chord, and X is the projection of
Y onto AM, prove that X lies on Ω, and the intersection of the tangents to Ω at D and X
lies on the A-intouch chord of 4 ABC.
Note. The nine-point circle of 4 ABC is the circumcircle of its medial triangle, and if
the incircle touches AC and AB at E and F, respectively, then EF is the A-intouch chord.
Problem 25 (GGG 2.3, Andrew Wu). Acute, scalene 4 ABC is given with circumcircle
Γ and intouch triangle DEF; D, E, F lie on BC, CA, AB respectively. L is the midpoint of
_ ←→ ←→ ←→
arc BAC. G is the intersection of EF and BC; T lies on EF with DT ⊥ EF. P lies on LG
→ ←
← →
with PT k BC. K lies on Γ such that KT bisects ∠EKF; K and A are not on the same side
←
→ ←→
of EF. If A0 is the antipode of A on Γ, then show that A0 K, the line passing through T
38
NICE Committee (Second Edition) NICE Journal
←
→
and the midpoint of DG, and the perpendicular from P to EF concur.
Problem 26 (GGG 2.6, Andrew Wu). Let ABC be an acute, scalene triangle with incenter
_
I and circumcircle Γ; A0 is the antipode of A on Γ, and L is the midpoint of arc BAC. The
←→ ←→ ←→
incircle of 4 ABC meets BC at D. Suppose that A0 I and BC meet at P, and that AP and
←→ ←→
DI meet at Q; X 6= L is the intersection of LQ and Γ. Show that the circumcircles of
4 XDQ and 4 IDP are orthogonal.
Problem 27 (GGG 3.3, Andrew Wu). Let ABC be a scalene triangle with incenter I
and incircle ω. Let K be a point lying on the circumcircle of triangle ABC such that
∠ AKI = 90◦ , and suppose that ω meets BC, CA, AB at D, E, F, respectively. Suppose that
←→
KD meets ω at points D and X. Show that the line joining the circumcenters of triangles
BFX and CEX is parallel to BC.
Problem 28 (GGG 3.6, Andrew Wu). Let ABC be a scalene triangle with incenter I and
circumcircle Ω; L is the midpoint of arc BAC and A0 is diametrically opposite A on Ω. D
←
→ ←
→
is the foot of the perpendicular from I to BC. LI meets BC and Ω at X and Y, respectively,
←→ ← → ←→ ←→
and LD meets Ω again at Z. XZ meets A0 I at T. DI meets the circle with diameter AI
←
→
again at P. Show that the second intersection between PT and the circle with diameter
AI lies on AY.
Problem 29 (Romania JBMO TST 2019/3). Let ABC a triangle, I the incenter, D the
contact point of the incircle with the side BC and E the foot of the bisector of the angle A.
If M is the midpoint of the arc BC which contains the point A of the circumcircle of the
triangle ABC and { F } = DI ∩ AM, prove that MI passes through the midpoint of EF.
Problem 30 (Iran TST 2008/10). In the triangle ABC, ∠ B is greater than ∠C. T is the
midpoint of the arc BAC from the circumcircle of ABC and I is the incenter of ABC. E is
a point such that ∠ AEI = 90◦ and AE k BC. TE intersects the circumcircle of ABC for
the second time in P. If ∠ B = ∠ IPB, find the angle ∠ A.
39
NICE Journal NICE Committee (Second Edition)
Problem 32 (trumpeter’s PoTD Forum 1/10/16). 4 ABC has its incircle ω tangent to
BC, CA, AB at D, E, F respectively. Let ` be the line through A parallel to BC, and let DE,
DF intersect ` at M, N respectively. Let P be the intersection of NE with MF, and let Γ be
the circumcircle of 4 NPM; finally, let AD intersect Γ at a point X such that X, P are not
on the same side of `. Prove that P, X are antipodal points with respect to Γ.
Problem 33 (tworigami). Let ABC be a triangle with incircle centered at I and tangent
to BC, AC, AB at D, E, F respectively. Let K denote the foot of the altitude from D to EF,
and let Ω denote the circumcircle of 4 BIC. Points P and Q are chosen on AC and AB
respectively so that ∠ AIP = ∠ AIQ = 90◦ . Let the circumcircle of 4KDP intersect Ω at
points B1 and B2 and define points C1 and C2 similarly. Furthermore, let the circle with
diameter DK intersect Ω at points A1 and A2 . Prove that B1 B2 , C1 C2 , A1 A2 concur on
DK.
Problem 35 (POGCHAMP 2020/3). Scalene triangle ABC has incenter I, incircle ω, and
circumcircle Ω. Let ω touch BC, CA, AB at D, E, F respectively. Let PA be the point on Ω
such that APA ⊥ PA I, and let Q A be the point on ω such that AI k DQ A . Lines AD and
PA Q A meet at S A . Points PB , PC , Q B , QC , SB , and SC are defined analogously. Prove that
DS A ESB FS 9
+ + C < .
AS A BSB CSC 2
Problem 36 (POGCHAMP 2020/4). Let 4 ABC have incircle ω, and suppose ω touches
sides BC, CA, and AB at D, E, and F, respectively. P is the point on ω such that DP ⊥ EF,
and let OB and OC be the circumcenters of 4 BFP and 4CEP, respectively. Prove that
OB OC = 12 BC.
Problem 37. Given a acute, scalene 4 ABC with incenter I and contact triangle 4 DEF
R ∈ ( DEF ) such that DR ⊥ EF. Let DR ∩ EF = P. Let (Y ) and ( Z ) denote the
circumcircles of ( BPF ) and (CPE).Let U, V denote the points of intersection of EF with
(Y ) and ( Z ) respectively, Finally, let EF intersect BI, CI at K, L respectively. Prove that
FL EV
= .
FU EK
40
NICE Committee (Second Edition) NICE Journal
Remark 64. An interested reader should check out On a rich configuration related to tangent circles
in a triangle by Navneel Singhal.
41
4 Multiplicative Functions
Basic knowledge of some number theory and sum and product notations is assumed.
â4.1 Dictionary
To motivate this handout, here are a few common multiplicative functions, some more
trivial than others.
• The identity function id on the naturals maps each positive integer to itself.
• The divisor function τ (n) on the naturals counts the number of divisors of a given
positive integer.
e
If the integer n can be written as ∏i pi i for distinct primes pi and exponents ei , then
τ (n) = ∏i (ei + 1) by constructive counting on the individual primes.
• The sum of divisors function σ (n) on the naturals taking each positive integer to the
sum of its positive integral divisors including itself.
e
Similar to the divisor function, if the integer n can be written as ∏i pi i for distinct
e e −1
primes pi and exponents ei , then σ(n) = ∏i ( pi i + pi i + · · · + 1) by considering
all possible exponents of pi in each divisor.
• The Euler phi function φ(n) on the naturals taking each integer n to the number of
integers less than n and relatively prime to it.
e
If the integer n can be written as ∏i pi i for distinct primes pi and exponents ei ≥ 1,
then one can show that
1
φ(n) = n · ∏ 1 − .
i
pi
• The Möbius function µ(n) on the naturals is defined as follows: if n is 1 then µ(n) =
1, if n = ∏ik=1 pi for distinct primes pi then µ(n) = (−1)k , and if n is divisible by a
particular prime twice, µ(n) = 0.
This function is clearly multiplicative by its definition.
What all of these functions have in common is that they are multiplicative: if f is one of
these functions and m, n are relatively prime positive integers, then f (mn) = f (m) f (n).
In fact, the first function is totally multiplicative because the relatively prime part can be
ignored: for all positive integers m, n, we have id(mn) = id(m)id(n). Thus, if we want to
understand a multiplicative function, we only have to look at its values on prime powers
pk .
Walkthrough.
1. Prove f is multiplicative.
2. Look at how f behaves on prime powers pk with p small and determine the maxima.
3. Prove that for large primes p, a prime power pk has maximum f ( pk ) for k = 0.
The main idea in the above solution was that f being multiplicative gave us the ability to
maximize f for each individual prime and thus limit our scope in a useful way.
Exercise 66 (PUMaC Number Theory 2010/A2). Find the largest positive integer n for which
σ(n) = 28.
is also multiplicative.
Proof. To show this function is multiplicative, note that for relatively prime m and n we
have mn m n
( f ∗ g)(n) = ∑ f (d) g = ∑ ∑ f ( d1 d2 ) g ·
d|mn
d d1 | m d2 | n
d1 d2
m n
= ∑ f ( d1 ) g ∑ f ( d2 ) g d2
d |m
d 1 d |n
1 2
= ( f ∗ g)(m) · ( f ∗ g)(n).
Here are some examples of Dirichlet convolutions so that the definition does not appear
to come out of nowhere:
• ( f ∗ e)(n) = f (n) for all multiplicative f
• τ (n) = (1 ∗ 1)(n)
• σ(n) = (id ∗ 1)(n)
This is enough to solve the following problem.
• f (1) = 1,
e e
• If n = p11 p2e2 · · · pkk for distinct primes pi and nonnegative integers ei , then
f (n) = (−1)e1 +···+ek .
Find
2019
∑ ∑ f ( d ).
i =1 d | i
Walkthrough.
1. Prove f is multiplicative.
44
NICE Committee (Second Edition) NICE Journal
Here is a slightly harder example based on the same premise (although it avoids citing
Dirichlet convolutions).
Walkthrough.
gcd(m,n)
1. Write lcm(m,n) in a way more conducive to multiplicativity shenanigans, that is,
breaking the problem into dealing with individual primes.
gcd(m,t/m)2
2. Determine why t is a useful expression.
4. Finish.
35 | ∑ τ ( t )3 .
t|n
Walkthrough.
2. Worry about 5 and 7 dividing ∑t|n τ (t)3 separately, looking at prime powers for n.
∑ φ ( d ) = p k − p k −1 + p k −1 − p k −2 + · · · + p − 1 + 1 = p k .
d| pk
Remark 71. The idea of characterizing a multiplicative f in terms of its primes shows up heavily
in problems involving NT functions.
Theorem 72 (Inverse of µ)
The Möbius function µ is the inverse of 1.
Walkthrough.
1. Determine an with Möbius inversion.
2. For a particular prime p | n with p dividing n a total of e times, it is enough to show
pe | n.
3. Take the whole expression modulo pe and recall Euler’s totient theorem, this should
finish.
We conclude this section with a final difficult example.
46
NICE Committee (Second Edition) NICE Journal
Walkthrough.
1. What would be a good assumption on f ?
2. Look at prime powers.
â4.5 Problems
Problem 38 (AMC 12B 2021/7). Let N = 34 · 34 · 63 · 270. What is the ratio of the sum
of the odd divisors of N to the sum of the even divisors of N?
Remark 75. It is complete overkill to use multiplicative properties on the problem above. But
why not?
√
Problem 39. Show that τ (n) ≤ 3n.
Problem 41 (NEMO Team 2018/9). Find the sum of all N such that
n = 7τ (n).
47
NICE Journal NICE Committee (Second Edition)
Problem 42 (Elementary Number Theory, David Burton). Let F (n) = ∑d|n ( f (d)).
Prove that f (d) is multiplicative if and only if F (n) is multiplicative.
Problem 44 (Baltic Way 2019/16). For a positive integer N, let f ( N ) be the number of
ordered pairs of positive integers ( a, b) such that the number
ab
a+b
is a divisor of N. Prove that f ( N ) is always a perfect square.
a a
Problem 45 (Number Theory, George E. Andrews). Prove that if n = p11 p2a2 p33 ...prar ,
then
2a +1
p2a r +1
! !
p1 1 + 1 r +1
∑ dφ(d) = p1 + 1
·...·
pr + 1
.
d|n
Problem 47. Prove that for any positive integer n, the number of divisors of n of the form
4k + 1 is larger than the number of divisors of the form 4k + 3, where k is a nonnegative
integer.
Problem 48 (HMMT February Algebra-NT 2021/5). Let N be the product of the first
10 primes, and let
S = ∑ φ( x ) · y.
xy|n
48
NICE Committee (Second Edition) NICE Journal
Compute Sn .
Problem 49 (ISL 2004/N2). The function f from the set N of positive integers into itself
is defined by the equality
n
f (n) = ∑ gcd(k, n), n ∈ N.
k =1
(a) Prove that f (mn) = f (m) f (n) for every two relatively prime m, n ∈ N.
(b) Prove that for each a ∈ N the equation f ( x ) = ax has a solution.
(c) Find all a ∈ N such that the equation f ( x ) = ax has a unique solution.
Problem 50 (AMM 12003, Nikolai Osipov). Given an odd positive integer n, compute
n
gcd(k, n)
∑ .
k =1 cos2
πk
n
49
5 Titu’s Favorite Factoring Trick
â5.1 “Theory”
This entire article revolves around this single factorization, hereby dubbed “Titu’s Fa-
vorite Factoring Trick” (you’ll see why in the problem set).
Corollary 77
For all real numbers a, b, c,
1
a3 + b3 + c3 − 3abc = ( a + b + c ) ( a − b )2 + ( b − c )2 + ( c − a )2 .
2
50
NICE Committee (Second Edition) NICE Journal
Corollary 78
For all real numbers a, b, c,
a3 + b3 + c3 − 3abc = ( a + b + c)( a + bω + cω 2 )( a + bω 2 + cω ),
1
( a + bω + cω 2 )( a + bω 2 + cω ) = ( a − b )2 + ( b − c )2 + ( c − a )2
2
through direct expansion.
Corollary 79
For all real numbers a, b, c,
a + b + c = 0 =⇒ a3 + b3 + c3 = 3abc.
This last corollary is extremely useful, and it shows up in a ton of problems. Let’s see
some examples in action.
Example 80 √
√ 3 √
Reals a, b, c satisfy abc = 1 and 3 a + b + 3 c = 0. Find a + b + c.
Walkthrough. This is one of those problems that seems very hard to do if you don’t know
Titu’s Favorite Factoring Trick, but becomes straightforward after seeing it.
√ √3 √
1. What do we know if 3 a + b + 3 c = 0? (Explicit hint: use the corollary above!)
m3 + n3 + 99mn = 333 ?
Walkthrough.
2. One of the three factorizations above will help us weed out integer solutions quickly.
Which one?
3. Extract the answer.
Walkthrough. This, along with many other problems in the Mathematical Reflections
Journal proposed by Titu Andreescu, inspired the titular “Titu’s Favorite Factoring
Trick”.
1. The problem tries to hide the cubes by instead using cube roots. Make the substitu-
tion a = x3 , b = y3 . What alternative statement appears?
2. The first equation will be a perfect cube, so take its cube root. Which of the equations
is (probably) easier to write in the form a3 + b3 + c3 − 3abc?
Problem 51 (GGMT Speed 2020/2). Let p, q, r be the real roots of the polynomial x3 −
7x − 13. Evaluate p3 + q3 + r3 .
Remark 83. The problem is probably not intended to be solved with Titu’s Favorite Factoring
Trick, but I think it’s funnier that way.
52
NICE Committee (Second Edition) NICE Journal
Problem 54 (Putnam 2015/B1). An equilateral triangle has all of its vertices on the
graph of x3 + 3xy + y3 = 1. Find its area.
Problem 55. Prove that the triangle ABC is isosceles if and only if
√3
√
3
√
a − b + b − c + 3 c − a = 0.
y3 1
3
ln x + ln y = ln x + + .
3 9
1
2b x c3 + b x c{ x } + 2{ x }3 = .
108
53
NICE Journal NICE Committee (Second Edition)
Problem 62 (AMSP Admissions Test 2021/C.9). Find all positive integers m, n satisfy-
ing
m3 + 196(28 − 3m) n3 + 256(32 − 3n) = 2021.
Problem 63. Suppose that x, y, z are distinct real numbers such that
q
3 3
p p
( x − y) 1 − z3 + (y − z) 1 − x3 + (z − x ) 3 1 − y3 = 0.
Prove that
(1 − x3 )(1 − y3 )(1 − z3 ) = (1 − xyz)3 .
Problem 65 (Purple Comet HS 2021/21). Let a, b, and c be real numbers satisfying the
equations
a3 + abc = 26
b3 + abc = 78
c3 − abc = 104.
Find a3 + b3 + c3 .
√
3 √ √
3
Problem 66 (arqady). Let a, b and c be real numbers such that ab + 3
ac + bc ≥ 0.
Prove that ab + ac + bc ≥ 0.
54
NICE Committee (Second Edition) NICE Journal
Problem 68 (Purple Comet HS 2018/19). Suppose that a and b are positive real num-
1,030,301− a−b
√ √
bers such that 3 log101 3ab = 3 − 2 log101 ( ab). Find 101 − 3 a − 3 b.
a3 − b3 − c3 = 3abc,
(
a2 = 2( a + b + c ).
Problem 70 (Purple Comet HS 2019/23). Find the number of ordered pairs of integers
( x, y) such that
x2 y2 1
− = 3 2+ .
y x xy
√ √ √
What is the value of D( 6 x, 6 y, 6 z)?
Problem 72 (David Altizio). Suppose ABC is a triangle with angles measures A, B, and
C such that
Problem 73 (MR J479, Titu Andreescu). Let a, b, c be nonzero real numbers, not all
equal, such that
3 3 3
a2 b2 c2 a2 b2 c2 bc ca ab
−1 + −1 + −1 =3 + + − 2− 2− 2 .
bc ca ab bc ca ab a b c
55
NICE Journal NICE Committee (Second Edition)
Prove that a + b + c = 0.
Remark 84 (Samuel Zhou). This (the above problem) is the best problem of all time. Its comedic
value is astronomical.
Problem 74 (Putnam 2019 A1). Determine all possible values of the expression
A3 + B3 + C3 − 3ABC
Problem 75 (MR S546, Titu Andreescu). Find all triples of real numbers ( x, y, z) satis-
fying the system below.
3 3 1
x − 2xyz + y = 2
y3 − 2xyz + z3 = 1
z − 2xyz + x3 = − 23
3
√ √ √
Problem 76. Let a, b, c be the three real roots of x3 + x2 − 2x − 1. Find
3
3
a+ b+ 3
c.
x + 2z + 3 y + 2x + 3 z + 2y + 3
+ + = x+y+z
y−z z−x x−y
1 1 1 420
+ + = .
y−z z−x x−y (y − z)(z − x )( x − y)
3
p √ 3
p √
Problem 79. Let k be an integer and let n = k+ k2 + 1 + k− k2 + 1 + 1. Prove
that n3 − 3n2 ∈ Z.
56
NICE Committee (Second Edition) NICE Journal
Problem 80 (IWYMIC 2018/1/11). Find all pairs of real numbers ( x, y) satisfying the
system below. √ √
3 x − 3 y = 12
x+y+8 3
xy =
6
Problem 82 (CMIMC NT 2018/8). Find the unique set of positive primes { p, q, r } such
that
p3 + q3 + r 3
= 249.
p+q+r
if and only if
√ √
3
2
3
a+ b = a2 b2 .
57
NICE Journal NICE Committee (Second Edition)
1
Find a + 1b + 1c .
Problem 87 (Mock AIME 2017/10, Ankan Bhattacharya). Find the number of triples
of integers ( a, b, c) satisfying −100 ≤ a, b, c ≤ 100 and
3
a+b+c
= abc.
3
Problem 88 (US Algebra Math Open Winter 2015/14). How many functions f :
Z → Z are there such that f ( a3 ) = f ( a)3 for all a ∈ Z and f ( a3 ) + f (b3 ) + f (c3 ) =
3 f ( a) f (b) f (c) for all a, b, c ∈ Z satisfying a + b + c = 0?
Problem 89 (OMO Spring 2014/18). Find the number of pairs (m, n) of integers with
−2014 ≤ m, n ≤ 2014 such that x3 + y3 = m + 3nxy has infinitely many integer solutions
( x, y).
Problem 90 (MR J517). Let ( an )n≥1 be a sequence of positive real numbers such that
a1 = 1, a2 = 2 and
a3n+1 + a3n−1
+ an+1 an−1 = 3a2n .
9an
Find a closed form for an .
Problem 92 (MR S393). How many positive integers n exist such that n2 + 11 is prime
and n + 4 is a perfect cube?
Problem 93. Find the least real number r such that for each triangle with side lengths a,
58
NICE Committee (Second Edition) NICE Journal
b, and c, we have
max( a, b, c)
√
3
< r.
a3 + b3 + c3 + 3abc
Problem 97 (MR J489, Titu Andreescu). Prove that in any triangle ABC,
q q
8r ( R − 2r ) r (16R − 5r ) ≤ a3 + b3 + c3 − 3abc ≤ 8R( R − 2r ) (2R + r )2 + 2r2 .
(As usual, a = BC, b = CA, c = AB, r is the inradius, and R is the circumradius.)
√
4
√
3
Problem 98 (math.SE). Is 2+ 3 rational?
Problem 99 (Vietnam TST 2008/6). Consider the set M = {1, 2, . . . , 2008}. Paint every
number in the set M with one of the three colors blue, yellow, red such that each color is
used at least once. Define two sets:
S1 = {( x, y, z) ∈ M3 | x, y, z have the same color and 2008|( x + y + z)}.
S2 = {( x, y, z) ∈ M3 | x, y, z have three pairwise different colors and 2008|( x + y + z)}.
59
NICE Journal NICE Committee (Second Edition)
Problem 100 (ELMO 2017/6). Find all functions f : R → R such that for all real
numbers a, b, and c:
• If a + b + c ≥ 0 then f ( a3 ) + f (b3 ) + f (c3 ) ≥ 3 f ( abc).
Problem 101 (Putnam 1939/B7). Prove that a30 + a31 + a32 − 3a0 a1 a2 = 1, where
∞
x3n+i
ai = ∑ (3n + i )!
.
n =0
60
Editor’s Notes
Congrats, you made it to the end!
A short note
You may have noticed that the Incenter Miquel chapter includes its solutions to the
examples in the chapter rather than at the end (unlike the other chapters). This is because
many of the solutions are well-motivated and thus are worth reading in conjunction with
the rest of the material. The other chapters present their motivation in the walkthroughs
and therefore the solutions should only be read after the content is introduced.
61
A Key Parts
âA.1 List of Problems
Chapter 1
4 Example – Euclid 2021/2.c . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5 Example – Euclid 2014/3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
6 Example – blackpenredpen . . . . . . . . . . . . . . . . . . . . . . . . . . 8
7 Example – AoPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
8 Example – Instagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1 Problem – Fermat 2019/24 . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2 Problem – Own . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3 Problem – Own . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4 Problem – Own . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
5 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
6 Problem – Jeffrey Qin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
7 Problem – AIME 1987/14 . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
8 Problem – Purple Comet HS 2019/19 . . . . . . . . . . . . . . . . . . . . . 11
9 Problem – Purple Comet HS 2018/22 . . . . . . . . . . . . . . . . . . . . . 11
10 Problem – NICE Spring 2021/13, David Altizio . . . . . . . . . . . . . . . 11
Chapter 2
12 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
13 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
14 Exercise – Generating function for binomial ROUF . . . . . . . . . . . . . 14
15 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
16 Example – AMC 12A 2021/15 . . . . . . . . . . . . . . . . . . . . . . . . . 15
17 Example – AIME II 2016/12 . . . . . . . . . . . . . . . . . . . . . . . . . . 15
11 Problem – AMC 10B 2021/16 . . . . . . . . . . . . . . . . . . . . . . . . . 17
12 Problem – BMT Analysis 2015/7 . . . . . . . . . . . . . . . . . . . . . . . 17
13 Problem – AMC 12A 2017/25 . . . . . . . . . . . . . . . . . . . . . . . . . 17
14 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
15 Problem – IMC 1999/8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
16 Problem – AIME I 2018/12 . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
17 Problem – HMMT February Team 2015/7 . . . . . . . . . . . . . . . . . . 17
18 Problem – HMMT February Combinatorics 2012/10 . . . . . . . . . . . . 17
19 Problem – Titu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
20 Problem – PUMaC Live 2018/4.3 . . . . . . . . . . . . . . . . . . . . . . . 18
21 Problem – HMIC 2021/3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
62
NICE Committee (Second Edition) NICE Journal
Chapter 3
20 Exercise – USAJMO 2014/6 . . . . . . . . . . . . . . . . . . . . . . . . . . 21
21 Exercise – EMMO Seniors 2016 . . . . . . . . . . . . . . . . . . . . . . . . 21
22 Exercise – CMIMC Tiebreaker 2018/G3 . . . . . . . . . . . . . . . . . . . 22
34 Exercise – ELMO SL 2019/G3 . . . . . . . . . . . . . . . . . . . . . . . . . 25
35 Exercise – ELMO 2010/6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
41 Example – Taiwan TST 2019/2/2 . . . . . . . . . . . . . . . . . . . . . . . 28
42 Example – MR O451 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
43 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
44 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
45 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
46 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
47 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
48 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
49 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
50 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
52 Example – Fake USAMO 2020/3 . . . . . . . . . . . . . . . . . . . . . . . 31
53 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
54 Example – CAMO 2020/3 . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
58 Example – HMMT November Team 2016/10 . . . . . . . . . . . . . . . . 37
59 Example – SORY 2019/6, Aditya Khurmi . . . . . . . . . . . . . . . . . . 37
60 Exercise – OMO Spring 2020/15 . . . . . . . . . . . . . . . . . . . . . . . . 38
61 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
62 Exercise – Due to math-pi-rate . . . . . . . . . . . . . . . . . . . . . . . . . 38
24 Problem – CJMO 2019/3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
25 Problem – GGG 2.3, Andrew Wu . . . . . . . . . . . . . . . . . . . . . . . 38
26 Problem – GGG 2.6, Andrew Wu . . . . . . . . . . . . . . . . . . . . . . . 39
27 Problem – GGG 3.3, Andrew Wu . . . . . . . . . . . . . . . . . . . . . . . 39
28 Problem – GGG 3.6, Andrew Wu . . . . . . . . . . . . . . . . . . . . . . . 39
29 Problem – Romania JBMO TST 2019/3 . . . . . . . . . . . . . . . . . . . . 39
30 Problem – Iran TST 2008/10 . . . . . . . . . . . . . . . . . . . . . . . . . . 39
31 Problem – Sharygin CR 2020/21 . . . . . . . . . . . . . . . . . . . . . . . . 39
32 Problem – trumpeter’s PoTD Forum 1/10/16 . . . . . . . . . . . . . . . . 40
33 Problem – tworigami . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
34 Problem – buratinogigle . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
35 Problem – POGCHAMP 2020/3 . . . . . . . . . . . . . . . . . . . . . . . . 40
36 Problem – POGCHAMP 2020/4 . . . . . . . . . . . . . . . . . . . . . . . . 40
37 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Chapter 4
65 Example – AMC 12A 2021/25 . . . . . . . . . . . . . . . . . . . . . . . . . 43
63
NICE Journal NICE Committee (Second Edition)
Chapter 5
80 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
81 Example – AHSME 1999/30 . . . . . . . . . . . . . . . . . . . . . . . . . . 51
82 Example – MR S499, Titu Andreescu . . . . . . . . . . . . . . . . . . . . . 52
51 Problem – GGMT Speed 2020/2 . . . . . . . . . . . . . . . . . . . . . . . . 52
52 Problem – Vietnam MO 1985/1 . . . . . . . . . . . . . . . . . . . . . . . . 52
53 Problem – expii . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
54 Problem – Putnam 2015/B1 . . . . . . . . . . . . . . . . . . . . . . . . . . 53
55 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
56 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
57 Problem – BMT Algebra 2020/7 . . . . . . . . . . . . . . . . . . . . . . . . 53
58 Problem – BMO 2007/2/1 . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
59 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
60 Problem – RMO/INMO Preparation Thread . . . . . . . . . . . . . . . . 53
61 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
62 Problem – AMSP Admissions Test 2021/C.9 . . . . . . . . . . . . . . . . . 54
63 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
64 Problem – Purple Comet HS 2020/16 . . . . . . . . . . . . . . . . . . . . . 54
65 Problem – Purple Comet HS 2021/21 . . . . . . . . . . . . . . . . . . . . . 54
66 Problem – arqady . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
67 Problem – Purple Comet HS 2013/27 . . . . . . . . . . . . . . . . . . . . . 55
68 Problem – Purple Comet HS 2018/19 . . . . . . . . . . . . . . . . . . . . . 55
69 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
70 Problem – Purple Comet HS 2019/23 . . . . . . . . . . . . . . . . . . . . . 55
64
71 Problem – JMC 12 2021/22 . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
72 Problem – David Altizio . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
73 Problem – MR J479, Titu Andreescu . . . . . . . . . . . . . . . . . . . . . . 55
74 Problem – Putnam 2019 A1 . . . . . . . . . . . . . . . . . . . . . . . . . . 56
75 Problem – MR S546, Titu Andreescu . . . . . . . . . . . . . . . . . . . . . 56
76 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
77 Problem – SMMT Champion 2021/8 . . . . . . . . . . . . . . . . . . . . . 56
78 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
79 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
80 Problem – IWYMIC 2018/1/11 . . . . . . . . . . . . . . . . . . . . . . . . 57
81 Problem – HOMC Team 2018/J8 . . . . . . . . . . . . . . . . . . . . . . . 57
82 Problem – CMIMC NT 2018/8 . . . . . . . . . . . . . . . . . . . . . . . . . 57
83 Problem – CMIMC Algebra-NT 2020/9 . . . . . . . . . . . . . . . . . . . 57
84 Problem – MR J469 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
85 Problem – USAMTS 3/4/16 . . . . . . . . . . . . . . . . . . . . . . . . . . 57
86 Problem – Mock AIME I 2015/11, David Altizio . . . . . . . . . . . . . . 57
87 Problem – Mock AIME 2017/10, Ankan Bhattacharya . . . . . . . . . . . 58
88 Problem – US Algebra Math Open Winter 2015/14 . . . . . . . . . . . . . 58
89 Problem – OMO Spring 2014/18 . . . . . . . . . . . . . . . . . . . . . . . 58
90 Problem – MR J517 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
91 Problem – Rioplatense MO 2007/3/4 . . . . . . . . . . . . . . . . . . . . . 58
92 Problem – MR S393 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
93 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
94 Problem – China TST 2019/3/1 . . . . . . . . . . . . . . . . . . . . . . . . 59
95 Problem – OMO Spring 2018/24 . . . . . . . . . . . . . . . . . . . . . . . 59
96 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
97 Problem – MR J489, Titu Andreescu . . . . . . . . . . . . . . . . . . . . . . 59
98 Problem – math.SE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
99 Problem – Vietnam TST 2008/6 . . . . . . . . . . . . . . . . . . . . . . . . 59
100 Problem – ELMO 2017/6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
101 Problem – Putnam 1939/B7 . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Chapter 1
1 Fact – Completing the Square . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Theorem – Quadratic Formula . . . . . . . . . . . . . . . . . . . . . . . . . 6
Chapter 2
9 Theorem – Roots of Unity Filter . . . . . . . . . . . . . . . . . . . . . . . . 12
10 Corollary – Alternate Form of ROUF . . . . . . . . . . . . . . . . . . . . . 13
65
NICE Journal NICE Committee (Second Edition)
Chapter 3
18 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
19 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
23 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
25 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
27 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
28 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
29 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
30 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
31 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
32 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
33 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
36 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
51 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
55 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
56 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
57 Lemma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Chapter 4
67 Theorem – Multiplicative Convolution . . . . . . . . . . . . . . . . . . . . 44
72 Theorem – Inverse of µ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Chapter 5
76 Theorem – Titu’s Favorite Factoring Trick . . . . . . . . . . . . . . . . . . 50
77 Corollary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
78 Corollary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
79 Corollary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
âA.3 Index
66
B Selected Solutions
âB.1 Solution 4 (Euclid 2021/2.c)
Let P, Q, and R be the ages of Paolo, Qing, and Rayna respectively. Then, we have the
following system of 3 equations:
Q
R=
2
P = Q+4
P+Q+R
= 13
3
5 − x = 52 − (2x2 )5 + x4
52 − (2x2 + 1)5 + x4 + x = 0
67
NICE Journal NICE Committee (Second Edition)
mn + 3m − 8n = 59
m(n + 3) − 8n = 59
m(n + 3) − 8n = 59
m(n + 3) − 8n − 24 = 59 − 24
m(n + 3) − 8(n + 3) = 35
(m − 8)(n + 3) = 35
Thus, 35 is a product of these two factors, and we can do casework to check. The final
answer is left as an exercise to the reader.
âB.6 Solution 12
By binomial theorem,
10
10
10
(1 + 1) = ∑ ,
k =0
k
10
10
(1 − 1)10 = ∑ (−1)k ,
k =0
k
and averaging the two quantities gives us the desired result of 512 .
P(1)+ P(−1)
Remark 85. For reference, we applied ROUF on P( x ) = (1 + x )10 , i.e. computed 2 .
âB.7 Solution 13
2πi
Let ω = e 3 . Then by applying ROUF on P( x ) = x −2 (1 + x )10 , we note that we have
shifted the coefficients by two (i.e. the kth coefficient of (1 + x )10 is now the k − 2th
coefficient of x −2 (1 + x )10 ), so (3k10
+2) for nonnegative integers k are now included in our
count. Thus,
10 10 10
+ + = P (1) + P ( ω ) + P ( ω 2 )
2 5 8
= 1 · (1 + 1)10 + ω −2 (1 + ω )10 + ω −4 (1 + ω 2 )10 .
69
NICE Journal NICE Committee (Second Edition)
1
implying the answer is 3 · 1026 = 342 .
âB.8 Solution 15
Solution by Evan Chen.
We can rewrite the sum as
1000
∑ n
f (n)
n ≥0
where (
1 n ≡ 0 (mod 3)
f (n) =
0 otherwise.
1000 1h
i
∑ n f (n) = 3 (1 + 1)1000 + (1 + ω )1000 + (1 + ω2 )1000
n ≥0
1 h 1000 i
= 2 + (−ω 2 )1000 + (−ω )1000
3
1 h 1000 i
= 2 + ω + ω2
3
1 h 1000 i
= 2 −1 .
3
70
NICE Committee (Second Edition) NICE Journal
8 6
f ( x, y) = ∑ ∑ amn xm yn
m =0 n =0
where amn is the number of groups of m basses and n tenors. What we want to do is
sum up all values of amn for which 4 | m − n except for a00 = 1. To do this, define a new
function
8 6
g( x ) = f ( x, x −1 ) = ∑ ∑ amn xm−n = (1 + x)8 (1 + x−1 )6 .
m =0 n =0
Now we just need to sum all coefficients of g( x ) for which 4 | m − n. Consider a monomial
h( x ) = x k . If 4 | k,
otherwise,
h(i ) + h(−1) + h(−i ) + h(1) = 0.
g( x ) is a sum of these monomials so this gives us a method to determine the sum we’re
looking for:
g(i ) + g(−1) + g(−i ) + g(1)
= 212 = 4096
4
(since g(−1) = 0 and it can be checked that g(i ) = − g(−i )). Hence, the answer is
4096 − 1 with the −1 for a00 which gives 95 .
Solution via generating functions and ROUF We use generating functions. Suppose that
the colors are 0, 1, 2, 3. Then as we proceed around a valid coloring of the ring in the
clockwise direction, we know that between two adjacent sections with colors si and si+1 ,
there exists a number di ∈ {1, 2, 3} such that
s i +1 ≡ s i + d i (mod 4).
71
NICE Journal NICE Committee (Second Edition)
Thus, we can represent each border between sections by the generating function x +
x2 + x3 , where x, x2 , x3 correspond to increasing the color number by 1, 2, 3 (mod 4),
respectively. Thus the generating function that represents going through all six borders is
A ( x ) = ( x + x 2 + x 3 )6 ,
where the coefficient of x n represents the total number of colorings where the colors’
numbers are increased by a total of n as we proceed around the ring. But if we go through
all six borders, we must return to the original section, which is already colored. Therefore,
we wish to find the sum of the coefficients of x n in A( x ) with n ≡ 0 (mod 4).
Thus, the sum of the coefficients of A( x ) with powers congruent to 0 (mod 4) is
Solution via linear algebra (Allen Wang) Consider the graph K4 and its corresponding
adjacency matrix A. The answer to the problem is therefore the trace of A6 by definition
of matrix multiplication. Since B = A + I is a 4 × 4 matrix full of 1s, B has a rank of 1,
and therefore has 3 eigenvalues of 0. Since the trace of B is 4, the last eigenvalue is 4.
Thus, A has eigenvalues −1, −1, −1, 3.
The trace of A6 is the sum of the 6th powers of its eigenvalues, so we find that the trace
is 36 + 3 = 732 , as desired.
Remark 86. Chromatic polynomials are actually what this problem is based on, and thus not
the intended solution. Contest problems that can be destroyed with chromatic polynomials
usually succumb to casework as well, but I recommend you learn them as they can be useful
for timed competitions.
72
NICE Committee (Second Edition) NICE Journal
√ √
Note that for p > 8, 3 p > 2 so k = 0 is optimal by the bound 3 pk > 2k = (1 + 1)k ≥ 1 + k
for k ≥ 1. We now compute k for p ∈ {2, 3, 5, 7}. Note that
N = 23 32 51 71 = 2520 .
τ (2520) 4·3·2·2 24
√
3
= √3
= √
3
≈ 3.527.
2520 2 315 315
which is 1 if k is even and zero otherwise. Hence the problem simply asks us for the
√
number of squares at most 2019, which is b 2019c = 44 .
• t = 26 : The expression is
1 + 22 + 24 + 26 + 24 + 22 + 1 106 53
= 6 = 5.
26 2 2
• t = 35 : The expression is
1 + 32 + 34 + 34 + 32 + 1 2 · 91
= 5 .
35 3
• t = 52 : The expression is
1 + 52 + 1 33
2
= 2.
5 5
• t = 73 : The expression is
1 + 72 + 72 + 1 22 · 52
= .
73 73
• t = 53: The expression is
1+1 2
= .
53 53
Hence
53 2 · 91 33 22 · 52 2 1 13 1 13
S= 5
· 5 · 2· 3
· = · 2· 2 = .
2 3 5 7 53 2 3 7 882
The answer is then 13 + 882 = 895 .
(i + 1)(i + 2) 2
3 3
∑ τ ( t ) = ∑ ( i + 1) = 2
.
k
t| p 0≤ i ≤ k
Thus 5 divides this if i is 3 or 4 mod 5 and 7 divides this if i is 5 or 6 mod 7. Then it must
be optimal to take n = 25 · 33 = 864 .
∑ g( a) g(b) = 1 ∀k, a, b ≥ 0.
a+b=k
Then let
∞
G(x) = ∑ g (i ) x i
i =0
and observe
1
G ( x )2 = 1 + x + x 2 + · · · = .
1−x
Hence
1
G(x) = √ .
1−x
1 (2019) (0)
Then g(2019) is the value of 2019! G where 2019 denotes 2019 differentiations.
That is,
1 1 3 4037 4037!!
g(2019) = · · ··· = .
2019! 2 2 2 4038!!
This implies that
4037!!2
f (20182019 ) = .
4038!!2
âB.17 Solution 80
√ √
3 √ √
3
√3
√
3
Since 3 a + √b + 3√c = 0,√we have a3 + b3 + c3 = 3abc by corollary 1.4. But
3 3 3
3abc = 3, so a3 + b3 + c3 = a + b + c = 3 .
27x3 y3 ( x + y)3 = 1,
3xy( x + y) = 1,
and the second equation becomes
27x3 y3 ( x3 + y3 + 1) = 1,
3x2 y + 3xy2 − 1 = 0
as desired. Note that there is some unrigorousness to this proof, because we have not
shown these steps are bidirectional; this is left as an exercise to the reader.
76