NT2016 V2
NT2016 V2
NT2016 V2
in Mathematical Competitions
(2015 - 2016)
Introduction i
0.1 Notes on the New Version . . . . . . . . . . . . . . . . . . . . . . i
0.2 Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii
0.3 Problem Categories . . . . . . . . . . . . . . . . . . . . . . . . . . iii
0.4 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv
1 Problems 1
1.1 Divisibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Diophantine Equations . . . . . . . . . . . . . . . . . . . . . . . . 13
1.3 Arithmetic Functions . . . . . . . . . . . . . . . . . . . . . . . . . 23
1.4 Polynomials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.5 Digits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
1.6 Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
1.7 Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3
4 CONTENTS
Introduction
https://TopicsInNumberTheory.com
I have created a forum for this problem set on AoPS, where we post solutions and
hints to the problems. Feel free to contribute, but please read the announcement
in the forum before posting. The address is
https://artofproblemsolving.com/community/c654464
I’m thankful to Valentio Iverson, Aditya Khurmi, Shend Zhjeqi, and Jessica
Zhang who solved problems in this collection. I will publish compile this problem
set along with its solutions once we are done solving the problems, but I really
need to take a break from writing for some time.
If you prefer Kindle to read, here’s an Amazon link to the Kindle version of
this collection:
https://www.amazon.com/dp/B07D1F91SX
I have published this PDF set in other websites as well (including our book’s
website), but the permanent URL for this problem set is
https://parvardi.com/downloads/NT2016/
Please use the above link to check for later updates, hints, and solutions.
i
ii INTRODUCTION
0.2 Preface
This is a question bank containing number theory problems chosen from math-
ematical competitions around the world in the 2015 − 2016 school year.
I have classified the problems into 7 categories, and ordered them alphabeti-
cally based on the competition name in each category. So, the level of difficulty
of the problems do not match each other. Do not be surprised if you see a super
easy problem after solving an IMO one. This gives, in my humble opinion, a
good opportunity to the problem-solver to be able to evaluate the difficulty of
a question before solving it completely.
Some of the problems have been taken from the contests page at AoPS, and
you can (hopefully) find the solutions to those problems in the provided link.
The other problems have been mostly taken from the website of the correspond-
ing country/competition.
If you find any errors in this set, please do not hesitate to send me an email
at parvardi@math.ubc.ca and I will make sure that the error is fixed in the
next edition. The credit would be, of course, yours.
I will add hints and possibly solutions to this problem set in the next editions.
I just wanted to publish the set before the problems get old and would add the
solutions gradually. If you want to help me in writing solutions to the problems,
I would be very happy to receive an email from you.
0.4 Notation
Symbol Meaning Found on page
Problems
1.1 Divisibility
Problem 1 (Austria National Competition Final Round). Let a, b, and c be
integers such that
ab ac bc
+ +
c b a
is an integer. Prove that each of the numbers
ab ac bc
, , and
c b a
is an integer.
Problem 2 (Azerbaijan Balkan Math Olympiad Third TST). Find all natural
numbers n for which there exist primes p and q such that the following conditions
are satisfied:
1. p + 2 = q, and
Link
34! = 295232799039a041408476186096435b0000000,
1
2 CHAPTER 1. PROBLEMS
a+b+c
p+2≤ ,
3
and show the equality case.
Link
Problem 5 (Balkan). Find all monic polynomials f with integer coefficients
satisfying the following condition: there exists a positive integer N such that p
divides 2(f (p)!) + 1 for every prime p > N for which f (p) is a positive integer.
Note. A monic polynomial has a leading coefficient equal to 1. Link
Problem 6 (Baltic Way). Let n be a positive integer and let a, b, c, d be integers
such that n|a + b + c + d and n|a2 + b2 + c2 + d2 . Show that
n|a4 + b4 + c4 + d4 + 4abcd.
Link
Problem 7 (Bay Area Olympiad). The distinct prime factors of an integer
are its prime factors listed without repetition. For example, the distinct prime
factors of 40 are 2 and 5. Let A = 2k − 2 and B = 2k · A, where k is an integer
(k ≥ 2). Show that for every integer k greater than or equal to 2,
1. A and B have the same set of distinct prime factors, and
2. A + 1 and B + 1 have the same set of distinct prime factors.
Link
Problem 8 (Belgium Flanders Math Olympiad Final Round). Find the small-
est positive integer n which does not divide 2016!.
Problem 9 (Benelux). Find the greatest positive integer N with the following
property: there exist integers x1 , x2 , . . . , xN such that x2i − xi xj is not divisible
by 1111 for any i 6= j. Link
Problem 10 (Bulgaria National Olympiad). Find all positive integers m and
n such that m n
22 + 1 22 + 1
is divisible by mn.
Problem 11 (Canadian Mathematical Olympiad Qualification).
(a) Find all positive integers n such that 11|(3n + 4n ).
1.1. DIVISIBILITY 3
Link
Find all ordered pairs of integers (n, k) with n, k ≥ 2, such that for any n-tuple
of integers, after a finite number of transformations, every element in the of the
n-tuple is a multiple of k. Link
Problem 18 (China Western Mathematical Olympiad). Prove that there exist
infinitely many triples (a, b, c) of positive integers such that a, b, and c are pair-
wise relatively prime and the numbers ab + c, bc + a, and ca + b are also pairwise
relatively prime. Link
Problem 19 (Croatia First Round Competition). Can the sum of squares of
three consecutive integers be divisible by 2016?
Problem 20 (Croatia First Round Competition). Let a = 123 456 789 and
N = a3 − 2a2 − 3a. Prove that N is a multiple of 540.
Problem 21 (Croatia First Round Competition). Let a, b, and c be integers.
If 4a + 5b − 3c is divisible by 19, prove that 6a − 2b + 5c is also divisible by 19.
Problem 22 (Croatia IMO TST). Prove that for every positive integer n there
exist integers a and b such that n divides 4a2 + 9b2 − 1.
4 CHAPTER 1. PROBLEMS
Problem 23 (Denmark Georg Mohr Contest Second Round). Find all possible
values of the number
a+b a+c b+c
+ + ,
c b a
a+b a+c b+c
where a, b, and c are positive integers, and c , b , and a are also positive
integers.
Problem 24 (Estonia National Olympiad Eleventh Grade). Find the greatest
positive integer n for which 32016 − 1 is divisible by 2n .
Problem 25 (European Girls’ Mathematical Olympiad). Let S be the set of
all positive integers n such that n4 has a divisor in the range n2 + 1, n2 +
2, . . . , n2 + 2n. Prove that there are infinitely many elements of S of each of the
forms 7m, 7m + 1, 7m + 2, 7m + 5, and 7m + 6 and no elements of S is of the
form 7m + 3 or 7m + 4, where m is an integer. Link
Problem 26 (European Mathematical Cup Seniors). A = {a, b, c} is a set
containing three positive integers. Prove that we can find a set B ⊂ A, say
B = {x, y}, such that for all odd positive integers m and n,
10 | xm y n − xn y m .
82 · a8 − a4
82 · a8 − a4
82 · a8 − a2
1. n + m is a divisor of n2 + km2 .
2. n + m is a divisor of k + 1.
Problem 32 (Hong Kong TST). Find all natural numbers n such that n,
n2 + 10, n2 − 2, n3 + 6, and n5 + 36 are all prime numbers. Link
Problem 33 (Hong Kong TST). Find all prime numbers p and q such that
p2 |q 3 + 1 and q 2 |p6 − 1. Link
Problem 35 (IMO Shortlist 2015, India TST, Taiwan TST Second Round,
Croatian Mathematical Olympiad, Switzerland TST). Let m and n be positive
integers such that m > n. Define
m+k
xk =
n+k
for k = 1, 2, . . . , n+1. Prove that if all the numbers x1 , x2 , . . . , xn+1 are integers,
then x1 x2 . . . xn+1 − 1 is divisible by an odd prime.
Link
is fragrant? Link
6 CHAPTER 1. PROBLEMS
q | (x + 1)p − xp
if and only if
q≡1 (mod p).
Link
is divisible by 625.
8 CHAPTER 1. PROBLEMS
Given that n does not divide any element of A, prove that n is a square-free
number. Does it necessarily follow that n is a prime? Link
Problem 61 (San Diego Math Olympiad). For integers a and b, the quadratic
equation x2 + ax + b + 1 = 0 has 2 positive integer roots. Show that a2 + b2 is
not a prime. Link
(prp − 1)(p − 1)
F (r) = .
(pr − 1)(pp − 1)
2. Show that F (r) and F (s) are coprime for any primes r and s such that
r 6= p, s 6= p and r 6= s.
3. Fix a prime r 6= p. Show that there is a prime divisor q of F (r) such that
p|q − 1 but p2 - q − 1.
Problem 63 (Saudi Arabia Preselection Test). Let a and b be two positive
integers such that
b + 1 | a2 + 1 and a + 1 | b2 + 1
a2 + ac − c2 = b2 + bd − d2 .
Problem 71 (Saudi Arabia IMO TST). Let a be a positive integer. Find all
prime numbers p with the following property: there exist exactly p ordered pairs
of integers (x, y), with 0 ≤ x, y ≤ p − 1, such that p divides y 2 − x3 − a2 x.
Problem 72 (Serbia National Olympiad). Let n > 1 be an integer. Prove that
there exists m > nn such that
nm − mn
m+n
is a positive integer. Link
Problem 73 (Serbia TST for Junior Balkan Mathematical Olympiad). Find
the minimum number of divisors that the number |2016m −36n | can have, where
m and n are natural numbers. Link
Problem 74 (Slovakia National Round Category A Mathematical Olympiad).
Let p > 3 be a prime. Determine the number of all 6−tuples (a, b, c, d, e, f ) of
positive integers with sum 3p such that
a+b b+c c+d d+e e+f
, , , ,
c+d d+e e+f f +a a+b
are all integers.
Problem 75 (South Africa National Olympiad). Let k and m be integers with
1 < k < m. For a positive integer i, let Li be the least common multiple of
1, 2, . . . , i. Prove that k is a divisor of
m m−k
Li · −
i i
for all i ≥ 1. Link
Problem 76 (Slovenia IMO TST). Let
N = 215 · 2015.
How many divisors of N 2 are strictly smaller than N and do not divide N ?
Problem 77 (Spain National Olympiad). Given a prime number p, prove that
there exists a positive integer α such that p | α(α − 1) + 3 if and only if there
exists a positive integer β such that p | β(β − 1) + 25. Link
Problem 78 (Spain National Olympiad). Let m be a positive integer and a
and b be distinct positive integers strictly greater than m2 and strictly less than
m2 + m. Find all integers d such that m2 < d < m2 + m and d divides ab. Link
1.1. DIVISIBILITY 11
d + 1 | n + 1.
n
Problem 80 (Switzerland TST). Let n be a positive integer. Show that 77 +1
has at least 2n + 3 prime divisors (not necessarily distinct).
Problem 82 (Taiwan TST Second Round). Let {Fn }∞ n=0 be the Fibonacci
sequence. that is, F0 = 0, F1 = 1, and Fn+2 = Fn+1 + Fn holds for all
nonnegative integers n. Find all pairs (a, b) of positive integers with a < b such
that Fn − 2nan is divisible by b for all positive integers n. Link
Link
pq | np + 2 and n + 2 | np + q p .
Problem 86 (Ukraine TST for UMO). Given prime number p and different
m2 + n2
natural numbers m, n such that p2 = . Prove that 2p − m − n is either
2
square or doubled square of an integer number. Link
Problem 87 (USA AIME). Find the least positive integer m such that m2 −
m + 11 is a product of at least four not necessarily distinct primes. Link
Link
12 CHAPTER 1. PROBLEMS
is an integer. Link
Problem 90 (Venezuela Final Round Fourth Year). Find all pairs of prime
numbers (p, q), with p < q, such that the numbers p + 2q, 2p + q and p + q − 22
are also primes.
Problem 91 (Vietnam National Olympiad).
(a) Prove that if n is an odd perfect number then n has the form
n = ps m2 ,
Link
1.2. DIOPHANTINE EQUATIONS 13
k 2 − 2016 = 3n .
Link
an + bn = cn + n
a1 · 13 + a2 · 23 + a3 · 33 + · · · + aN · N 3 = 20162016,
22m+1 + 9 · 2m + 5 = n2
pm − n3 = 27.
Problem 108 (Croatia Second Round Competition). Determine all pairs (a, b)
of positive integers such that
a3 − 3b = 15,
b2 − a = 13.
1.2. DIOPHANTINE EQUATIONS 15
Problem 109 (Croatia Second Round Competition). Prove that, for every
positive integer n > 3, there are n different positive integers whose reciprocals
add up to 1.
Problem 110 (Croatia Second Round Competition). Determine all pairs (a, b)
of integers such that (7a − b)2 = 2(a − 1)b2 .
b 1
c=a+ − .
a b
Prove that c is the square of an integer.
a+b+c=0 and a2 + b2 + c2 = 2m · 3n .
Problem 113 (Croatia Final Round National Competition). Prove that there
does not exist a positive integer k such that k + 4 and k 2 + 5k + 2 are both cubes
of positive integers.
Problem 115 (Croatian Mathematical Olympiad). Find all pairs (p, q) of prime
numbers such that
p(p2 − p − 1) = q(2q + 3).
Link
Problem 116 (Croatian TST for MEMO, Sweden 2014). Find all pairs (m, n)
of positive integers such that
3 · 5m − 2 · 6n = 3.
Problem 117 (Estonia IMO TST First Stage). Let p be a prime. Find all
integers (not necessarily positive) a, b, and c such that
ab bc ca = p.
Problem 118 (Estonia IMO TST Second Stage). Find all positive integers n
such that
n2 + 11n − 4 · n! + 33 · 13n + 4
is a perfect square.
16 CHAPTER 1. PROBLEMS
Problem 119 (Estonia National Olympiad Tenth Grade). Find all pairs of
integers (a, b) which satisfy
Problem 120 (Estonia Regional Olympiad Tenth Grade). Does the equation
x2 + y 2 + z 2 + w2 = 3 + xy + yz + zw
2(z − 1) − x = 55,
4xy − 8z = 12,
a(y + z) = 11.
Find two largest real values for a for which there are positive integers x, y, and z
that satisfy the system of equations. In each of these solutions, determine xyz.
Problem 123 (Germany National Olympiad Second Round Tenth Grade). For
each of the following cases, determine whether there exist prime numbers x, y,
and z such that the given equality holds
(a) y = z 2 − x2 .
(b) x2 + y = z 4 .
(c) x2 + y 3 = z 4 .
Problem 125 (Germany National Olympiad Fourth Round Ninth Grade). Find
all triples (a, b, c) of integers which satisfy
a3 + b3 = c3 + 1,
b2 − a2 = a + b,
2a3 − 6a = c3 − 4a2 .
1.2. DIOPHANTINE EQUATIONS 17
Link
Problem 136 (Macedonian National Olympiad). Solve the equation in the set
of natural numbers 1 + xz + y z = lcm(xz , y z ). Link
Problem 137 (Macedonian National Olympiad). Solve the equation in the set
of natural numbers xyz + yzt + xzt + xyt = xyzt + 3. Link
Problem 138 (Macedonian Junior Mathematical Olympiad). Solve the equa-
tion
Link
Problem 141 (Netherlands TST). Find all positive integers k for which the
equation
lcm(m, n) − gcd(m, n) = k(m − n)
has no solutions for positive integers m and n with m 6= n. Link
Problem 142 (Norway Niels Henrik Abel Mathematics Competition Final
Round).
(a) Find all positive integers a, b, c, and d with a ≤ b and c ≤ d such that
a + b = cd,
c + d = ab.
x3 + 2y 3 + 4z 3 = 9!.
1.2. DIOPHANTINE EQUATIONS 19
Link
is an integer.
Problem 150 (Romanian Mathematical Olympiad Final Round Grade 9).
(a) Prove that 7 cannot be written as a sum of squares of three rational numbers.
(b) Let a be a rational number that can be written as a sum of squares of three
rational numbers. Prove that am can be written as a sum of squares of
three rational numbers, for any positive integer m.
20 CHAPTER 1. PROBLEMS
(a) Prove that 2n + 3n + 5n + 8n is not a perfect square for any positive integer
n.
1n + 4n + 6n + 7n = 2n + 3n + 5n + 8n .
Problem 155 (Romania TST for Junior Balkan Mathematical Olympiad). Let
n be a positive integer and consider the system
(
x2 + ny 2 = z 2
S(n) : ,
nx2 + y 2 = t2
prove that
(a) 7 ∈ M1 and 10 ∈ M2 .
Link
1.2. DIOPHANTINE EQUATIONS 21
Problem 156 (Saudi Arabia IMO TST). Let k be a positive integer. Prove
that there exist integers x and y, neither of which divisible by 7, such that
x2 + 6y 2 = 7k .
p2 − (q + r)2 = 637.
4x3 + y 3 = 3xy 2 .
Problem 161 (Slovenia National Math Olympiad Fourth Grade). Find all
integers a, b, c, and d that solve the equation
a2 + b2 + c2 = d + 13,
d
a + 2b + 3c = + 13.
2
Problem 162 (Slovenia IMO TST, Romania JBMO TST 2015). Find all pos-
itive integers a, b, c, and d such that
4a · 5b − 3c · 11d = 1.
Problem 163 (Switzerland Final Round). Find all positive integers n for which
primes p and q exist such that
(ii) Prove that the product of two special numbers is also special.
Problem 165 (Syria Central Round Second Stage). Find all integers a and b
such that a3 − b2 = 2.
Problem 166 (Syria TST). Find all positive integers m and n such that
1 1 3
+ = .
m n 2014
Problem 167 (Taiwan TST First Round). Find all ordered pairs (a, b) of
positive integers that satisfy a > b and the equation (a − b)ab = ab ba . Link
Problem 168 (Turkey TST for Junior Balkan Mathematical Olympiad). Find
all pairs (p, q) of prime numbers satisfying
p3 + 7q = q 9 + 5p2 + 18p.
Link
Problem 169 (Turkmenistan Regional Olympiad). Find all distinct prime
numbers p, q, r, s such that
1 1 1 1 1
1− − − − = .
p q r s pqrs
Link
Problem 170 (Tuymaada Senior League). For each positive integer k deter-
mine the number of solutions of the equation
8k = x3 + y 3 + z 3 − 3xyz
Problem 171 (Ukraine TST for UMO). Solve the equation n(n2 + 19) =
m(m2 − 10) in positive integers. Link
1.3. ARITHMETIC FUNCTIONS 23
Problem 174 (Azerbaijan Balkan Math Olympiad First TST). Find all func-
tions f : N → N such that
f (f (n)) = n + 2015,
Problem 175 (Benelux). Let n be a positive integer. Suppose that its positive
divisors can be partitioned into pairs (i.e. can be split in groups of two) in such
a way that the sum of each pair is a prime number. Prove that these prime
numbers are distinct and that none of these are a divisor of n. Link
Link
Link
Problem 179 (China TST). For any two positive integers x and d > 1, denote
by Sd (x) the sum of digits of x taken in base d. Let a, b, b0 , c, m, and q be
positive integers, where m > 1, q > 1, and |b − b0 | ≥ a. It is given that there
exists a positive integer M such that
holds for all integers n ≥ M . Prove that the above equation is true for all
positive integers n. Link
Problem 180 (Estonia National Olympiad Eleventh Grade). Let n be a pos-
itive integer. Let δ(n) be the number of positive divisors of n and let σ(n) be
their sum. Prove that
2
(δ(n))
σ(n) > .
2
Problem 181 (European Mathematical Cup Juniors). Let d(n) denote the
number of positive divisors of n. For a positive integer n we define f (n) as
where 1 = k1 < k2 < · · · < km = n are all divisors of the number n. We call an
integer n > 1 almost perfect if f (n) = n. Find all almos perfect numbers.
Problem 182 (Harvard-MIT Math Tournament). Denote by N the positive
integers. Let f : N → N be a function such that, for any w, x, y, z ∈ N,
Link
Problem 186 (Latvia National Olympiad). Prove that among any 18 consec-
utive positive 3 digit numbers, there is at least one that is divisible by the sum
of its digits. Link
Problem 187 (Middle European Mathematical Olympiad). Find all f : N → N
such that f (a) + f (b) divides 2(a + b − 1) for all a, b ∈ N. Link
Problem 188 (Philippine Mathematical Olympiad Area Stage). Let sn be the
n
sum of the digits of a natural number n. Find the smallest value of if n is a
sn
four-digit number.
Problem 189 (Romanian Mathematical Olympiad Final Round Grade 6). We
will call a positive integer exquisite if it is a multiple of the number of its divisors
(for instance, 12 is exquisite because it has 6 divisors and 12 is a multiple of 6).
(a) Find the largest exquisite two digit number.
(b) Prove that no exquisite number has its last digit 3.
Problem 190 (Romanian National Mathematical Olympiad Small Juniors
Shortlist). For a positive integer n denote d(n) the number of its positive divisors
and s(n) their sum. It is known that n + d(n) = s(n) + 1, m + d(m) = s(m) + 1,
and nm + d(nm) + 2016 = s(nm). Find n and m.
Problem 191 (Romaina TST). Given a positive integer n, determine all func-
tions f from the first n positive integers to the positive integers, satisfying the
following two conditions:
n
X
1. f (k) = 2n, and
k=1
X
2. f (k) = n happens for no subset K of the first n positive integers.
k∈K
Link
Problem 192 (Serbia Additional TST). Let w(x) be largest odd divisor of x.
Let a, b be natural numbers such that (a, b) = 1 and a+w(b+1) and b+w(a+1)
are powers of two. Prove that a + 1 and b + 1 are powers of two. Link
Problem 193 (Slovakia Domestic Category B Mathematical Olympiad). A
positive integer has the property that the number of its even divisors is 3 more
than the number of its odd divisors. What is the ratio of sum of all even divisors
over the sum of all odd divisors of this number? Find all possible answers.
Problem 194 (Slovakia TST). Let n be a positive integer and let Sn be the
set of all positive divisors of n (including 1 and n). Prove that the rightmost
digit of more than half of the elements of Sn is 3.
26 CHAPTER 1. PROBLEMS
Problem 195 (Switzerland TST). Find all positive integers n such that
X
d2 = 5(n + 1).
d|n
1≤d≤n
Problem 196 (USA TSTST). Suppose that n and k are positive integers such
that
1 = ϕ(ϕ(. . . ϕ( n) . . . )).
| {z }
k times
k
Prove that n ≤ 3 . Link
1.4. POLYNOMIALS 27
1.4 Polynomials
Problem 197 (Brazil National Math Olympiad). Consider the second-degree
polynomial P (x) = 4x2 + 12x − 3015. Define the sequence of polynomials
p
X
(ai+d − ai )2 ≡ 0 (mod p),
i=1
Link
Problem 200 (ELMO). Big Bird has a polynomial P with integer coefficients
such that n divides P (2n ) for every positive integer n. Prove that Big Bird’s
polynomial must be the zero polynomial. Link
Problem 201 (International Olympiad of Metropolises). Let r(x) be a poly-
nomial of odd degree with real coefficients. Prove that there exist only finitely
many (or none at all) pairs of polynomials p(x) and q(x) with real coefficients
satisfying the equation (p(x))3 + q(x2 ) = r(x). Link
Problem 202 (Iran Third Round National Olympiad). Let F be a subset of
the set of positive integers with at least two elements and P be a polynomial
with integer coefficients such that for any two elements of F like a and b, the
following two conditions hold:
28 CHAPTER 1. PROBLEMS
(i) a + b ∈ F , and
(ii) gcd(P (a), P (b)) = 1.
Prove that P (x) is a constant polynomial. Link
Problem 203 (Iran Third Round National Olympiad). Let P be a polynomial
with integer coefficients. We say P is good if there exist infinitely many prime
numbers q such that the set
X = {P (n) mod q : n ∈ N}
q+1
has at least 2 members. Prove that the polynomial x3 + x is good. Link
Problem 204 (Iran Third Round National Olympiad). We call a function g
special if g(x) = af (x) (for all x) where a is a positive integer and f is polynomial
with integer coefficients such that f (n) > 0 for all positive integers n.
A function is called an exponential polynomial if it is obtained from the product
2
or sum of special functions. For instance, 2x 3x +x−1 + 52x is an exponential
polynomial.
Prove that there does not exist a non-zero exponential polynomial f (x) and a
non-constant polynomial P (x) with integer coefficients such that
P (n)|f (n)
p(x) ≡ 0 (mod q n ).
Prove that we can find M such that {an }n≥M is constant. Link
Problem 206 (Pan-African Mathematical Olympiad). For any positive integer
n, we define the integer P (n) by
Find the greatest common divisor of the integers P (1), P (2), P (3), . . . , P (2016).
Link
Problem 207 (Polish Mathematical Olympiad). Let p be a certain prime num-
ber. Find all non-negative integers n for which polynomial P (x) = x4 − 2(n +
p)x2 + (n − p)2 may be rewritten as product of two quadratic polynomials
P1 , P2 ∈ Z[X]. Link
Problem 208 (Romanian Mathematical Olympiad District Round Grade 8).
(a) Prove that for every integer k, the equation x3 − 24x + k = 0 has at most
one integer solution.
1.4. POLYNOMIALS 29
(b) Prove that the equation x3 +24x−2016 = 0 has exactly one integer solution.
Problem 209 (Taiwan TST Third Round). Let n be a positive integer. Find
the number of odd coefficients of the polynomial (x2 − x + 1)n . Link
Problem 210 (Taiwan TST Third Round). Let f (x) be the polynomial with
integer coefficients (f (x) is not constant) such that
Prove that for each positive integer n ≥ 8, f (n) has at least five distinct prime
divisors. Link
Problem 211 (Turkey TST). Let p be a prime. Let Kp be the set of all
polynomials with coefficients from the set {0, 1, . . . , p − 1} and degree less than
p. Assume that for all pairs of polynomials (P, Q) ∈ Kp2 such that P (Q(n)) ≡ n
(mod p) for all integers n, the degrees of P and Q are equal. Determine all
primes p with this property. Link
50
m
P
Then |ai | = n, where m and n are relatively prime positive integers. Find
i=0
m + n. Link
Problem 213 (USA TSTST). Decide whether or not there exists a non-
constant polynomial Q(x) with integer coefficients with the following property:
for every positive integer n > 2, the numbers
1.5 Digits
Problem 214 (Argentina Intercollegiate Olympiad Second Level). Find all
positive integers x and y which satisfy the following conditions:
1. x is a 4−digit palindromic number, and
2. y = x + 312 is a 5−digit palindromic number.
Note. A palindromic number is a number that remains the same when its digits
are reversed. For example, 16461 is a palindromic number.
Problem 215 (Bundeswettbewerb Mathematik). A number with 2016 zeros
that is written as 101010 . . . 0101 is given, in which the zeros and ones alternate.
Prove that this number is not prime. Link
Problem 216 (Caltech Harvey Mudd Math Competition (CHMMC) Fall). We
say that the string dk dk−1 · · · d1 d0 represents a number n in base −2 if each di is
either 0 or 1, and n = dk (−2)k + dk−1 (−2)k−1 + · · · + d1 (−2) + d0 . For example,
110−2 represents the number 2. What string represents 2016 in base −2? Link
Problem 217 (CentroAmerican). Find all positive integers n that have 4 digits,
all of them perfect squares, and such that n is divisible by 2, 3, 5, and 7. Link
Problem 218 (Croatia IMO TST, Bulgaria TST). Let p > 109 be a prime
number such that 4p + 1 is also a prime. Prove that the decimal expansion of
1
4p+1 contains all the digits 0, 1, . . . , 9. Link
Problem 219 (Germany National Olympiad Second Round Eleventh/Twelfth
Grade). The sequence x1 , x2 , x3 , . . . is defined as x1 = 1 and
xk+1 = xk + yk for k = 1, 2, 3, . . .
where yk is the last digit of decimal representation of xk . Prove that the sequence
x1 , x2 , x3 , . . . contains all powers of 4. That is, for every positive integer n, there
exists some natural k for which xk = 4n .
Problem 220 (Germany National Olympiad Fourth Round Tenth Grade1 ). A
sequence of positive integers a1 , a2 , a3 , . . . is defined as follows: a1 is a 3 digit
number and ak+1 (for k ≥ 1) is obtained by
ak+1 = ak + 2 · Q(ak ),
where Q(ak ) is the sum of digits of ak when represented in decimal system. For
instance, if one takes a1 = 358 as the initial term, the sequence would be
a1 = 358,
a2 = 358 + 2 · 16 = 390,
a3 = 390 + 2 · 12 = 414,
a4 = 414 + 2 · 9 = 432,
..
.
1 Thanks to Arian Saffarzadeh for translating the problem.
1.5. DIGITS 31
Prove that no matter what we choose as the starting number of the sequence,
(a) the sequence will not contain 2015.
(b) the sequence will not contain 2016.
Problem 221 (IberoAmerican). Let k be a positive integer and suppose that
we are given a1 , a2 , . . . , ak , where 0 ≤ ai ≤ 9 for i = 1, 2, . . . , k. Prove that
there exists a positive integer n such that the last 2k digits of 2n are, in the
following order, a1 , a2 , . . . , ak , b1 , b2 , . . . , bk , for some digits b1 , b2 , . . . , bk . Link
Problem 222 (India IMO Training Camp). Given that n is a natural number
such that the leftmost digits in the decimal representations of 2n and 3n are the
same, find all possible values of the leftmost digit. Link
Problem 223 (Middle European Mathematical Olympiad). A positive inte-
ger n is called Mozart if the decimal representation of the sequence 1, 2, . . . , n
contains each digit an even number of times. Prove that:
1. All Mozart numbers are even.
2. There are infinitely many Mozart numbers.
Link
n = aa . . . a} +5a,
| {z k>1
k times
divisible by 2016.
Problem 228 (Romanian National Mathematical Olympiad Small Juniors
Shortlist). Find the smallest positive integer of the form
n = aa . . . a} +a(a − 2)2 ,
| {z k>1
k times
divisible by 2016.
Problem 229 (Romanian National Mathematical Olympiad Small Juniors
Shortlist). We will call a number good if it is a positive integer with at least two
digits and by removing one of its digits we get a number which is equal to the
sum of its initial digits (for instance, 109 is good: remove 9 to get 10 = 1+0+9).
(a) Find the smallest good number.
(b) Find how many numbers are good.
Problem 230 (Romanian National Mathematical Olympiad Small Juniors
Shortlist). A positive integer k will be called of type n (n 6= k) if n can be
obtained by adding to k the sum or the product of the digits of k.
(a) Show that there are at least two numbers of type 2016.
(b) Find all numbers of type 216.
Problem 231 (Romanian National Mathematical Olympiad Juniors Short-
list).
(a) Find all perfect squares of the form aabcc.
(b) Let n be a given positive integer. Prove that there exists a perfect square
of the form
· · · }c .
aab |cc {z
2n times
abcd = 20 · ab + 16 · cd.
Problem 233 (Tuymaada Junior League). Is there a positive integer N > 1020
such that all its decimal digits are odd, the numbers of digits 1, 3, 5, 7, 9 in its
decimal representation are equal, and it is divisible by each 20−digit number
obtained from it by deleting digits? (Neither deleted nor remaining digits must
be consecutive.)
1.5. DIGITS 33
Problem 234 (Ukraine TST for UMO). Find all numbers n such, that in
[1, 1000] there exist exactly 10 numbers with digit sum equal to n. Link
Problem 235 (USA AIME). A strictly increasing sequence of positive integers
a1 , a2 , a3 , . . . has the property that for every positive integer k, the subsequence
a2k−1 , a2k , a2k+1 is geometric and the subsequence a2k , a2k+1 , a2k+2 is arith-
metic. Suppose that a13 = 2016. Find a1 . Link
Problem 236 (USAJMO). Prove that there exists a positive integer n < 106
such that 5n has six consecutive zeros in its decimal representation. Link
√
Problem 237 (USA TST). Let 3 = 1.b1 b2 b3 . . .(2) be the binary representa-
√
tion of 3. Prove that for any positive integer n, at least one of the digits bn ,
bn+1 , . . . , b2n equals 1. Link
34 CHAPTER 1. PROBLEMS
1.6 Sequences
Problem 238 (Argentina Intercollegiate Olympiad Third Level). Let a1 , a2 , . . . , a15
be an arithmetic progression. If the sum of all 15 terms is twice the sum of the
d
first 10 terms, find , where d is the common difference of the progression.
a1
Problem 239 (Baltic Way). Prove or disprove the following hypotheses.
(a) For all k ≥ 2, each sequence of k consecutive positive integers contains a
number that is not divisible by any prime number less than k.
(b) For all k ≥ 2, each sequence of k consecutive positive integers contains a
number that is relatively prime to all other members of the sequence.
Link
Problem 240 (Baltic Way). Let p > 3 be a prime such that p ≡ 3 (mod 4).
Given a positive integer a0 define the sequence a0 , a1 , . . . of integers by an =
n
a2n−1 for all n = 1, 2, . . . . Prove that it is possible to choose a0 such that the sub-
sequence aN , aN +1 , aN +2 , . . . is not constant modulo p for any positive integer
N. Link
Problem 241 (Bosnia and Herzegovina TST). We call an infinite sequence
a1 < a2 < a3 < · · · of positive integers nice if for every positive integer n, we
have
a2n = 2an .
Prove the following statements:
(a) If there is given a nice sequence {an }∞
n=1 and a prime number p > a1 , then
there exists some term of the sequence which is divisible by p.
(b) For every prime number p > 2, there exists a nice sequence such that no
terms of the sequence are divisible by p.
Link
Problem 242 (China Second Round Olympiad Second Test). Let p > 3 and
p + 2 be prime numbers and define the sequence {an }∞
n=1 by a1 = 2 and
j pa k
n−1
an = an−1 + , n = 2, 3, . . .
n
show that for any all n with 3 ≤ n ≤ p − 1, we have n|pan−1 + 1. Link
Problem 243 (China South East Mathematical Olympiad). Let {an } be a
sequence consisting of positive integers such that
n
X
n2 | ai and an ≤ (n + 2016)2
i=1
for all n ≥ 2016. Define bn = an+1 − an . Prove that the sequence {bn } is
eventually constant. Link
1.6. SEQUENCES 35
a22 a2 a2
an+1 = + 3 + ··· + n for n ≥ 2.
a1 a2 an−1
Find a2016 .
Problem 247 (Germany TST, Taiwan TST First Round, Slovakia TST). De-
termine all positive integers M such that the sequence a0 , a1 , a2 , . . . defined by
1
a0 = M + and ak+1 = ak bak c for k = 0, 1, 2, · · ·
2
contains at least one integer term. Link
Problem 248 (Greece TST). Given is the sequence {an }∞ n=0 which is defined
as follows: a0 = 3 and an+1 − an = n(an − 1) for all n ≥ 0. Determine all
positive integers m such that gcd(m, an ) = 1 for all n ≥ 0. Link
2
Problem 249 (Hong Kong Preliminary Selection Contest). Let a1 = 3 and
r
an 24an + 9 9
an+1 = + −
4 256 48
for all integers n ≥ 1. Find the value of
a1 + a2 + a3 + . . .
Every year, the government of Optimistica publishes its Annual Report with n
economic indicators. For each i = 1, 2, . . . , n,the possible values of the i − th
indicator are 1, 2, . . . , ai . The Annual Report is said to be optimistic if at least
n − 1 indicators have higher values than in the previous report. Prove that
the government can publish optimistic Annual Reports in an infinitely long
sequence. Link
∞
Problem 253 (Iran Third Round National Olympiad). A sequence P = {an }n=1
is called a permutation of natural numbers if for any natural number m, there
exists a unique natural number n such that an = m.
We also define Sk (P ) as
Sk (P ) = a1 + a2 + · · · + ak
4. For every n ≥ 2,
{2ai − ai−1 : i = 1, 2, 3, · · · , n} ≡ {0, 1, 2, · · · , n − 1} (mod n).
Link
Problem 256 (Nordic Mathematical Competition). Determine all sequences
(an )2016
n=1 of non-negative integers such that all sequence elements are less than
or equal to 2016 and
i + j | iai + jaj
for all i, j ∈ {1, 2, . . . , 2016}.
Problem 257 (Romanian Masters in Mathematics). A cubic sequence is a
sequence of integers given by an = n3 + bn2 + cn + d, where b, c and d are integer
constants and n ranges over all integers, including negative integers.
(a) Show that there exists a cubic sequence such that the only terms of the
sequence which are squares of integers are a2015 and a2016 .
(b) Determine the possible values of a2015 · a2016 for a cubic sequence satisfying
the condition in part (a).
Link
Problem 258 (Romanian Mathematical Olympiad Final Round Grade 8).
Let n be a non-negative integer. We will say that the non-negative integers
x1 , x2 , . . . , xn have property (P ) if
x1 x2 . . . xn = x1 + 2x2 + · · · + nxn .
(a) Show that for every non-negative integer n, there exists n positive integers
with property (P ).
(b) Find all integers n ≥ 2 so that there exists n positive integers x1 , x2 , . . . , xn
with x1 < x2 < · · · < xn , having property (P ).
Problem 259 (Romanian Stars of Mathematics Senior Level). Let n be a
positive integer and let a1 , a2 , . . . , an be n positive integers. Show that
n √ n2
X ak X1
< .
1 + a1 + a2 + · · · + ak k
k=1 k=1
(i) a0 = an = 1;
(ii) 2 ≤ ai ≤ k for each k = 1, 2, . . . , n − 1
(iii) For each j = 2, 3, . . . , k, the number j appears ϕ(j) times in the sequence
a0 , a1 , . . . , an (ϕ(j) is the number of positive integers that do not exceed
j and are coprime to j);
(iv) For any i = 1, 2, . . . , n−1, gcd(ai−1 , ai ) = 1 = gcd(ai , ai+1 ), and ai divides
ai−1 + ai+1
There is another sequence b0 , b1 , . . . , bn of integers such that
bi+1 bi
>
ai+1 ai
1.7 Miscellaneous
Problem 270 (Azerbaijan Junior Mathematical Olympiad). Prove that if for
a real number a, a + a1 is an integer, then an + a1n is also an integer for any
positive integer n. Link
Problem 272 (Chile2 ). Find all prime numbers that do not have a multiple
ending in 2015.
Problem 273 (Chile). Find the number of different numbers of the form
i2
b c, where i = 1, 2, . . . , 2015.
2015
Link
Problem 274 (China South East Mathematical Olympiad). Define the sets
Problem 275 (China TST). Does there exist two infinite sets S and T of
positive integers such that any positive integer n can be uniquely expressed in
the form
n = s1 t1 + s2 t2 + · · · + sk tk ,
where k is a positive integer dependent on n, s1 < s2 < · · · < sk are elements
of S, and t1 , t2 , . . . , tk are elements of T ? Link
Problem 276 (Croatia First Round Competition). Find all pairs (a, b) of pos-
itive integers such that 1 < a, b ≤ 100 and
1 1
+
loga 10 logb 10
is a positive integer.
Problem 278 (Estonia IMO TST First Stage). Prove that for every positive
integer n ≥ 3,
√ √ 3 √
2 · 3 · 4 · · · n−1 n > n.
p1 , p1 + p2 , . . . , p1 + p2 + · · · + pn
Link
42 CHAPTER 1. PROBLEMS
Problem 285 (Korea Summer Program Practice Test). A finite set S of pos-
itive integers is given. Show that there is a positive integer N dependent only
on S, such that any x1 , x2 , . . . , xm ∈ S whose sum is a multiple of N , can be
partitioned into groups each of whose sum is exactly N . Note that the numbers
x1 , x2 , . . . , xm need not be distinct. Link
Problem 286 (Philippine Mathematical Olympiad Area Stage). Find the largest
number N so that
N
X 1 1
< .
n=5
n(n − 2) 4
where {·} denotes the fractional part. Prove that 4a + 1 is a perfect square.
Problem 290 (Romanian Mathematical Olympiad Final Round Grade 5,).
Two positive integers x and y are such that
2010 x 2011
< < .
2011 y 2012
Find the smallest possible value of the sum x + y.
Problem 291 (Romanian Mathematical Olympiad Final Round Grade 7,).
Find all the positive integers p with the property that the sum of the first p
positive integers is a four-digit positive integer whose decomposition into prime
factors is of the form 2m 3n (m + n), where m and n are non-negative integers.
1.7. MISCELLANEOUS 43
Problem 292 (Romanian Stars of Mathematics Junior Level). Show that there
are positive odd integers m1 < m2 < · · · and positive integers n1 < n2 < · · ·
such that mk and nk are relatively prime and mkk − 2n4k is a perfect square for
each index k.
a1 , a1 + a2 , . . . , a1 + a2 + · · · + an .
Problem 294 (Romania TST). Determine the integers k ≥ 2 for which the
sequence
2n
(mod k), n = 0, 1, 2, . . . ,
n
is eventually periodic.
Link
Problem
295 (Romania TST). Given positive integers k and m, show that m
and nk are coprime for infinitely many integers n ≥ k. Link
Problem 296 (Romaina TST). Given a positive √ integer n, show that for no
set of integers modulo n, whose size exceeds 1 + n + 4, it is possible that the
pairwise sums of unordered pairs be all distinct. Link
Problem 298 (Saudi Arabia Preselection Test). Let u and v be positive rational
numbers with u 6= v. Assume that there are infinitely many positive integers n
with the property that un − v n is an integer. Prove that u and v are integers.
1. Prove that there are infinitely many positive integers n such that there
exists a permutation of 1, 2, 3, . . . , n with the property that the difference
between any two adjacent numbers is equal to either 2015 or 2016.
Problem 300 (Saudi Arabia IMO TST). Find the number of permutations
(a1 , a2 , . . . , a2016 ) of the first 2016 positive integers satisfying the following two
conditions:
1. ai+1 − ai ≤ 1 for all i = 1, 2, . . . , 2015, and
2. There are exactly two indices i < j with 1 ≤ i < j ≤ 2016 such that ai = i
and aj = j.
Problem 301 (Saudi Arabia IMO TST). Call a positive integer N ≥ 2 special
if for every k such that 2 ≤ k ≤ N , N can be expressed as a sum of k positive
integers that are relatively prime to N (although not necessarily relatively prime
to each other). Find all special positive integers.
Problem 302 (Slovakia Regional Round Category C Mathematical Olympiad).
Find the least possible value of
3x2 − 12xy + y 4 ,
for some integer p. Prove that if two irrational numbers α and β have the same
set of convenient denominators, then either α + β or α − β is an integer. Link