Welcome the students.
Ask: what do you see? Wait ten seconds. Nobody can read 108 pairs of numbers.
Say: these are the same numbers. Each pair is now one point. Ask again: what is it?
Say: joined in order, it is a butterfly. Nothing new was added. Only the drawing lets us see what the numbers say.
Say: a drawing can do more than show. It can prove. We start with one dot.
Add three dots around it. Ask: what shape is it now? A 2 by 2 square.
Add five more: 3 by 3.
Add seven: 4 by 4. Ask: how many dots come next?
Nine more: 5 by 5.
Eleven more: 6 by 6.
Ask: why is the sum of the first n odd numbers always n × n? The picture is the whole proof: each new layer wraps the square and has two more dots than the last one.
Say: in the Olympiad, the first minutes are for reading and drawing, not for calculating.
Say: every Olympiad question arrives as words. Read this one aloud and give the students a moment.
Say: we leave the world of words and draw. The first drawing is the board with some dominoes on it. Trying does not help much.
Say: so we change the drawing. With two colours we see something new. Every domino covers one square of each colour, and the two missing corners have the same colour.
Say: now the picture becomes numbers. 31 dominoes need 31 squares of each colour. The board has only 30 of one colour.
Say: we go back to the world of words. The answer is a sentence with its reason, so that anybody can check it. This is what rigour means.
Say: read, translate, solve, answer, and then read the question again. Every question today makes this trip.
How do we translate a question into an animated solution?
Say: every question follows the same three moves. Read the words, translate them into a drawing, then solve by moving the drawing.
Say: five questions come from past Irish Olympiads.
Say: the last four are new, and come from measuring insect wings.
Next stop: Seven Friends.
Say: this question is from the first Irish Olympiad, in 1988.
1st IrMO, 30 April 1988, Paper 1, Question 5
Read slowly. Ask: which numbers matter? Seven friends, three guests, seven nights.
Ask: which words make it difficult? “At least once”.
Rows are friends and columns are nights.
seven friends, seven days→A table: 7 rows, 7 columns
three friends … every night→3 circles in each column
a different subset→No two columns are equal
all friends … at least once→No row is empty
Ask: how would you draw one week? Let a student suggest the table first.
Watch one night at a time: three circles in each column.
Point at the groups under the columns: all seven are different.
Run a finger along each row. Ask: what would an empty row mean? A friend who is never invited.
n! = n × (n − 1) × … × 2 × 1. For example 3! = 6 and 4! = 24.
Which counting rules do we need?
Say: we need two counting rules. First, choose the three guests one after the other: 7 choices, then 6, then 5.
Ask: we counted the dinner with friends 1, 2, 3 more than once. How often? Six times, once for each order.
Say: so we divide by 6. There are 35 different dinners.
Say: this is the general formula. Check it with n = 7 and k = 3: 7! divided by 3! times 4!. The 4! cancels and leaves 7 × 6 × 5 over 6.
Say: when the order matters we do not divide. For the week, the order of the nights matters.
Each box is one dinner with three friends. P(35, 7) = 35 × 34 × … × 29: seven different dinners, in order.
How many weeks are possible?
Ask: how many groups of three can we choose from seven friends? The formula is under the number.
Say: 35 choices on the first night, then 34, then 33. P(35, 7) is the product of these seven numbers.
Cross out every dinner with friend 1. Six friends remain, choose three: 6 × 5 × 4 divided by 6 is 20.
Cross out friend 2 as well. Five remain, choose three: 10.
Ask: can we fill seven nights with four dinners? No. So at most two friends can be missing.
Outside every circle = all − (one friend missing) + (two missing) − (three missing).
Which weeks do we remove?
Say: a circle holds the weeks in which one friend is never invited. We want the weeks outside every circle.
Say: seven friends, so seven subtractions. Point at the overlap. Ask: how often is it counted now? 1 − 2 = −1.
Say: adding the pair back makes the overlap zero. There are 21 pairs of friends: 7 choose 2, which is 7 × 6 divided by 2.
Remind them: with three friends missing, only four dinners are left. P(4, 7) = 0, so the 35 triples of friends add nothing.
Read the total: P(35, 7) − 7 P(20, 7) + 21 P(10, 7).
Repeat the idea: count all, subtract, add back.
Next stop: Two Sets.
Say: this is Question 1 of Paper 1 in 2012.
25th IrMO, 12 May 2012, Paper 1, Question 1
Find two sets $A$ and $B$ with the properties
Say: C holds the numbers from 1 to 20. S holds only six numbers.
Ask: what do (a) and (b) say in plain words? Every number goes into exactly one set.
The numbers in C, the forbidden sums in S, and the two sets to fill.
C and S→20 numbers and 6 forbidden sums
A ∩ B = ∅, A ∪ B = C→Each number goes into one box
the sum … is not in S→1 + 3 = 4 is in S: separate them
any other sum→1 + 2 = 3 is not in S: no rule
Point at the six numbers in S: these are the forbidden sums.
Say: two boxes, and every number must choose one.
Ask: can 1 and 3 share a box? Their sum is 4, so no.
Ask: and 1 and 2? Yes, they may share a box. Only the forbidden pairs matter.
An edge joins two numbers whose sum is in S.
Which pairs are forbidden?
Say: one point for each number in C. We join two numbers when their sum is in S. Ask: what will an edge mean? These two cannot be in the same set.
Ask: which two different numbers add to 4? Only 1 and 3. Not 2 + 2, because the two numbers must be different.
Ask for the pairs with sum 5: 1 + 4 and 2 + 3.
Sum 9: start with 1 + 8 and move one step each time, until 4 + 5.
Sum 14: from 1 + 13 to 6 + 8. Not 7 + 7.
Ask: why does sum 23 start with 3 + 20? Because no number is larger than 20. It ends with 11 + 12.
Sum 37 needs two large numbers: 17 + 20 and 18 + 19. Count the edges together: 24.
Each click follows edges from one number. The sums in the box are in S, so the two numbers go to different sets.
Who goes where?
Say: the sets are empty. We must start somewhere, so we put 1 in A. Ask: does it matter? No, A and B are only names.
First connection. Say: 1 + 3 = 4, and 4 is in S. So 3 cannot be with 1, and 3 goes to B.
Second connection. Say: 1 + 4 = 5 is in S, so 4 goes to B.
Third connection. Say: 1 + 8 = 9 is in S, so 8 goes to B.
Fourth connection. Say: 1 + 13 = 14 is in S, so 13 goes to B. Now 1 has no more edges.
Say: we move forward and take 3, which is in B. Ask for its edges: 2, 6, 11 and 20. Each one must leave B, so they go to A.
Take 4, in B. Its new neighbours are 5, 10 and 19: they go to A.
Take 8, in B. It forces 15 into A.
Say: now we start from A. 2 is in A, so 7 and 12 go to B. Let the students say the sums.
Take 6, in A: 6 + 17 = 23, so 17 goes to B.
Take 5, in A: 9 and 18 go to B.
Take 7, in B: 7 + 16 = 23, so 16 goes to A.
Take 9, in B: 9 + 14 = 23, so 14 goes to A. Ask: is any number still white? No, all 20 have a set.
Say: we used 19 edges to decide. The other 5 must be checked: each one joins a number of A to a number of B. If one of them joined two numbers of the same set, no answer would exist.
Say: we pull the two colours apart. Ask: do you see an edge inside a row? None, so the two sets work. Such a graph is called bipartite.
Say: every choice after the first one was forced, and the graph is in one piece. So this is the only answer, apart from the names A and B.
Repeat the idea: edges for forbidden pairs.
Next stop: The Postman.
Say: this is Question 1 of Paper 1 in 2009.
22nd IrMO, 9 May 2009, Paper 1, Question 1
Throughout the entire journey he must observe the following rules.
Ask a student to place the houses with their hands: odd numbers on one side, even on the other.
Say: he starts at 1 and ends at 1. It is a closed walk.
Read the three rules one by one. Ask: which rule is the strongest?
Say: we count sequences, so the order matters.
Odd houses on one side, even houses on the other.
directly opposite→Two sides, four facing pairs
odd-even-odd-even→He crosses the road every time
not … directly opposite→4 crossings are forbidden
each house … exactly once→One closed loop through all 8
Say: 1 faces 2, 3 faces 4, and so on.
Ask: can he go from 1 to 3? No, both are odd. He crosses the road every time.
Point at the four crossed lines. These are the only forbidden crossings.
Follow the route with a finger: 1, 4, 5, 2, 7, 6, 3, 8, and back to 1.
The eight visits in order.
Where can each house go?
Say: eight places. The odd houses take the first, third, fifth and seventh.
Ask: how many orders for 3, 5 and 7? Three choices for the first, two for the next, one for the last: 3! = 6. House 1 is fixed.
Take 1, 3, 5, 7. Between 1 and 3, houses 2 and 4 are opposite, so only 6 or 8 fits.
Say: 6 is used, so the last place must be 4. Then the place before 7 must be 2, and 8 is left.
Say: 8 is used, so the place after 3 must be 2. Then 4, and 6 is left.
Say: in every order, each gap excludes the two facing houses, so the same argument works. Two sequences each.
The twelve routes. The coloured line is the way back to house 1.
Can we check the answer?
Say: a second method is the best check. Now we look at the houses just after and just before house 1.
Ask: three choices for the second house, then how many for the last? Two.
Watch the routes draw themselves. Every way has two routes, shown one above the other.
Say: both methods give 12.
Repeat the idea: place one side first.
Next stop: A Prime Number.
Say: same paper, 2009, Question 3. The statement is short, but it hides a lot.
22nd IrMO, 9 May 2009, Paper 1, Question 3
Ask: what is a prime number? Ask for a first value of n to try.
A number of dots, arranged in a rectangle.
positive integer n→A number goes in, a number comes out
prime number→The dots fit in one row only
not prime→The dots form a wider rectangle
Say: think of a machine. We put n in and ask whether the output is prime.
Ask: can you arrange seven dots in a rectangle? Only as a single row.
Say: six dots make 2 by 3. So to show “not prime”, we look for a rectangle.
| $n$ | $n^8+n+1$ | Prime factors | Hidden factor |
|---|---|---|---|
| $1$ | $3$ | $3$ (prime) | $\textcolor{#c4006a}{3}$ |
| $2$ | $259$ | $7\times 37$ | $\textcolor{#c4006a}{7}$ |
| $3$ | $6565$ | $5\times 13\times 101$ | $\textcolor{#c4006a}{13}$ |
| $4$ | $65541$ | $3\times 7\times 3121$ | $\textcolor{#c4006a}{21=3\times 7}$ |
The first four positive integers.
What do small cases show?
Say: 1 + 1 + 1 = 3, a prime number.
Ask: is 259 prime? Try 7.
Say: it ends in 5, so it is not prime.
Say: the digits add to 21, so 3 divides it.
Ask: what connects 3, 7, 13 and 21? The differences are 4, 6, 8. They are the values of n² + n + 1.
One operation per line.
Is the factor always there?
Say: we want to see n² + n + 1 inside this expression.
Ask: what is missing? An n². We subtract it and add it, so nothing changes.
Say: the coloured part is ready. Look only at n⁸ − n².
Say: n⁶ is the square of n³, so we use a² − 1 = (a + 1)(a − 1).
Say: n³ − 1 = (n − 1)(n² + n + 1). Multiply it out if they do not know it. The factor appears.
Say: the first part has the factor, and the second part is the factor once. That is why + 1 is left in the second bracket.
The two factors are the sides of the rectangle.
Can a side be equal to 1?
Say: a product is a rectangle of dots.
Say: for n = 1 the second factor is 0 + 1 = 1, so the dots make one row.
Watch 259 dots make a 7 by 37 rectangle.
Ask: when is the second side equal to 1? Only when n − 1 = 0. For n ≥ 2 both sides grow, so the number is never prime again.
Repeat the idea: not prime means a rectangle.
Next stop: Four Mice.
Say: this is the last question of Paper 2 in 2012. It is long, so we read it in pieces.
25th IrMO, 12 May 2012, Paper 2, Question 10
Say: a square board and four mice, one in each corner. The example comes on the next slide.
Read the three rules. Do not explain them yet, the drawing will do it.
Ask: what must be true at the end? Every edge used twice, and every mouse at home.
The board for n = 5, with one mouse at each corner.
a mouse … at each corner→4 mice on an n × n grid
(a) each … one unit→All four move together, one edge each
(b) not … same direction→Each edge: once each way
(c) at most two mice→Two may meet, three may not
used twice … starting point→Every edge both ways, everyone home
Say: this is the board for n = 5.
Watch one step: the four mice move at the same time.
Ask: how often can one edge be used? Twice, once in each direction.
Say: two mice may share a point. Three may not.
Say: now the goal is a picture. Every edge has two arrows, and every mouse is home.
The boards for n = 1 and n = 2. The colour shows which mouse used the edge.
Do the smallest boards work?
Ask: what would you try first? The smallest board. Follow only the mouse at A, the others copy it around the board.
Say: follow the mouse at A. It goes to B and comes back. The others make the same move, rotated.
Let it run. Ask: is every edge used in both directions at the end?
Say: here two mice share the centre. Rule (c) allows this.
From n − 2 to n, shown for n = 5. The inner board is shaded.
How do we reach every board?
Point at the shaded square: it is the board for n − 2, here 3.
Watch the mice reach the inner corners Y.
Say: we assume that the smaller board is solved. The mice use it and finish at the same corners.
Say: each mouse works only on its own side. It goes along the top, steps down and up at each point, and then walks straight home. No two mice meet on the border.
Say: count the edges. The board has n + 1 lines of n edges across, and the same number down: 2n(n + 1) edges. For n = 5 that is 2 × 5 × 6 = 60, and two directions give 120 uses. All the mice are home, so n = 5 works because 3 works.
Say: the same steps take us from any n − 2 to n. We start at 1 and at 2, so we reach every n. This is proof by induction.
Repeat the idea: small boards first, then build around them.
Next stop: Centroid Size.
Say: morphometrics studies shape with numbers. Biologists mark landmarks where the veins of a wing meet.
New question, insect morphometrics
Say: landmarks are points that every wing of the species has, for example where two veins meet.
Ask: why 28? Eight landmarks, choose two: 8 × 7 divided by 2.
Ask for a guess: where would you put the landmarks to make T large?
A bee wing with eight landmarks.
eight landmarks on the wing→8 points
a circle of radius 1 cm→No point is further than 1 from the centre
the distance … squared→The area of a square on the segment
the sum of the 28 squares→$\binom82=\frac{8\times 7}{2}=28$ segments: $T$ adds their squares
Say: forget the wing for a moment, we only need eight points.
Say: the circle limits how far apart the points can be.
Point at the square: its area is the squared distance.
Watch the 28 segments. Say: T is n times the square of what biologists call centroid size, here with n = 8.
Landmarks spread evenly around the circle.
What do small cases show?
Ask: where do two points go? On opposite sides. The distance is the diameter 2, squared 4.
Say: an equilateral triangle in the circle has side √3, so squared side 3. Check with the cosine rule: 1 + 1 − 2 cos 120° = 3. Three sides give 9.
Say: a square. Each side has squared length 1 + 1 = 2 by Pythagoras, and each diagonal is a diameter with square 4. Four sides and two diagonals: 8 + 8 = 16.
Ask: 4, 9, 16, what comes for eight? This is only a guess, and we still need a proof.
The arrow vi goes from the centre to landmark i. The dot product of (a, b) and (c, d) is ac + bd.
Can we write T with arrows?
Say: put an arrow from the centre to each landmark. The distance is the length of a difference. It expands like (a − b)².
Ask: in how many pairs does landmark 1 appear? Seven. So each squared length is counted seven times.
Say: the total arrow is the sum of the eight arrows. Its square contains the same products, with a plus sign.
Say: look at the last terms of the two lines. One has minus, the other has plus, so they cancel. And 7 + 1 = 8 squared lengths.
Say: this formula has two parts. Ask: which part do we want large, and which part small?
Left: the arrows from the centre. Right: the same arrows, one after the other.
How do we make T large?
Say: these are eight landmarks in any position.
Watch the arrows join tip to tail. The thick arrow is their sum.
Ask: what makes the first number large? All the landmarks on the circle. Eight squared lengths of 1, times 8, is 64.
Ask: what makes the second number small? The arrows cancel, so the chain closes. T = 64 exactly when all the landmarks are on the circle and their centroid is the centre. A regular octagon works, but so do any four diameters, as here.
Repeat the idea: long arrows that cancel.
Next stop: Nine Landmarks.
Say: in the computer, a wing is a photograph made of pixels. Every landmark has whole-number coordinates.
New question, insect morphometrics
Say: pixels are like squares on graph paper.
Say: the centroid is the average position. Ask: when is a third of a sum an integer?
Say: part (a) must work for every position. Part (b) needs only one example.
Nine landmarks on a small photograph.
nine different pixels→9 points on a grid
the centroid of three→Add, then divide by 3
integer coordinates→Both sums are multiples of 3
always→For any 9 points, find such a triangle
Say: each point is a landmark, at whole-number coordinates. We will call a triangle good when its centroid has integer coordinates.
Say: this triangle fails. The sum of x is 7, and 7/3 is not an integer.
Say: this triangle works. The sums are 15 and 9, both multiples of 3.
Ask: what if I move the points? The question says that a good triangle always exists.
Left: the photograph. Right: one box for each pair of remainders.
What matters about a position?
Ask: can we try all the positions? There are too many. We need to keep less information.
Ask: to know if a sum is a multiple of 3, what do we need? Only the remainders 0, 1 or 2.
Watch every landmark go to its box. The column is the remainder of x and the row is the remainder of y.
Say: three landmarks in the same box have equal remainders. 0 + 0 + 0, 1 + 1 + 1 and 2 + 2 + 2 are multiples of 3.
Say: if no box has three, then each box has at most two. Nine landmarks need at least five boxes.
Five occupied boxes. Columns: remainder of x. Rows: remainder of y.
Are five boxes always enough?
Say: we keep five occupied boxes and look for three that work together.
Say: in a full row x gives 0 + 1 + 2 = 3, and y is equal three times. It works.
Ask: if no row is full, how can five boxes be shared? Only 2, 2 and 1.
Say: take the single box. Three lines use one box from each row, and each line has sum 3 in x. In y the sum is 0 + 1 + 2 = 3.
Say: each empty box lies on one line only. Two empty boxes, three lines, so one line survives.
Go back to the photograph: the three landmarks on that line have their centroid on a pixel. Part (a) is proved.
Eight landmarks in four boxes, for example (0,0), (3,3), (1,0), (7,3), (0,4), (6,1), (4,4), (10,1).
Why are eight not enough?
Say: for part (b) we choose the positions, and we choose them badly on purpose.
Ask: which sums of three zeros and ones are multiples of 3? Only 0 and 3, so all three are equal.
Say: the same is true for y.
Say: equal x and equal y means the same box, and each box has only two landmarks. No triangle works.
Repeat the idea: keep only the remainders.
Next stop: Wing Cells.
Say: the wing of a dragonfly is a net of small cells. We can count without measuring.
New question, insect morphometrics
Say: the margin is the border of the wing. A junction is a point where segments meet.
Ask: does the question give the number of cells? No. The answer depends only on k.
Say: it is surprising that the six-sided cells do not matter.
A small wing with 13 cells.
one connected network→Points, segments and cells
three segments … every junction→Each point has 3 ends
five, six or seven sides→Write the number in each cell
k junctions on the margin→Count along the border: k = 6
Say: this is a small example that follows all the rules.
Point at one junction and count the segments: one, two, three.
Count the cells together: 12 with five sides, and 1 with six.
Ask: what does the statement say here? At least 6 + 6 = 12 cells with five sides. We have exactly 12.
V: junctions. E: segments. C: closed cells.
What never changes?
Count together: 24 junctions, 36 segments, 13 cells. 24 − 36 + 13 = 1.
Say: a segment disappears and one cell opens. We lose one segment and one cell.
Watch the numbers: E and C go down together, so the result stays at 1.
Say: no closed cell is left, only a tree. A tree has one more point than segments. This works for every wing.
The same 72, counted in three ways. p, h and s: cells with five, six and seven sides.
How can we count the sides?
Put a finger on each side of one segment. Two marks for each segment.
Now count the ends of the segments. Three at each junction, and two for each segment, so 2E = 3V.
Say: p, h and s are the numbers of cells with five, six and seven sides. The k comes from the outside: k junctions on the margin make k segments, and each has one side outside.
p, h and s: cells with five, six and seven sides.
How do we join the two counts?
Ask: why 6? Because then the six-sided cells will disappear.
Say: we know 3V = 2E, so 6V = 4E. Put it in and tidy up.
Say: if every cell had six sides, the total would be 6C. Each five-sided cell has one side less, and each seven-sided cell has one more.
Say: the last slide gave 5p + 6h + 7s + k = 2E. Move the k to the other side.
Say: 6C and 2E are in both lines, so they disappear. Only p, s and k are left.
Say: p is the smallest when s = 0. That is the equality case, as in our small wing: 12 = 6 + 6.
Repeat the idea: count the same thing in two ways.
Next stop: Bootstrap Samples.
Say: we measured the wings. How much can we trust the average? There is a method for this, called the bootstrap. You do not need to know it: the next slide explains it.
The bootstrap (B. Efron, 1979): new samples are drawn from the data that we already have.
What is the bootstrap?
Say: an entomologist measured one wing from each of five bees. The mean length is 9.6 mm.
Ask: if she caught five other bees, would the mean be 9.6 again? Probably not. We want to know how far it could move, but we cannot catch all the bees.
Say: the idea is to use the five wings that we have as if they were all the bees. Draw one at random, write its length, and put it back. Do this five times.
Say: this new list is called a bootstrap sample. Wing 2 appears twice and wing 3 is missing. Its mean is 47.7 divided by 5, which is 9.54.
Say: the computer repeats this a thousand times. The means pile up around 9.6, and most of them lie between 9.1 and 10.2. This spread tells us how much to trust our 9.6. Now we ask Olympiad questions about these samples.
New question, insect morphometrics and the bootstrap
Say: n bees, n wings, n different numbers. Nothing difficult yet.
Say: this is the bootstrap sample of the last slide, written as a list. Ask: why n to the power n? There are n choices for each of the n entries.
Say: three parts, and each one needs a different skill. Part (a) is about symmetry, part (b) about counting, and part (c) about an inequality.
The example n = 3, with lengths 1, 2 and 3.
n different lengths→n = 3: lengths 1, 2 and 3
a bootstrap sample→3 entries, repeats allowed: 2, 3, 2
nⁿ samples→3 × 3 × 3 = 27 lists
(a) the mean · (b) the kind→Mean 7/3. Same kind: 2 2 3, 2 3 2, 3 2 2
(c) different lengths→2, 3, 2 has two different lengths
Say: we call the lengths 1, 2 and 3.
Watch one sample: we choose 2, then 3, then 2 again. Length 1 is missing.
Say: three choices for each entry. These are all the samples.
Say: for part (a) each sample has a mean, here 7 divided by 3. For part (b) these three samples are one kind: two 2s and one 3.
Say: for part (c) we count the different lengths. 3 samples have one, 18 have two and 6 have three. The total is 57, so D is 57 divided by 27. That is more than 3n/5 = 1.8.
Average of the means = (sum of all the entries) ÷ (n entries in a sample) ÷ (nⁿ samples).
(a) Where is the centre of the means?
Say: each column is one sample, read from the top. Under it is the sum of its three entries.
Watch the samples pile up by their mean. Ask: what do you notice? The pile is the same on both sides of 2. This is only a guess, and it uses the lengths 1, 2, 3. We need a proof for any lengths.
Say: do not add sample by sample. Add place by place. In place 1 we see nine 1s, nine 2s and nine 3s, because the other two places are free: 3 × 3 = 9.
Say: the three places give the same total. The sum of all the entries is 162. Divide by 3 to get means, and by 27 to get their average: 2.
Say: the same count works for any n and any lengths x. Fix one place and one length: the other n − 1 places are free, so n to the power n − 1 samples. The fraction simplifies to the mean of the data.
Stars and bars for n = 3: three stars for the entries and two bars between the three lengths.
(b) How many kinds of sample?
Say: if the order does not matter, a sample is only three numbers: how many 1s, how many 2s, how many 3s. Here 0, 2 and 1.
Say: we draw this. A star for each entry, and a bar each time we move to the next length. No 1s, so we start with a bar. Then two stars, a bar, and one star.
Ask: can every row of three stars and two bars be read as a kind? Yes, and different rows give different kinds. Here are all of them.
Say: a row has five places. Once we choose the three places of the stars, the bars take the rest. 5 choose 3 is 5! over 3! 2!, which is 10. Check: the orders add up to 1 + 3 + 3 + 3 + 6 + 3 + 1 + 3 + 3 + 1 = 27.
Say: for n lengths we need n stars and n − 1 bars, so 2n − 1 places. For n = 5 this gives 9 choose 5 = 126 kinds, out of 3125 samples.
The 27 samples for n = 3. A dot means that the sample contains that length.
(c) Can we count in another way?
Say: read a column from the top. The sample 1, 1, 2 contains the lengths 1 and 2, so it has two dots.
Say: a column gives the number of different lengths in one sample. D is the total divided by 27.
Ask: how many dots are in the first row? 19. The other rows have 19 too, because no length is special.
Say: a sample without length 1 uses only 2 and 3. That is 2 × 2 × 2 = 8, and 27 − 8 = 19.
Say: D is n times the share of one row. If each row fills more than 3/5 of the columns, then D is more than 3n/5.
The example n = 5, with 5⁵ = 3125 samples. M is the number of samples without length 1.
(c) How often is length 1 missing?
Say: length 1 never appears, so each place has four choices.
Say: choose the place for length 1, five ways. The other four places have four choices each. Ask: why is this more than M? Because 5 is more than 4.
Say: choose two places out of five: 5 × 4 divided by 2, ten ways. The other three places have four choices each. This is more than half of M.
Say: these groups do not overlap, and all the samples together are at least as many. So M fits more than two and a half times.
The same three groups, for every n ≥ 2. Here n choose 2 = n(n − 1) ÷ 2.
(c) Does it work for every n?
Say: now we repeat the last picture with n in place of 5.
Ask: what changed from M? One factor n − 1 became n.
Say: n choose 2 is n(n − 1)/2, the number of pairs of places. One factor n − 1 joins the power, and n/2 is left. Compare with the line above: it is half of it.
Say: the three groups do not overlap, so together they are at most all the samples. There may be more samples, with length 1 three times or more. We do not need them.
Say: turn the inequality around.
Say: n rows, each with more than 3/5 of the dots. For fast students: when n is very large, the share is about 63.2%, a number that statisticians know well.
Repeat the idea: resample your own data, then count row by row.
Say: we reached the top. Look back at the route.
Ask: which question did you like the most, and why?
Ask the students to say each idea in their own words.
Say: the four insect questions use the same ideas.
Read the last line together. Give them one minute to choose a question to redo at home.

Irish Mathematical Olympiad 1988-1999: Problems, Hints & Solutions. Compiled and edited by Finbarr Holland.

The Irish Mathematical Olympiads Compendium. Mark Dukes, University College Dublin. The questions follow the 1988 – 2026 edition.
Questions 6 to 9 were written for this class. They are based on known results on distances from a centroid, zero sums of remainders, Euler’s formula and the bootstrap (B. Efron, 1979, Annals of Statistics 7, 1–26).
Show the two books.
Thank the students and take questions.

