← All lessons · Brazil’s Olympiad routes

Your goal: Choose a smallest, largest or best possible object and turn that choice into a proof. Learn when an extreme forces equality, prevents a configuration, or gives a sharp bound.

Preparation context: An editorial lesson for students developing OBMEP Nível 2 problem-solving skills, with longer proof extensions for OBM preparation. It is original practice using standard mathematical ideas, not an official paper or a claim that every problem has tested contest difficulty.

Before you start: Order numbers, calculate an average, use odd and even counts, and read “every” and “there exists”. The short checks below include a repair route. Useful links: exact arithmetic, parity, writing a proof and pigeonhole.

Study in three sessions. Session 1: the starting checks, method and Examples 1–2. Session 2: Example 3 and Problems 1–6. Session 3: Problems 7–9 and one proof extension. Allow about 25–40 minutes per session, and more time for an independent written proof.

Three small checks before choosing an extreme

  1. What is the smallest number in the list 7, −2, 4, −2? Does it occur only once?
  2. Two numbers are each at most 8, and their average is 8. Must both numbers be 8?
  3. Can five people be partitioned into pairs, with everyone used exactly once?
Answers and a repair route

1. The smallest value is −2, and it occurs twice. Choosing an extreme does not imply uniqueness. 2. Yes: the sum must be 16; if either number were smaller than 8 while the other stayed at most 8, the sum would be smaller than 16. 3. No: each pair uses two people, so any complete collection of pairs uses an even number. If ordering or averages felt uncertain, revisit exact arithmetic before Example 1. If the third check was difficult, revisit parity before the pairing problems. These checks do not store a score.

What the extremal principle actually says

A nonempty finite collection of numbers has a smallest value and a largest value. The extremal principle uses that simple fact strategically: choose an object for which a suitable quantity is smallest or largest, and investigate what this choice forbids. The object might be a number, a pair of points, or a whole arrangement.

Choose the objects.

State which objects are allowed and why at least one exists.

Choose the measurement.

For example: value, distance, number of steps, or the largest pair sum.

Use the extreme.

Explain why a smaller, larger or better allowed object would contradict your choice.

For example, after choosing a largest number M, every other number is at most M. That comparison is useful; merely writing “let M be the maximum” is not yet a proof. After choosing a closest pair, every other pair has distance at least theirs. After choosing a best arrangement, any legal change producing a better arrangement contradicts optimality.

Check existence before making the choice. The reciprocals 1, 12\frac12, 13\frac13, … have no smallest member: after 1n\frac{1}{n} comes the smaller 1n+1\frac{1}{n+1}. A lower bound of 0 does not help, because 0 is not in the collection. In this lesson every claimed extremum comes from an explicitly nonempty finite collection.

Two common conclusions need different endings. To prove impossibility, show that the assumed configuration would force an object beyond the chosen extreme. To find an optimum, prove a bound for every allowed arrangement and then construct an arrangement attaining it. A plausible best example supplies only the second half.

Worked example 1 · Let the largest value do the work

Eight real numbers are written around a circle. Each number equals the average of its two immediate neighbours. Prove that all eight numbers are equal.

An arbitrary position gives an equation but no useful direction of comparison. Choose a position carrying a largest value M instead. Call its two neighbours u and v. They satisfy u≤Mu\le M and v≤Mv\le M, and their average equals M.

If u were smaller than M, then u+vu+v would be smaller than 2M2M, because v is at most M. Its average could not be M. Therefore u=Mu=M. The same reasoning gives v=Mv=M. The largest value forces its two neighbours to equal it.

Now use a neighbour that we have just shown equals M. Its other neighbour must also equal M. Continue around the finite circle. Every position is reached, so all eight values equal M. Notice that we did not assume the maximum was unique; the conclusion says exactly the opposite.

Your turn 1 · The same idea on a board

A real number is placed in each cell of a 3 by 4 board. In every cell, its value is the average of the values in all cells sharing a side with it. Corners have two such neighbours, other boundary cells have three, and interior cells have four. Prove that all twelve values are equal.

Hint 1

Choose a cell with a largest value. All of its side-neighbours are at most that value.

Hint 2

An average of numbers at most M can equal M only when every averaged number equals M. How can you move from one cell to any other?

Complete solution

Choose a cell with maximum value M. If any of its side-neighbours were below M, the sum of all its neighbour values would be less than their number multiplied by M, since none exceeds M. Their average would then be below M, a contradiction. Thus all those neighbours equal M. Repeat at each newly reached cell. Any cell can be reached from the original one by moving horizontally and vertically within the rectangle. Along such a path the same argument forces each next cell to equal M. Hence the entire board is constant. A constant board satisfies the condition, so the conclusion is possible.

Worked example 2 · Choose a globally closest pair

There are finitely many points in the plane, at least two, and all pairwise distances are different. Each point draws an arrow to its nearest other point. Prove that some two points point to each other.

Following arrows at random may create a complicated search. Instead, list the distances between all pairs. The list is finite and nonempty, so choose a pair A,B with the smallest distance in the whole list.

Every other point is farther from A than B is: a shorter distance would contradict our choice, and an equal distance is excluded by the assumption. Thus A points to B. The same argument from B shows that B points to A. This is the required mutual pair.

The uniqueness assumption has a purpose. If three points form an equilateral triangle, every point has a tie for nearest neighbour. Choosing arrows around that triangle in one direction creates a three-point cycle with no mutual pair. Do not silently break ties in whichever way makes a proof convenient.

Your turn 2 · Rule out a longer cycle

Under the same distinct-distance assumptions, prove that the arrows cannot form a directed cycle through three or more distinct points before returning to the start. A directed cycle follows every arrow in its forward direction.

Hint 1

Assume such a cycle exists and choose its longest edge. Look at the point from which that arrow starts.

Hint 2

That point also touches the preceding edge of the cycle. Which of the two neighbours would be nearer?

Complete solution

Assume a directed cycle of length at least three exists. Choose a longest edge A→BA\to B on that cycle. Let C be the point immediately before A, so C→AC\to A is another edge of the cycle and C differs from B. All pairwise distances are distinct, so CA is strictly shorter than AB. But A has chosen B as its nearest other point, even though C is closer. This contradiction excludes every cycle of length three or more. A two-point cycle is not excluded: its incoming and outgoing connections use the same unordered pair, not two distinct edges.

Worked example 3 · A bound before a construction

Six weights are 2, 3, 9, 10, 13 and 16. Divide them into three pairs. The load of a pair is the sum of its weights. What is the smallest possible value of the heaviest pair’s load?

The total of all pair loads stays fixed, but an average bound is too weak to locate the best arrangement. Look at the four largest weights: 9, 10, 13 and 16. There are only three pairs. If each pair contained at most one of those four weights, only three could be placed. Therefore some pair contains two of them.

The smallest sum of two of those four weights is 9+10=199+10=19. Every pairing consequently has a pair with load at least 19. This is a lower bound valid for every arrangement, obtained by choosing the largest group that cannot stay separated.

Now attain the bound: pair 2 with 16, 3 with 13, and 9 with 10. The loads are 18, 16 and 19, so the heaviest is exactly 19. The minimum possible heaviest load is 19. The argument combines an extremal choice with pigeonhole reasoning; these methods can work together.

Your turn 3 · Which lower bound matters now?

Repeat the task for weights 2, 5, 6, 9, 12 and 17. Find the smallest possible load of the heaviest pair and prove it.

Hint 1

The weight 17 must be paired with something. What is its smallest possible partner?

Hint 2

Try pairing the smallest remaining weight with the largest remaining weight. Check all three sums.

Complete solution

In every pairing, 17 has a partner of weight at least 2. Thus the heaviest pair has load at least 19. The pairs (2,17), (5,12) and (6,9) have loads 19,17,15, attaining that bound. Hence 19 is the minimum. Unlike the worked example, a single largest weight already supplies the sharp lower bound here; one should choose the comparison that fits the data.

Three bridges to independent problems

A smallest member can expose a hidden arithmetic structure. If a set must contain a smaller positive difference whenever two members differ, repeatedly subtract its smallest member. A remainder below that minimum would be forbidden. Problem 4 turns this observation into a complete list.

A local maximum need not be the greatest value everywhere. On a numbered board, moving only to a larger neighbouring value cannot revisit a cell, so the walk must stop in a finite board. But it may stop at a value below the global maximum. Here the value increases; it is not an invariant. Problem 6 asks you to distinguish those ideas.

For pairing points on a line, an odd-count cut gives a useful lower bound. If a cut leaves an odd number of points on one side, not all of them can be paired within that side: at least one pair crosses the cut. A pair’s distance is the sum of the consecutive gaps it spans. This lets you add lower bounds from disjoint gaps in Problem 8 without counting the same part of a distance twice.

Common traps

  • Do not choose a smallest object from a collection that has no smallest member.
  • A largest value can occur more than once. Explain when equality is forced and when ties are excluded.
  • A best-looking construction does not rule out a better one. Prove the bound first or afterwards.
  • Check that a proposed replacement still obeys every condition of the problem.
  • “Larger than its neighbours” does not mean “largest everywhere”.
  • If the smallest object alone says too little, the two smallest objects or the largest few may be the useful choice.

Practise the choice, then write the reason

A six-question session draws from the nine problems below. Two consecutive correct answers without using a hint raise the target level; a mistake offers an easier unused question where one is available. A hinted answer keeps the target level steady. These levels guide practice; they are not exam scores or proof of mastery.

The checker checks your selected conclusion, not a written proof. Before choosing, name the extreme you used and write the key comparison on paper. The interactive session offers the first hint; the complete set below has two hints and the full reasoning for every problem. Saving is optional and off by default.

Interactive practice loads here. You can also use the complete question set below.

All nine problems, hints and complete reasoning

Problems 1–2 check the foundations. Problems 3–6 develop and test the method in different settings. Problems 7–9 are stretch work: hide the choices and write an argument before revealing them. Familiar strategies recur for learning, but these are independently written practice tasks, not reproduced official questions.

Foundation

1. Which collection is guaranteed to have a smallest member?

Optional answer choices
  1. All positive real numbers
  2. The reciprocals of all positive integers
  3. A nonempty finite set of positive real numbers
  4. All integers
Hint 1

A smallest member must actually belong to the collection. A lower bound alone is not enough.

Hint 2

A nonempty finite list can be put in increasing order. Think about why the other collections keep offering a smaller member.

Answer and complete solution

A nonempty finite set of positive real numbers

A nonempty finite set can be listed in increasing order; its first member is a smallest one. There is no smallest positive real number, because half of any proposed one is smaller and still positive. Among reciprocals of positive integers, 1n+1\frac{1}{n+1} is smaller than 1n\frac{1}{n}. Among all integers, n−1n-1 is smaller than n. Only the finite-set choice guarantees an attained minimum.

Watch out: Being bounded below does not mean that a smallest member exists: the reciprocals approach 0 but never include it.

Foundation

2. S is a nonempty finite set of positive integers. Whenever n belongs to S and n is greater than 1, the number n2\frac n2 also belongs to S. Which conclusion is forced?

Optional answer choices
  1. 1 belongs to S
  2. 2 belongs to S
  3. Every member of S is even
  4. S contains at least three numbers
Hint 1

Choose the smallest member of S, rather than starting with an arbitrary member.

Hint 2

If that smallest member were greater than 1, what would the rule put in S?

Answer and complete solution

1 belongs to S

Let m be the smallest member; it exists because S is nonempty and finite. If m were greater than 1, the rule would put m2\frac m2 in S. This would be a positive number smaller than m, contradicting its choice. Therefore m=1m=1. The set containing only 1 satisfies the condition, so 2, evenness of every member and a size of at least three are not forced.

Watch out: The rule itself guarantees that the halved value is a member when it applies. Do not assume in advance that every starting integer could occur in such a set.

Core

3. Six real numbers are written around a circle. Each number is at most the average of its two neighbours. Their total is 36. What is the largest number?

Optional answer choices
  1. 4
  2. 5
  3. 6
  4. 9
Hint 1

Choose a position with the largest value M. Its neighbours are both at most M.

Hint 2

At that position, M is at most the neighbour average, while the average is at most M. What forces equality?

Answer and complete solution

6

Choose a largest value M, with neighbours u and v. We have u≤Mu\le M and v≤Mv\le M, so u+v2≤M\frac{u+v}{2}\le M. The condition also gives M≤u+v2M\le\frac{u+v}{2}. Thus equality holds throughout. If either neighbour were smaller than M, their average would be smaller than M, so both neighbours equal M. Apply the same argument successively around the circle: every value is M. Since the total is 36, 6M=366M=36 and M=6M=6. Six copies of 6 satisfy every condition.

Watch out: A largest value need not occur at only one position. Here the argument proves that it occurs at every position.

Core

4. A finite set S of positive integers has the following property: if a and b are distinct members, their positive difference also belongs to S. The smallest member is 6 and the largest is 24. How many members does S have?

Optional answer choices
  1. 3
  2. 4
  3. 5
  4. It cannot be determined
Hint 1

Repeatedly subtract the smallest member from a larger member. Every positive difference stays in S.

Hint 2

Can a member leave a remainder of 1, 2, 3, 4 or 5 after repeated subtraction of 6? Then start subtracting from 24.

Answer and complete solution

4

If a member were not divisible by 6, repeatedly subtracting 6 would eventually produce a member between 1 and 5. This contradicts the smallest member being 6. Thus every member is a multiple of 6. Since no member exceeds 24, only 6, 12, 18 and 24 are possible. All four are forced: 24−6=1824-6=18, 18−6=1218-6=12, and 6 is given. The set {6,12,18,24} satisfies the difference condition, so the answer is exactly 4.

Watch out: Showing that members must come from a short list is only half the argument. Show that every entry on that list is present.

Core

5. Five distinct points lie in the plane, with all ten pairwise distances different. Each point draws one arrow to its nearest other point. A mutual pair consists of two points whose arrows point to each other. Which numbers of mutual pairs are possible?

Optional answer choices
  1. Only 1
  2. Only 2
  3. Either 1 or 2
  4. 0, 1 or 2
Hint 1

The globally closest pair guarantees at least one mutual pair. Can two mutual pairs share a point?

Hint 2

For constructions, place the points on a line. Try coordinates 0,1,3,7,15, and then 0,1,10,12,30.

Answer and complete solution

Either 1 or 2

A globally closest pair points to each other, so there is at least one mutual pair. Two mutual pairs cannot share a point because each point has only one outgoing arrow. Five points therefore allow at most two disjoint mutual pairs. Both bounds occur. For points on a line at 0,1,3,7,15, the only mutual pair is 0 with 1: the other arrows are 3→13\to1, 7→37\to3 and 15→715\to7. Their ten distances are 1,2,3,4,6,7,8,12,14,15, all different. For coordinates 0,1,10,12,30, the mutual pairs are 0 with 1 and 10 with 12; the point 30 points to 12. The distances are 1,2,9,10,11,12,18,20,29,30, again all different. Hence exactly 1 and 2 are the possible counts.

Watch out: An upper bound is not automatically attainable. The coordinate constructions check existence and the no-ties condition.

Core

6. The integers 1 through 9 occupy the cells of a 3 by 3 board, one number per cell. Start at any cell. Whenever possible, move to a side-adjacent cell with a larger number; stop only when no such move is available. Which statement is always true?

Optional answer choices
  1. The walk must finish at 9
  2. The walk stops at a cell with no larger side-neighbour, after at most eight moves
  3. The walk always uses eight moves
  4. The walk cannot stop at a corner
Hint 1

A strictly increasing walk cannot revisit a cell. Count the available cells.

Hint 2

A value can be larger than all its immediate neighbours without being the largest on the entire board.

Answer and complete solution

The walk stops at a cell with no larger side-neighbour, after at most eight moves

Each move strictly increases the number, so no cell can be visited twice. There are nine cells, allowing at most eight moves after the starting cell. The rule says to stop precisely when no larger side-neighbour exists. This does not force a finish at 9. Consider rows (8,1,2), (3,4,5), (6,7,9). Starting at the top-left 8 gives no legal move: its side-neighbours are 1 and 3. The walk stops immediately at a corner and does not reach 9. This single example also disproves the other proposed guarantees.

A local maximum need not be the global maximum812345679
Start at the dark cell 8. Its only side-neighbours are 1 and 3, so the walk stops immediately. The larger value 9 is elsewhere on the board.

Watch out: A local maximum is greatest among its neighbours; a global maximum is greatest on the whole board. Do not confuse them.

Stretch

7. Choose three distinct positive integers with total 20. Form their three pair sums. What is the greatest possible value of the smallest pair sum?

Optional answer choices
  1. 10
  2. 11
  3. 12
  4. 13
Hint 1

Call the numbers a<b<ca<b<c. Which pair sum is smallest, and how can you write it using c and the total?

Hint 2

If c were at most 7, the two smaller distinct integers could be at most 6 and 5. Can their total reach 20?

Answer and complete solution

12

Write the numbers in order as a<b<ca<b<c. The smallest pair sum is a+b=20−ca+b=20-c, so making that sum large means making the largest entry c small. If c≤7c\le7, then b≤6b\le6 and a≤5a\le5, giving a+b+c≤18a+b+c\le18, contrary to the total 20. Hence c≥8c\ge8 and a+b≤12a+b\le12. The triple 5,7,8 has total 20 and pair sums 12,13,15. Its smallest pair sum is 12, so the bound is attained.

Watch out: There are two extremes here: the smallest of the pair sums, and the largest entry c. Rewrite the objective before choosing what to control.

Stretch

8. Six points lie on a number line at 0, 3, 5, 9, 10 and 16. Partition them into three pairs. The cost of a pair is the distance between its points: the larger coordinate minus the smaller. What is the least possible total cost?

Optional answer choices
  1. 11
  2. 12
  3. 13
  4. 16
Hint 1

A cut with an odd number of points to its left must be crossed by at least one pair. Otherwise all those points would be paired among themselves.

Hint 2

Use cuts in the gaps from 0 to 3, from 5 to 9, and from 10 to 16. Then give a pairing attaining the resulting bound.

Answer and complete solution

13

Place a cut inside the gap from 0 to 3. One point is to its left, so at least one pair must cross that whole gap, contributing at least 3 to the total cost. A cut between 5 and 9 has three points to its left, and a cut between 10 and 16 has five; each odd count again forces a crossing pair. These gaps have lengths 4 and 6. A pair distance is the sum of the consecutive gaps it spans. When all pair distances are added, each crossed gap is counted once for each crossing pair, so the three forced gaps give a lower bound of 3+4+6=133+4+6=13. Pair 0 with 3, 5 with 9, and 10 with 16. The costs are 3,4,6, with total 13. Therefore 13 is the minimum.

Three gaps that every complete pairing must crossgap 31 leftgap 43 leftgap 65 left03591016
The highlighted gaps are disjoint. An odd number of points to the left of each cut forces at least one pair across it.

Watch out: The same pair may cross several forced gaps. That causes no overcounting because those gaps are disjoint parts of its distance.

Stretch

9. S is a nonempty finite set of real numbers. Whenever two distinct members a and b are chosen, their average a+b2\frac{a+b}{2} also belongs to S. Which sizes of S are possible?

Optional answer choices
  1. Only 1
  2. 1 or 2
  3. Every positive integer size
  4. Only even sizes
Hint 1

If there are at least two members, choose the two smallest ones, not the smallest and largest.

Hint 2

Where does the average of the two smallest distinct members lie?

Answer and complete solution

Only 1

Suppose S has at least two members. Let a be its smallest and b its second-smallest, so a<ba<b. Their average satisfies a<a+b2<ba<\frac{a+b}{2}<b. The stated property would put this average in S, strictly between the two smallest members, which is impossible. Thus S has only one member. A singleton, for example {0}, does satisfy the condition because there is no pair of distinct members to test. Hence size 1 is both necessary and possible.

Watch out: Finiteness supplies a second-smallest member. The set of all rational numbers is closed under averages but has no first or second-smallest member.

Proof workshop · Move from a case to a theorem

The following extensions are self-reviewed, not automatically marked. Write a complete solution before opening the proof. “If and only if” asks for two directions: show that the condition is necessary, then show that it is sufficient. A numerical example cannot replace either direction.

Proof A · Classify every difference-closed set

A nonempty finite set S of positive integers contains the positive difference of any two distinct members. Prove that S consists of all positive multiples d, 2d, …, kd for some positive integers d and k. Conversely, prove that every such set satisfies the difference condition.

Hint 1

Take d to be the smallest member. Repeated subtraction of d cannot produce a positive member below d.

Hint 2

Use the largest member to show that none of the intermediate positive multiples of d can be missing.

Complete proof and rubric

Choose the smallest member d. Take any member a. If a>da>d, subtract d; the result remains in S and is positive. Continue while the current value exceeds d. The values decrease by a positive integer, so this process eventually reaches a value r with 1≤r≤d1\le r\le d. Since r belongs to S and d is its minimum, r=dr=d. We have therefore subtracted d a whole number of times to reach d, showing that a is a positive integer multiple of d.

Now let the largest member be kd. Repeated subtraction gives (k−1)d(k-1)d, (k−2)d(k-2)d, …, d, so every positive multiple of d up to kd belongs to S. No larger number belongs to S by maximality, and no nonmultiple belongs by the first paragraph. Thus S is exactly {d,2d,…,kd}. When k=1k=1 the subtraction list is empty and the conclusion still holds.

Conversely, take that set and two distinct members id and jd, with i>ji>j. Their positive difference is (i−j)d(i-j)d, where 1≤i−j≤k−11\le i-j\le k-1. It is one of the listed members. For a singleton there are no two distinct members to choose, so the condition holds as well. This proves both directions.

Check your proof: Did you justify that a minimum and maximum exist? Did you explain why repeated subtraction stays in S and stops? Did you exclude nonmultiples, force every intermediate multiple, and verify the converse including a singleton?

Proof B · Why pairing the extremes works

There are 2n labelled entries carrying positive real numbers, where n is a positive integer; equal values are allowed. Pair the entries so as to minimise the largest pair sum. Prove that the following rule always achieves a minimum: pair a smallest entry with a largest entry, remove those two, and repeat.

Hint 1

Choose an arrangement with the smallest possible largest pair sum. If its smallest and largest entries are not paired together, look at the two pairs containing them.

Hint 2

Write those pairs as (a,x) and (b,y), where a is a smallest remaining value and b a largest. Replace them with (a,b) and (x,y). Compare both new sums with b+yb+y.

Complete proof and rubric

There are only finitely many ways to pair finitely many labelled entries, and at least one pairing exists. Therefore a pairing with a smallest possible largest sum exists. Choose one and call that largest sum T.

Let a be a smallest entry and b a largest. If they are paired together already, retain that pair. Otherwise they lie in two distinct pairs (a,x) and (b,y). Replace those pairs with (a,b) and (x,y). The entries have not changed and each is still used once, so this replacement is legal. Since a≤ya\le y and x≤bx\le b, we have a+b≤b+ya+b\le b+y and x+y≤b+yx+y\le b+y. The old sum b+yb+y was at most T. Thus both new pair sums are at most T, and all unchanged pairs also remain at most T.

We have obtained a pairing no worse than the optimum, with the smallest and largest entries paired together. Keep that pair fixed. Apply the same exchange to a smallest and largest entry among those still unpaired, changing only their two current pairs. Their values obey the same comparisons, so the global bound T is never increased. Repeat until every pair is fixed; after n steps this is the pairing produced by the stated rule. Its largest sum is at most T. Since T was already the minimum over all pairings, the rule attains that minimum.

If only two entries remain, they are already paired and no exchange is needed. Equal values cause no problem because the proof uses non-strict comparisons and the entries are labelled. This theorem explains the construction used in Example 3, while that example’s lower bound gives its numerical optimum.

Check your proof: Did you justify an optimal pairing exists? Did you state the two old and two new pairs? Did you compare both new sums with a known old sum? Did you explain why earlier fixed pairs stay fixed and why the process finishes?

Explain the choice before moving on

Exit check: In one example, complete these sentences without looking back: “I chose … because the collection was … . If … happened, it would contradict … .” Then explain why the construction in a minimum problem does not prove minimality on its own.

If choosing the object was difficult, return to the maximum-average example and write every comparison explicitly. If a bound was clear but the final answer was not, check whether you supplied a construction. If the nine objective problems felt comfortable, write one proof extension without hints and revisit it on another day. A solution read today is not yet a proof you can reproduce independently.

Continue with pigeonhole arguments, invariants and colouring, or the rearrangement inequality. The Brazil guide explains the country’s competition pathways.

Prepared for IMOolympiad.com. Original exposition and practice using standard extremal arguments; no official problem reproduction or organiser endorsement is claimed. Report an unclear step or correction.