Winter Camp Polynomial Division in NT
Winter Camp Polynomial Division in NT
James Rickards
Canadian Winter Camp 2017
1 Introduction
One technique which can be very useful in solving number theory problems is the use of polynomial division.
With some careful algebra and a will to carry on, you can solve some difficult problems without any tricky
ideas. The general setup is when you know that a quotient of two expressions is an integer. The method you
use is to find an approximation to what the quotient should be, ideally involving “nice” terms and a “nasty”
term, where the nasty term is small. We then impose the conditions of the quotient being in Z to deduce
what the nasty term should be, and then we have nice algebraic equations to work with.
A classical example looks like the following: Find all integers x such that
3x3 − 5x + 1
= Q ∈ Z.
2x − 1
For this problem, it’s best to multiply by 8 to get
2 An Example
Let’s go on to a more difficult example: the famous IMO 1988 problem 6: Let a, b be two positive integers
such that ab + 1 | a2 + b2 . Prove that
a2 + b2
ab + 1
is a perfect square. The normal technique used to solve this problem is Vieta jumping. While this is a very
standard trick now, back in the day it wasn’t well known, and as such this problem was very difficult. The
solution we give here will be somewhat similar, but not requiring any clever ideas.
To start off, suppose WLOG that b ≥ a. Thus the b term is the “dominant term”, and to get a small term
in the numerator we wish to eliminate that.
a2 + b2 b − b + a2 b a3 − b
Q= = + a = + 2 .
ab + 1 a ab + 1 a a b+a
Since a ≤ b, we see that either 0 ≤ a3 − b < a3 ≤ a2 b < a2 b + a or 0 ≤ b − a3 < b < a2 b + a. In any case, we
3
−b
have a “nice” term of ab and a “nasty” term aa2 b+a which satisfies
a3 − b
< 1.
a2 b + a
1
In particular, Q ∼ ab ; it is the ceiling or floor of ab if a3 − b ≥ 0 or a3 − b ≤ 0 respectively. Thus it is natural
to write b = an + r, where n ∈ Z+ and r ∈ Z, 0 ≤ r < a. We must get Q = n or Q = n + 1, and plugging in
the expression for b yields
a2 + r2
n= .
1 − ar
But n > 0 whence 1 ≥ 1 − ar > 0, so ar = 0 and thus r = 0. This gives n = a2 and Q = n = a2 is a perfect
square (this is the solution (a, b) = (a, a3 )).
a2 +nra+r 2 −n
The other case is na2 +ra+1 = 1. When we multiply out, it is again linear in n, and we solve to get
where a, a − r ∈ Z+ . In particular, starting with the pair (a, b) = (a, an + r) we get (a − r, a) giving the
same quotient. However this decreases the sum a + b (except if a = b, where we can check (1, 1) is they only
such possibility; this gives a quotient of 1), whence we can only do this finitely many times, whereupon we
must be in the first case or a = b = 1, and the quotient is a square in both cases. Note that our solution also
describes how to find all possible pairs (a, b) where ab + 1 | a2 + b2 + 1.
3 Problems
1. a) Find infinitely many pairs of integers a, b with 1 < a < b such that ab | a2 + b2 − 1
b) For a, b as in part a), find the possible values of
a2 + b2 − 1
ab
which occur for infinitely many pairs (a, b).
a2 + b b2 + a
, ∈Z
b2 − a a2 − b
3. Consecutive positive integers m, m + 1, m + 2, m + 3 are divisible by consecutive odd positive integers
n, n + 2, n + 4, n + 6 respectively. Find the smallest possible m in terms of n.
x2 + y 2
N := < 0,
xy + 1
then N = −5.
2
5. Find all a ∈ Z such that
x2 + axy + y 2 = 1
has infinitely many distinct integer solutions (x, y).
a2 b + b + 7 | ab2 + a + b
x2 + y
,
xy + 1
for x, y positive integers.
x2 + y 2 + 1
=3
xy
ab | a2 + b2 + 3.
NOTE: you can leave your answer in terms of a set of recursive sequences.
n3 + 1
∈ Z.
mn − 1
11. Find all pairs of integers (a, b) such that
a2
∈ Z+ .
2ab2 − b3 + 1
12. Determine all triples (a, b, c) of positive integers such that each of the numbers
ab − c, bc − a, ca − b
is a power of 2.
12’. Prove that there are no quadruples (p, a, b, c) where p is an odd prime and a, b, c ∈ Z+ such that each
of the numbers
ab − c, bc − a, ca − b
is a power of p.
12”. Let a ≤ b ≤ c be positive integers and p a prime such that each of the numbers
−(ab − c), bc − a, ca − b
is a power of p. Prove that either (a, b, c) = (pu , pu , p2u + 1) for some non-negative integer u, or a = 1.