KEY IDEA — Learning objectives
After studying this chapter you will be able to:
▪ attack unfamiliar problems with Pólya’s four steps;
▪ use the pigeonhole principle, parity and colouring arguments;
▪ find invariants and monovariants of a process;
▪ apply the extremal principle, work backwards, and exploit symmetry and small cases;
▪ prove inequalities with AM–GM and Cauchy–Schwarz;
▪ solve simple functional equations;
▪ tackle mixed problems drawn from the whole book.
SYLLABUS LINK — Where this chapter fits
▪ India: IOQM (Indian Olympiad Qualifier in Mathematics), RMO, INMO, leading to the IMO team.
▪ International: UKMT challenges and the British MO, the American AMC 8/10/12 and AIME, the Australian and Canadian competitions, and the IMO.
▪ Boards: the higher-order thinking (HOTS) and
competency-based questions of CBSE, ICSE and
Cambridge examinations use exactly these strategies.
▪ Olympiad: this whole chapter.
40.1 How to Solve It: Pólya’s Four Steps
KEY IDEA — Pólya’s method
▪ 1. Understand the problem. What is given? What is asked? Draw a figure and introduce notation.
▪ 2. Devise a plan. Have you seen a related problem? Try small cases, look for a pattern, work backwards, use
symmetry, consider an extreme case, or change the point of view.
▪ 3. Carry out the plan. Check each step.
▪ 4. Look back. Check the answer; can it be found
differently? Can the method solve other problems?
Example 40.1. How many diagonals does a convex n-gon have?
Solution. Small cases: a quadrilateral has 2, a pentagon 5, a hexagon 9. Plan: from each vertex, diagonals go to the n − 3 vertices that are neither itself nor its neighbours. This counts each diagonal twice.
∴ n(n − 3)/2. Check: n = 6 gives 9. ✓
40.2 The Pigeonhole Principle
KEY IDEA — Pigeonhole principle
If more than n objects are placed in n boxes, some box contains at least two objects. More generally, if more than kn objects go into n boxes, some box contains at least k + 1. The art is choosing the boxes.
Example 40.2. Prove that among any 13 people, two were born in the same month.
Solution. 13 people (objects) and 12 months (boxes).
∴ Some month has at least 2 people. □
Example 40.3. Five points lie inside a square of side 2. Prove that two of them are at most √2 apart.
Solution. Divide the square into four unit squares (boxes). Two of the five points lie in the same unit square, and the greatest distance in a unit square is its diagonal, √2.
∴ Two points are at most √2 apart. □
40.3 Parity and Colouring
Parity means whether a number is even or odd. Many processes preserve parity, and many impossibility proofs rest on it. Colouring a board turns a geometric question into a parity question.
Example 40.4. The numbers 1, 2, …, 10 are written on a board. A move erases any two numbers a and b and writes ∣a − b∣. After nine moves one number is left. Can it be 0?
Solution. a + b and ∣a − b∣ have the same parity, so the parity of the total never changes. The first total is 55, which is odd.
∴ The final number is odd, so it cannot be 0. □

Figure 40.1 A chessboard without two opposite corners
40.4 Invariants and Monovariants
An invariant is a quantity that a process never changes. If the start and the target have different values of the invariant, the target cannot be reached. A monovariant always moves in one direction (for example, it always decreases); if it is a positive integer, the process must stop.
Example 40.5. On an island there are 13 red, 15 green and 17 blue chameleons. When two chameleons of different colours meet, both change to the third colour. Can all the chameleons become the same colour?
Solution. When two colours meet, those two counts fall by 1 and the third rises by 2, so each difference between two counts changes by 0 or ±3. The differences 13 − 15 = −2, 15 − 17 = −2 and 13 − 17 = −4 are not multiples of 3, and they never will be.
If all were one colour, two counts would be 0, with difference 0, a multiple of 3.
∴ No. □
40.5 The Extremal Principle
Look at the largest, the smallest, the first or the last object. Extreme objects often have special properties.
Example 40.6. In the plane there are n red and n blue points, no three collinear. Prove that they can be joined in red–blue pairs by n segments, no two of which cross.
Solution. There are finitely many pairings. Choose one with the least total length. Suppose segments R₁B₁ and R₂B₂ cross. Replacing them by R₁B₂ and R₂B₁ makes the total strictly shorter, by the triangle inequality applied at the crossing point.
∴ This contradicts minimality, so the shortest pairing has no crossings. □
40.6 Working Backwards, Symmetry and Small Cases
Example 40.7. There are 21 matches. Two players take turns removing 1, 2 or 3. Whoever takes the last match wins. Who should win?
Solution. Work backwards: a player facing 4 matches loses, since whatever she takes, the opponent takes the rest. So 8, 12, 16, 20 are losing positions too.
∴ The first player wins: take 1 to leave 20, then always make the total taken in each round 4. □
Example 40.8. Two players take turns placing equal coins Nat on a round table, without overlapping. The player who cannot move loses. Who wins?
Solution. Symmetry: the first player puts a coin at the centre, then always copies the opponent’s move reNected through the centre. Whenever the opponent finds space, the mirror space is also free. ∴ The first player. □
40.7 Inequalities: AM–GM and Cauchy– Schwarz
KEY IDEA — Two powerful inequalities
▪ AM–GM: for non-negative a₁, …, an, (a₁ + … + an)/n ≥ (a₁a₂…an)1/n, with equality exactly when all are equal.
▪ Cauchy–Schwarz: (a₁b₁ + … + anbn)2 ≤ (a₁2 + … + an2)(b₁2 + … + bn2), with equality when the a’s are proportional to the b’s.
▪ Both reduce to “a square is never negative”, for example (√a − √b)2 ≥ 0.
Example 40.9. (a) Find the least value of x + 4/x for x > 0. (b) If a, b, c > 0 and a + b + c = 3, prove that abc ≤ 1.
Solution. (a) x + 4/x ≥ 2√(x × 4/x) = 4, with equality when x = 4/x, x = 2. (b) AM–GM: 1 = (a + b + c)/3 ≥ ∛(abc).
∴ (a) 4, at x = 2 (b) abc ≤ 1. □
Example 40.10. Find the least value of x2 + y2 when 3x + 4y = 25.
Solution. Cauchy–Schwarz: (3x + 4y)2 ≤ (32 + 42)(x2 + y2), so 625 ≤ 25(x2 + y2). Equality needs x : y = 3 : 4.
∴ 25, at (3, 4) — the square of the distance from the origin to the line.
40.8 Functional Equations
A functional equation has an unknown function. Useful moves: substitute special values (0, 1, −x, 1/x), and compare the equations you get.
Example 40.11. Find f if f(x) + 2f(1/x) = 3x for all x ≠ 0.
Solution. Replace x by 1/x: f(1/x) + 2f(x) = 3/x. Doubling this gives 2f(1/x) + 4f(x) = 6/x. Subtract the original equation: 3f(x) = 6/x − 3x.
∴ f(x) = 2/x − x. (Check: 2/x − x + 2(2x − 1/x) = 3x. )✓
Example 40.12. f is defined on the integers and f(m + n) = f(m) + f(n) for all m and n. Prove that f(n) = n f(1).
Solution. Put m = n = 0: f(0) = 2f(0), so f(0) = 0. By induction, f(n + 1) = f(n) + f(1) gives f(n) = n f(1) for n ≥ 0. Then f(n) + f(−n) = f(0) = 0 covers negative n.
∴ f(n) = cn with c = f(1). □
COMMON MISTAKE — Olympiad habits
Write down every case you try, even failures. Test claims on small examples before trying to prove them. A full solution needs a proof, not just the answer, and in an inequality always say when equality holds.
HERITAGE OF INDIAN MATHEMATICS — Ramanujan and the number 1729
When G. H. Hardy visited Srinivasa Ramanujan in hospital, he remarked that his taxi’s number, 1729, seemed dull. Ramanujan replied at once that it is very interesting: it is the smallest number expressible as a sum of two cubes in two different ways, 1729 = 13 + 123 = 93 + 103. Ramanujan’s instant pattern-spotting is the Olympiad spirit at its finest. India first took part in the International Mathematical Olympiad in 1989 and has since won many gold medals.
FROM THE HISTORY OF MATHEMATICS — Pólya and the IMO George Pólya’s book How to Solve It (1945) taught generations to think about problems systematically and is still in print. The first International Mathematical Olympiad was held in Romania in 1959 with seven countries; today more than 100 countries send teams of six school students each year.
OLYMPIAD CORNER — The mutilated chessboard
Remove two opposite corners from a chessboard (Figure 40.1). Can the remaining 62 squares be covered by 31 dominoes? Each domino covers one dark and one light square, so 31 dominoes cover 31 of each colour. But opposite corners have the same colour, so the board has 30 squares of one colour and 32 of the other. The tiling is impossible, a perfect example of a colouring invariant.
Chapter Summary
▪ Pólya: understand, plan, carry out, look back.
▪ Pigeonhole: more than n objects in n boxes; choose the boxes cleverly.
▪ Parity and colouring show impossibility; invariants never change; monovariants force a process to stop.
▪ Extremal principle: study the largest, the smallest or the shortest.
▪ Work backwards from the end of a game; use symmetry; try small cases.
▪ AM–GM and Cauchy–Schwarz; state when equality holds.
▪ Functional equations: substitute special values and combine equations.
Exercise 40A — Foundation Problems
1. A drawer holds 5 red and 5 blue socks. How many must you take out in the dark to be sure of a matching pair?
2. In the drawer of Q1, how many must you take to be sure of 2 red socks?
3. Explain why, among 367 people, two must share a birthday.
4. Prove that among any 11 integers, two have the same last digit.
5. Can ten odd numbers add up to 25? Can five?
6. Count the handshakes for 2, 3, 4 and 5 people, and find a formula for n people.
7. I think of a number, double it and add 6. The result is 20. What was my number?
8. A snail climbs 3 m up a well each day and slips back 2 m each night. The well is 10 m deep. On which day does the snail reach the top?
9. Find 1 + 2 + 3 + … + 100 by pairing the first and last terms.
10. Find the least value of x + 9/x for x > 0.
11. Prove that a2 + b2 ≥ 2ab for all real a and b.
12. If f(x) = 2x + 3, find f(f(1)).
13. If f(x + 1) = x2 + 1 for all x, find f(3).
14. Can a 3 × 3 board be covered exactly by dominoes (1 × 2 tiles)?
15. The numbers 1 to 6 are on a board. A move replaces any two numbers by their sum. What number remains at the end?
16. Five numbers add up to 20. Prove that at least one of them is at least 4.
17. Two trains 100 km apart move towards each other at 50 km/h
each. A Ny Nies at 75 km/h from one train to the other and back until the trains meet. How far does the Ny travel?
18. Name Pólya’s four steps of problem solving.
19. Find the last digit of 3100.
20. How many squares of all sizes are there on a 4 × 4 board?
Exercise 40B — Standard Problems
1. Prove that among any 5 integers, two have a difference divisible by 4.
2. Prove that in any group of 6 people there are 3 who all know each other or 3 who are all strangers.
3. A knight makes a sequence of moves and returns to its starting square. Prove that it made an even number of moves.
4. Two opposite corner squares are removed from a 6 × 6 board. Can the rest be covered by dominoes?
5. The numbers 1, 2, …, 10 are on a board. A move replaces a and b by a + b + ab. Find the final number.
6. There are 30 coins. Two players take turns removing 1, 2, 3 or 4 coins; whoever takes the last coin wins. Who wins with best play?
7. Prove that (a + b)(b + c)(c + a) ≥ 8abc for positive a, b, c.
8. If x + y = 10 with x, y > 0, find the greatest value of xy.
9. Prove that (a + b + c)2 ≤ 3(a2 + b2 + c2).
10. A function satisfies f(xy) = f(x) + f(y) for all positive x and y. Prove that f(1) = 0 and f(1/x) = −f(x).
11. Find f if f(x) − 2f(1 − x) = x for all x.
12. Find 1, 1 + 2 + 1, 1 + 2 + 3 + 2 + 1, …. Guess and prove a formula for 1 + 2 + … + n + … + 2 + 1.
13. Prove that there is no smallest positive rational number.
14. Prove that n5 − n is divisible by 30 for every integer n.
15. Six numbers are chosen from 1, 2, …, 10. Prove that two of them add up to 11.
Exercise 40C — Higher-Order Thinking Problems
1. Prove that among any 7 different integers, there are two whose sum or difference is divisible by 10.
2. 51 points lie in a unit square. Prove that some 3 of them lie inside a circle of radius 1/7.
3. Start with the triple (3, 4, 5). A move replaces two of the numbers a and b by (a + b)/√2 and (a − b)/√2. Can you reach (4, 6, 1)?
4. In a list of numbers, a move swaps two neighbours that are out of order. Prove that the process always stops.
5. Two players take turns adding a whole number from 1 to 10 to a running total that starts at 0. Whoever makes the total exactly 100 wins. Find a winning strategy.
6. Prove that a/b + b/c + c/a ≥ 3 for positive a, b, c.
7. Prove that x4 + y4 + 8 ≥ 8xy for all real x and y.
8. f(x + y) = f(x) + f(y) for all rational x and y. Prove that f(q) = q f(1) for every rational q.
9. Prove that a 10 × 10 board cannot be tiled by 1 × 4 tiles. (Colour square (i, j) with colour (i + j) mod 4.)
10. At a party of n ≥ 2 people, some pairs shake hands. Prove that two people shook the same number of hands.
Exercise 40D — Olympiad Problems
1. Prove that √2 is irrational by infinite descent: if √2 = a/b, find a smaller pair of positive integers with the same ratio.
2. Find all positive integers n for which n + 1 divides n2 + 1.
3. Positive numbers a, b, c have abc = 1. Prove that a + b + c ≥ 3.
4. Positive numbers x and y have x + y = 1. Find the least value of (x + 1/x)2 + (y + 1/y)2.
5. With f(x) = 2/x − x (Example 40.11), find all x with f(x) = f(−x).
6. Prove that some power of 3 ends in the digits 001.
7. Can a knight start on a1, visit every square of a chessboard exactly once, and finish on h8?
8. In Nim with heaps of 3, 4 and 5 counters, players take any number from one heap, and whoever takes the last counter
wins. Find a winning first move.
9. Prove that from any 10 different two-digit numbers, one can choose two disjoint non-empty groups with the same sum.
10. Find all functions f from the positive integers to the positive integers with f(m + n) = f(m) + f(n) and f(2) = 6.
11. In how many ways can you climb a staircase of 10 steps, taking 1 or 2 steps at a time?
12. Prove that the product of any k consecutive positive integers is divisible by k!.
Exercise 40E — Mixed Challenge Set
These problems mix topics from the whole book. Each is labelled with its topic.
1. (Number) Find the last two digits of 7100.
2. (Algebra) If x + 1/x = 3, find x2 + 1/x2 and x3 + 1/x3.
3. (Geometry) A right-angled triangle has legs 20 and 21. Find its hypotenuse and the radius of its inscribed circle.
4. (Coordinates) Find the area of the triangle with vertices (0, 0), (4, 0) and (1, 3).
5. (Trigonometry) If sin θ + cos θ = √2 and θ is acute, find θ.
6. (Mensuration) The space diagonal of a cube is 6√3 cm. Find its volume.
7. (Statistics) Five consecutive even numbers have mean 20. Find the largest.
8. (Probability) Three coins are tossed. Find the probability of at least two heads.
9. (Counting) How many 3-digit palindromes (such as 474) are there?
10. (Calculus) Find the greatest value of 6x − x2.
Brain Teasers
1. Three switches outside a closed room control one bulb inside. You may enter the room once. How can you tell which switch controls the bulb?
2. Twelve coins look identical, but one is heavier or lighter. Can a balance find it, and say which, in three weighings?
3. Two ropes each take exactly 1 hour to burn, but unevenly. How can you measure 45 minutes?
4. A farmer must ferry a wolf, a goat and a cabbage across a river in a boat that holds him and one item. The wolf cannot be left with the goat, nor the goat with the cabbage. How does he do it?
5. With two eggs and a 100-Noor building, what is the least number of drops that always finds the highest safe Noor?
6. A monk walks up a mountain from 6 am to 6 pm, and walks down the same path the next day from 6 am to 6 pm. Must he be at the same spot at the same time on both days?
7. Prove that at any party, the number of people who shook hands an odd number of times is even.
8. Join nine dots in a 3 × 3 square with four straight lines without lifting your pencil.
9. How many times do the hands of a clock overlap in 12 hours?
10. A bat and a ball cost ₹110 together. The bat costs ₹100 more than the ball. How much is the ball?
Multiple-Choice Questions
1. The first of Pólya’s steps is to: (a) look back (b) carry out the plan (c) understand the problem (d) guess
2. If 10 letters go into 9 pigeonholes, some pigeonhole has at least this many letters: (a) 1 (b) 10 (c) 9 (d) 2
3. The sum of 7 odd numbers is: (a) even (b) odd (c) zero (d) prime
4. A quantity that a process never changes is: (a) an invariant (b) a monovariant (c) a variable (d) a parameter
5. By AM–GM, the least value of x + 1/x (x > 0) is: (a) 2 (b) 1 (c) 0
(d) 4
6. A chessboard without two opposite corners has squares of the two colours numbering: (a) 31 and 31 (b) 30 and 32 (c) 32 and 32 (d) 29 and 33
7. In the game with 21 matches, taking 1 to 3, the losing positions are multiples of: (a) 3 (b) 5 (c) 4 (d) 7
8. Cauchy–Schwarz gives (ax + by)2 ≤: (a) (a2 + b2)(x2 + y2) (b) (a + b)(x + y) (c) a2x2 (d) (ab + xy)2
9. If f(x + y) = f(x) + f(y) for all integers, then f(0) is: (a) 1 (b) f(1)
(c) 0 (d) undefined
10. The number of diagonals of a hexagon is: (a) 6 (b) 9 (c) 12 (d) 15
11. 1729 is famous because it is the smallest number that is: (a) prime (b) a triangular number (c) a perfect square (d) a sum of two cubes in two ways
12. India first took part in the IMO in: (a) 1959 (b) 1975 (c) 2000 (d) 1989
13. The last digit of 210 is: (a) 2 (b) 4 (c) 6 (d) 8
14. Among 5 points in a square of side 2, two are within a distance of: (a) 1 (b) 2 (c) √2 (d) 2√2
15. The book How to Solve It was written by: (a) Pólya (b) Ramanujan (c) Euler (d) Hardy
Solutions to Chapter 40
Solutions — Exercise 40A
1. Two colours are the boxes.
∴ 3.
2. In the worst case you take all 5 blue first.
∴ 7.
3. There are at most 366 different birthdays.
∴ Pigeonhole. □
4. There are only 10 possible last digits.
∴ Pigeonhole. □
5. A sum of ten odd numbers is even; 1 + 3 + 5 + 7 + 9 = 25. ∴ Ten: no. Five: yes.
6. 1, 3, 6, 10.
∴ n(n − 1)/2.
7. Undo the steps: 20 − 6 = 14, 14 ÷ 2 = 7.
∴ 7.
8. After 7 days and nights it is at 7 m; on day 8 it climbs to 10 m. ∴ Day 8.
9. 50 pairs, each adding to 101.
∴ 5050.
10. AM–GM: x + 9/x ≥ 2√9, with equality at x = 3.
∴ 6.
11. a2 + b2 − 2ab = (a − b)2 ≥ 0.
∴ Proved. □
12. f(1) = 5; f(5) = 13.
∴ 13.
13. Put x = 2.
∴ 5.
14. 9 squares is odd, but each domino covers 2.
∴ No.
15. The total never changes: 1 + 2 + … + 6.
∴ 21.
16. If all were less than 4, the sum would be less than 20.
∴ Proved (extremal argument). □
17. The trains meet after 1 hour.
∴ 75 km.
18. See Section 40.1.
∴ Understand, plan, carry out, look back.
19. Last digits of 3n repeat 3, 9, 7, 1; 100 is a multiple of 4. ∴ 1.
20. 16 + 9 + 4 + 1.
∴ 30.
Solutions — Exercise 40B
1. The remainders on division by 4 are 0, 1, 2, 3 (four boxes). ∴ Two share a remainder, so their diAerence is divisible by 4. □
2. Pick one person, P. Of the other 5, at least 3 are friends of P, or at least 3 are strangers to P; say 3 friends. If two of those 3 know each other, they and P form a friendly triangle; if none do, the 3 are mutual strangers.
∴ Proved. □
3. Every knight move changes the colour of the square.
∴ Returning to the same colour takes an even number of moves. □
4. The removed corners have the same colour, leaving 16 of one colour and 18 of the other.
∴ No.
5. a + b + ab + 1 = (a + 1)(b + 1), so the product of all (x + 1) is invariant: 2 × 3 × … × 11 = 11!.
∴ 11! − 1 = 39 916 799.
6. Multiples of 5 are losing positions, and 30 is one.
∴ The second player wins.
7. a + b ≥ 2√(ab), and similarly for the other two factors; multiply. ∴ ≥ 8abc. □
8. AM–GM: xy ≤ ((x + y)/2)2.
∴ 25.
9. Cauchy–Schwarz with (1, 1, 1) and (a, b, c); or expand and use 2ab ≤ a2 + b2.
∴ Proved. □
10. x = y = 1 gives f(1) = 2f(1). Then f(x) + f(1/x) = f(1) = 0. ∴ Proved. □
11. Replace x by 1 − x: f(1 − x) − 2f(x) = 1 − x. Solve the two equations.
∴ f(x) = (x − 2)/3.
12. 1, 4, 9: the sum is n2. Proof: (1 + … + n) + (1 + … + (n − 1)) = n(n + 1)/2 + (n − 1)n/2.
∴ n2. □
13. If r were the smallest positive rational, r/2 would be smaller. ∴ Contradiction. □
14. n5 − n = n(n − 1)(n + 1)(n2 + 1) is divisible by 2 and 3 (consecutive integers). For 5: if n leaves remainder 0, 1 or 4 on division by 5, a factor n, n − 1 or n + 1 is divisible by 5; if 2 or 3, then n2 + 1 is.
∴ Divisible by 30. □
15. Pairs (1, 10), (2, 9), (3, 8), (4, 7), (5, 6) are five boxes.
∴ Six numbers put two in one pair. □
Solutions — Exercise 40C
1. Group the remainders mod 10 as {0}, {5}, {1, 9}, {2, 8}, {3, 7}, {4, 6}: six boxes. Two of the 7 integers share a box. If they have equal remainders, their difference is divisible by 10; otherwise their sum is.
∴ Proved. □
2. Cut the square into 25 squares of side 1/5. Some small square holds 3 points. Its circumscribed circle has radius √2/10 ≈ 0.1414 < 1/7 ≈ 0.1429.
∴ Proved. □
3. [(a + b)/√2]2 + [(a − b)/√2]2 = a2 + b2, so the sum of squares is invariant. 9 + 16 + 25 = 50, but 16 + 36 + 1 = 53.
∴ No. □
4. Each swap reduces the number of out-of-order pairs by exactly 1, a positive integer monovariant.
∴ It stops. □
5. Work backwards: totals 89, 78, …, 12, 1 (one more than a multiple of 11) are winning targets.
∴ Start with 1, then always make the pair of moves add up to 11.
6. AM–GM on three terms: ≥ 3∛[(a/b)(b/c)(c/a)] = 3.
∴ Proved. □
7. AM–GM on x4, y4, 4, 4: their sum is ≥ 4 × (16x4y4)1/4 = 8∣xy∣ ≥ 8xy.
∴ Proved. □
8. As in Example 40.12, f(n) = n f(1) for integers. If q = m/n, then n f(q) = f(nq) = f(m) = m f(1).
∴ f(q) = q f(1). □
9. Each 1 × 4 tile, placed either way, covers one square of each colour. But the four colours occur 25, 26, 25 and 24 times. ∴ Impossible. □
10. The possible numbers are 0, 1, …, n − 1, but 0 and n − 1 cannot both occur. So the n people have at most n − 1 different values. ∴ Pigeonhole. □
Solutions — Exercise 40D
1. If √2 = a/b with a, b as small as possible, then √2 = (2b − a)/(a − b), and 0 < a − b < b.
∴ This is a smaller representation: a contradiction. □
2. n2 + 1 = (n + 1)(n − 1) + 2, so n + 1 must divide 2.
∴ n = 1.
3. AM–GM: (a + b + c)/3 ≥ ∛(abc) = 1.
∴ Proved. □
4. Since u2 + v2 ≥ (u + v)2/2, the expression is ≥ ½(1 + 1/x + 1/y)2, and 1/x + 1/y ≥ 4/(x + y) = 4.
∴ 25/2, at x = y = ½.
5. 2/x − x = −2/x + x gives 4/x = 2x.
∴ x = ±√2.
6. Two of 31, 32, …, 31001 leave the same remainder on division by 1000, say 3i and 3j with i < j. Then 1000 divides 3i(3j − i − 1), and since 3 and 1000 are coprime, 1000 divides 3j − i − 1.
∴ 3j − i ends in 001 (in fact 3100 does). □
7. A tour of all 64 squares has 63 moves, which change colour 63 times, so it ends on the opposite colour. But a1 and h8 have the same colour.
∴ No. □
8. Bouton’s rule: write the heaps in binary and make the “nim- sum” (XOR) zero. 3 ⊕ 4 ⊕ 5 = 2; changing 3 to 1 gives 1 ⊕ 4 ⊕ 5 = 0.
∴ Take 2 from the heap of 3.
9. There are 210 − 1 = 1023 non-empty groups but at most 990 possible sums (each ≤ 10 × 99). Two groups have equal sums; remove their common numbers.
∴ Proved. □
10. f(n) = n f(1) and f(2) = 2f(1) = 6.
∴ f(n) = 3n.
11. Ways(n) = Ways(n − 1) + Ways(n − 2), with Ways(1) = 1, Ways(2) = 2: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89.
∴ 89.
12. (n + 1)(n + 2)…(n + k)/k! = (n + k)Ck, which counts selections and so is a whole number.
∴ Proved. □
Solutions — Exercise 40E
1. 74 = 2401 ends in 01, so 7100 = (74)25 ends in 01.
∴ 01.
2. Square: x2 + 1/x2 = 9 − 2. Cube: x3 + 1/x3 = 27 − 3 × 3. ∴ 7; 18.
3. √(400 + 441) = 29; r = (a + b − c)/2.
∴ 29; 6.
4. Base 4, height 3.
∴ 6.
5. √2 sin(θ + 45°) = √2.
∴ 45°.
6. Edge a with √3 a = 6√3.
∴ 216 cm3.
7. The middle number is 20: 16, 18, 20, 22, 24.
∴ 24.
8. HHT, HTH, THH, HHH: 4 of 8.
∴ ½.
9. First digit 1–9, middle 0–9.
∴ 90.
10. Derivative 6 − 2x = 0 at x = 3.
∴ 9.
Solutions — Brain Teasers
1. Turn on switch 1 for ten minutes, then off; turn on switch 2 and enter. On: switch 2. O: and warm: switch 1. O: and cold: switch 3.
∴ Use the heat of the bulb.
2. Each weighing has 3 outcomes, and 33 = 27 ≥ 24 possible answers; a careful scheme works.
∴ Yes.
3. Light rope A at both ends and rope B at one end. When A finishes (30 min), light B’s other end; it finishes 15 minutes later.
∴ 45 minutes.
4. Take the goat; return; take the wolf; bring the goat back; take the cabbage; return; take the goat.
∴ Seven crossings.
5. Drop from Noors 14, 27, 39, … (gaps 14, 13, 12, …), since 14 + 13 + … + 1 = 105 ≥ 100.
∴ 14 drops.
6. Imagine two monks walking on the same day, one up and one down: they must meet.
∴ Yes.
7. The total of all handshake counts is twice the number of handshakes, which is even.
∴ So the odd counts come in an even number. □
8. Extend the lines beyond the square of dots.
∴ Think outside the box.
9. The minute hand gains 360° on the hour hand 11 times in 12 hours.
∴ 11 times.
10. b + (b + 100) = 110.
∴ ₹5 (not ₹10).
Solutions — Multiple-Choice Questions
1. Pólya.
∴ (c).
2. Pigeonhole.
∴ (d).
3. Parity.
∴ (b).
4. Definition.
∴ (a).
5. 2√1.
∴ (a).
6. 30 and 32. ∴ (b).
7. Multiples of 4. ∴ (c).
8. Cauchy–Schwarz. ∴ (a).
9. f(0) = 2f(0). ∴ (c).
10. 6 × 3/2.
∴ (b).
11. Sum of two cubes. ∴ (d).
12. 1989.
∴ (d).
13. 1024.
∴ (b).
14. √2.
∴ (c).
15. Pólya.
∴ (a).