Library · Between the Challenge and the Olympiad · Chapter 1
Tools this book assumes
On this page
An A-level course teaches a great deal that this book uses without comment: algebra, the circle theorems, similar triangles, the sine and cosine rules, permutations and combinations, the binomial theorem. It also leaves out a handful of things that competition problems lean on constantly. This chapter supplies those, and nothing else. Each one arrives through a problem it cracks, because a tool met while it is doing something is a tool you still have next month.
Read it once now, quickly, and come back when a solution points here. Everything the book needs beyond this chapter is proved where it is used.
Conventions and a few words
The natural numbers in this book are , and zero is not among them. Where a problem means to include zero it says so.
The greatest common divisor of and , written , is what school called the highest common factor. The competition literature says gcd almost without exception, so that is what is used here. Similarly is the lowest common multiple.
Two numbers are coprime when their only common factor is , so and are coprime while and are not. The word does a lot of work in number theory problems, since a condition that two quantities share no factor is usually the hinge the problem turns on.
A lemma is a result proved on the way to something else, worth stating on its own because the main argument reads better once it is out of the way.
Congruences
A problem to start
What is the remainder when is divided by ?
Nobody wants to compute . Notice instead that leaves remainder on division by , and that remainders behave well under multiplication: if behaves like , then behaves like . Now leaves remainder , so The remainder is .
The notation
That argument is worth a language of its own. Write to mean that and leave the same remainder on division by , equivalently that divides . Read it as “ is congruent to modulo ”. So , and . Negative representatives are allowed and are often the convenient ones.
The three rules
If and , then Each follows from the definition in one line. For the last, write and ; then , which differs from by a multiple of . Multiplying a congruence by itself repeatedly gives the fourth rule, the one that did the work above: if then for every positive integer .
Where it goes wrong
You may not divide. From , which says , it does not follow that . Cancelling a factor is legitimate only when , and then it is legitimate always. Keep that condition in view: a large share of wrong solutions to number theory problems are a division nobody checked.
A second problem
What are the last two digits of ?
The last two digits of a number are its remainder modulo , so this asks for modulo . Compute the small powers: , and . That is the whole solution. Since , The last two digits are . The shape recurs throughout the book: find the smallest power that comes back to , then reduce the exponent modulo that.
Fermat’s little theorem
Sometimes the exponent that returns to can be named in advance. If is prime and does not divide , then Here is why. Consider the numbers modulo . No two of them are congruent, since would give , and divides neither nor the difference , which lies strictly between and . None of them is modulo for the same reason. So they are the numbers in some order, and multiplying them together, Every factor of is coprime to , so it may be cancelled, which leaves the theorem.
For example, the remainder of modulo : the theorem gives , and , so .
The Euclidean algorithm
A problem to start
Find without factorising either number.
Any common divisor of and divides their difference, and more usefully divides . So the pair and the pair have exactly the same common divisors, and the second pair is the smaller. Repeat: The last non-zero remainder is , and .
The tool
Replacing by , where is the remainder of on division by , preserves the set of common divisors and strictly decreases the numbers, so the process stops. The last non-zero remainder is the greatest common divisor. It is fast: the numbers roughly halve every two steps, so even four-digit numbers take a handful of lines.
Running it backwards
Read the same equations upwards and each remainder becomes a combination of the two original numbers: This always works, and it proves something the book uses repeatedly: for any and there are integers and with and in particular can be solved exactly when and are coprime. One consequence deserves its own line, since it is the reason primes matter: if a prime divides then it divides or it divides .
Proof by induction
A problem to start
Show that for every natural number .
Check : the left side is and the right side is . Now suppose the formula holds for some particular , and add the next cube: which is the formula for . Since it holds at , it holds at , and so on through every natural number.
The tool
To prove a statement for all , prove and prove that implies . Both halves are needed. The first is not a formality: plenty of false statements survive the second test and fail the first.
A variant appears often here. Strong induction assumes for every below rather than for alone, and is what you want when the step reaches back several places, as it does whenever a problem splits a number into two smaller ones.
The pigeonhole principle
A problem to start
Fifty-one numbers are chosen from to . Show that two of them are coprime.
Pair the numbers off as , which is fifty pairs. Fifty-one chosen numbers cannot avoid putting two into the same pair, and two numbers in the same pair are consecutive. Consecutive numbers differ by , so any common divisor divides , and they are coprime.
The tool
If objects go into boxes and , some box holds at least two. More is true and is used just as often: some box holds at least objects, since if every box held fewer there would be fewer than objects in total.
The principle is trivial. The work is always in choosing the boxes, and that choice is the crux of every problem that uses it.
Inclusion and exclusion
A problem to start
How many of the numbers to are divisible by , by or by ?
There are multiples of , of and of . Adding those counts every multiple of , of and of twice, so subtract , and . That subtraction has now removed the multiples of three times having added them three times, so add the of them back:
The tool
For two sets, . For three, In general, add the sizes of the sets, subtract the sizes of all pairwise intersections, add back the triples, and continue with alternating signs. The reason is a count from the point of view of one object: an object in exactly of the sets is counted times, then removed times, then restored times, and the alternating sum equals for every .
The arithmetic and geometric means
A problem to start
A rectangle has perimeter . How large can its area be?
Let the sides be and with . Then which is largest when , giving area . No calculus was needed, and the answer came with its equality case attached.
The tool
For non-negative and , with equality exactly when . This is rearranged. For three non-negative numbers, with equality exactly when . Writing , , , this is the identity together with the observation that the second bracket equals and so is never negative.
Use it in the direction that helps: a sum bounded below by a product when the product is fixed, a product bounded above by a sum when the sum is fixed. The equality case is half the tool, since it tells you where the extreme configuration sits.
Geometry the A-level course leaves out
An A-level course does geometry with coordinates, vectors and trigonometry, and leaves the synthetic subject at GCSE. Four things from that older tradition are needed here, and each is a short argument from what school already gave you.
Three centres and a word
The incentre of a triangle is where its three angle bisectors meet, and it is the centre of the circle that touches all three sides. The circumcentre is where the perpendicular bisectors of the sides meet, and it is the centre of the circle through all three vertices. The orthocentre is where the three altitudes meet. Each of those three claims is that three lines pass through one point, and each is proved where the book first needs it.
Four or more points are concyclic when a single circle passes through all of them. Showing that four points are concyclic is one of the most useful moves in the subject, because it puts the circle theorems at your disposal: opposite angles of the quadrilateral then add to degrees, and angles standing on the same chord from the same side are equal.
Similar triangles, the workhorse
Two triangles with equal angles have proportional sides. Almost every synthetic solution in this book is a hunt for a pair of similar triangles, and the usual way to find one is an angle chase: equal angles in the same segment, angles in a cyclic quadrilateral, the alternate segment theorem, or a pair of parallel lines.
The angle bisector theorem
In triangle , let the bisector of the angle at meet at . Then Compare the two triangles and . They have the same height from , so their areas are in the ratio . Using the formula on the angle at , which the bisector splits into two equal halves, their areas are also in the ratio . The two ratios are equal.
The power of a point
Let a line through meet a circle at and , and another line through meet it at and . Then When is inside the circle, triangles and have equal angles at , being vertically opposite, and equal angles at and , being angles in the same segment on . So they are similar and , which rearranges to the claim. When is outside, the same pair of triangles is similar for the same reasons, with the angle at now shared rather than vertically opposite.
The tangent case is the one to remember: if touches the circle at , then which follows by the alternate segment theorem in place of the angles in the same segment. The common value is called the power of , and a problem that mentions two circles and a point is very often asking about it.
Ptolemy’s theorem
For a cyclic quadrilateral , It is used twice in this book and proved at its first use, since the construction that proves it is worth seeing where it is doing work rather than here.
What is not here
Everything else. Where a solution needs a result this chapter has not given, it proves the case it needs on the spot, and where a solution needs an idea rather than a result, the crux at its head names the idea before the computation starts. Nothing in the book asks you to accept a theorem you have not seen justified, and nothing in it uses calculus.