← All 70 questions
Question 2·Trinity College·2025·Standard first-round question — the construction is two lines once the pairing is seen; the discrimination is in noticing that n = 1 is genuinely false and that the induction must jump by two, not one
Induction with two base cases and a step of 2: find the range of n by testing the smallest cases, then drive the whole proof with the mirror pairing of six consecutive integers
8–12 minutes at interview pace
Live video, shared whiteboard. Everything under BOARD is written with the pen; everything under SAY is spoken over it, at the same time. Never write a line in silence, and never say a line you have not put on the board.
Show that the set {1,2,3,…,3n} can be split into three disjoint subsets that have the same total sum.
Answer: For every integer n≥2 (and for no other n): each subset must sum to T=n(3n+1)2, and the split is built from the two base cases n=2,3 by the step n→n+2, which adds {3n+1,…,3n+6} as three mirror pairs each summing to 6n+7.

The whiteboard, beat by beat

1 · Orient · beat 1 of 7

Read the quantifier: this is a question about which n, not only about how to split

P(n):{1,2,…,3n}=A⊔B⊔C,∑A=∑B=∑C
no range for n given: test n=1
What you say, out loud

Before I build anything I want to say what kind of statement this is. It is a family of existence claims indexed by n: the set has three n elements, I have three boxes, every element is handed to exactly one box, and the three running totals have to match at the end. So it is a partition question, not a pairing or a counting question, and the word split is doing work: the three subsets have to exhaust the set, not merely be disjoint from each other.

The second thing I notice is that no condition on n is stated at all, so deciding which n the claim can hold for is part of the question. In an interview I read it that way. I am not going to quietly prove the statement for the cases I happen to reach; I will find the smallest n for which it can be true, and I will start by testing n equals one out loud, because that is where a hidden restriction shows up.

Why this beat exists: Trinity's key-points note on this question is about reducing a big problem to small ones; naming the quantifier and testing n = 1 before constructing anything is that move, and it is the difference between a proof and a recipe.
2 · Set up · beat 2 of 7

The target sum T, and the necessary condition that rules n = 1 out

S=1+2+⋯+3n=3n(3n+1)2,T=S3=n(3n+1)2
n even⇒n(3n+1) even,n odd⇒3n+1 even⇒T∈ℤ
n1234S6214578T=S/3271526largest369123n≤Tnoyesyesyes
3n≤T⟺6≤3n+1⟺n≥53⟺n≥2
What you say, out loud

If the three boxes tie, each one holds exactly a third of the total, so the target is T equals n times three n plus one, over two. Notice straight away what is not an obstruction. Divisibility looks worrying, but one of n and three n plus one is always even: if n is even the factor n carries the two, and if n is odd then three n plus one is even, so T is a genuine integer for every n without exception. I computed n from one to twelve: the total S is a multiple of three in all twelve rows, so no congruence condition on n is needed here.

The real obstruction is a different one, and it is a size constraint. The largest element, three n, has to sit inside some box, and no box may exceed T. So I need three n at most T, which after multiplying out is six at most three n plus one, so n at least five thirds, so n at least two.

Look at the first column: at n equals one the target is two, but the set already contains three. That is not a gap in my method, it is a counterexample, and it means the honest theorem starts at n equals two. If I came back with a proof that worked for all n I would have proved something false.

Why this beat exists: The obstruction at n = 1 is not divisibility: the table shows S is a multiple of 3 for every n, so the real reason is 3n greater than T. Separating the two obstructions is the scored move.
3 · Draw · beat 3 of 7

The engine: any six consecutive integers split into three pairs of equal sum

{m+1,…,m+6}⟶{m+1,m+6}, {m+2,m+5}, {m+3,m+4}
(m+1)+(m+6)=(m+2)+(m+5)=(m+3)+(m+4)=2m+7
m=0: {1,6},{2,5},{3,4} each 7;m=6: {7,12},{8,11},{9,10} each 19
one block of six: 1, 2, 3, 4, 5, 61234561 + 6 = 72 + 5 = 73 + 4 = 7mean 3.5general block m+1, ..., m+6each pair sums to 2m + 7 (m = 0 here)one pair to A, one to B, one to C: all three gain 7
The picture is the lemma: six consecutive integers, paired mirror-wise about their own mean, break into three pairs of one common sum, so a block of six can be dealt out one pair per box without disturbing an existing tie. Nothing later in the proof is deeper than this.
What you say, out loud

Here is the one idea the whole proof runs on, and it is the symmetry the question is fishing for. Take any six consecutive integers, written as m plus one through m plus six, and pair them mirror-wise: first with last, second with fifth, third with fourth. Each pair straddles the centre of the block, so each pair has the same sum, two m plus seven.

Read it off the drawing for the block starting at one: the pairs are one with six, two with five, three with four, and all three sum to seven. Now slide the same six-window up to seven through twelve and the arithmetic repeats with a different constant: seven with twelve, eight with eleven, nine with ten, all nineteen. The block does not care where it sits; only its starting position m enters the sum.

So a block of six is a small machine. Hand its three pairs to the three boxes, one apiece, and every box gains exactly the same amount, which means a tie that held before still holds afterwards. Everything from here on is just feeding blocks to that machine, and that is also why the induction has to move in steps of six elements, that is, in steps of two in n.

Why this beat exists: State what the figure proves rather than what it looks like: the mirror pairing is the reason equal sums survive an enlargement of the set.
4 · Compute · beat 4 of 7

The two parity cases, and the step n to n+2 written as a rule

n even: {1,…,3n}=n2 six-blocks
n odd, n≥3: head nine, each 15
{1,5,9},{2,6,7},{3,4,8}; then six-blocks from 10
P(n)⟹P(n+2): add {3n+1,…,3n+6}, pairs {3n+1,3n+6},{3n+2,3n+5},{3n+3,3n+4}
each new pair =6n+7(n=2: 19,n=3: 25,n=4: 31)
the step n = 2 to n = 4: add 7, 8, 9, 10, 11, 12ABC1 + 6 = 72 + 5 = 73 + 4 = 77 + 12 = 198 + 11 = 199 + 10 = 19total 26total 26total 26old pair from n = 2, new pair from m = 6new pair sum: 2m + 7 = 19 = 6n + 7T(4) = 4(13)/2 = 26, one third of S = 78all three totals rise by 19, so the tie survives
One application of the block machine, drawn with the actual numbers: the six new elements 7 to 12 form three pairs of 19, one per box, so the tie at 7 becomes a tie at 26 — which is exactly the target T(4). The same picture with 3n+1 to 3n+6 is the induction step.
What you say, out loud

Two cases, decided by the parity of n, and the parity is forced by the shape of the set. If n is even, then three n is a multiple of six, so the whole set one through three n is exactly n over two consecutive blocks of six. I deal each block one pair to each box, and since the pairs inside a block all tie, the three boxes stay level all the way through.

If n is odd, three n is three more than a multiple of six, so a six-block sweep from one leaves three elements stranded at the end and the whole construction fails by three. The repair is to peel nine elements off the front instead of three: one, five, nine for the first box, two, six, seven for the second, three, four, eight for the third, each summing to fifteen. From ten onwards the remainder is again clean blocks of six, because ten through three n holds three times n minus three elements and n minus three is even.

Equivalently, and this is the form I want to hand in: the induction runs in steps of two. Going from n to n plus two adds exactly the six elements three n plus one through three n plus six, and the mirror pairing of that block, with m equals three n, gives three pairs each summing to six n plus seven. One pair per box, so the three totals, which were equal, all climb by the same amount and remain equal. For n equals two that constant is nineteen, and the drawing shows the resulting split of one through twelve into three boxes of twenty six.

Why this beat exists: The nine-element head is not a trick pulled from a hat: it is the n = 3 base case, and the step of two is precisely what forces two base cases.
5 · Check numerically · beat 5 of 7

Every split the rule produces, with the sums added by machine

n=2:A={1,6},B={2,5},C={3,4},each sum 7=T(2)
n=3:A={1,5,9},B={2,6,7},C={3,4,8},each 15=T(3)
n=4:A={1,6,7,12},B={2,5,8,11},C={3,4,9,10},each 26=T(4)
n=5:A={1,5,9,10,15},B={2,6,7,11,14},C={3,4,8,12,13},each 40=T(5)
n=6:A={1,6,7,12,13,18},B={2,5,8,11,14,17},C={3,4,9,10,15,16},each 57=T(6)
brute force, n=1,…,12: split exists iff n≥2
What you say, out loud

Numbers before theorems, and from a program rather than from mental arithmetic. At n equals two the rule gives one-six, two-five, three-four, each box holding seven, which is the target. At n equals three the head nine gives one-five-nine, two-six-seven, three-four-eight, each fifteen. At n equals four the two blocks stack to twenty six, at n equals five the head plus one block gives forty, at n equals six three blocks give fifty seven.

Three separate things were checked mechanically on every row, not eyeballed: the boxes are pairwise disjoint, their union is exactly one through three n with no element repeated, and all three sums equal n times three n plus one over two. I ran that audit from n equals two all the way to n equals twelve, and I also built each split twice: once by the parity rule and once by iterating the induction step from its base case, and the two routes returned identical boxes.

Then an independent search, which knows nothing about my construction, answered the existence question directly for n from one to twelve: a split exists for every n at least two and does not exist for n equals one. So the range I guessed from the inequality is the range that is actually true, and my rule is not quietly missing cases in between.

Why this beat exists: Name which check does which job: the construction proves sufficiency, the search confirms that n = 1 is the only exception in the tested range, and the double route catches a mis-stated step rule.
6 · Justify · beat 6 of 7

The induction stated properly: two bases, a step of two, and why a step of one cannot work

Bases. P(2): {1,6},{2,5},{3,4} all 7;P(3): {1,5,9},{2,6,7},{3,4,8} all 15
Step. P(n)⇒P(n+2): box i receives {3n+1+i, 3n+6−i}, i=0,1,2,each pair 6n+7
sums go T→T+(6n+7)=n(3n+1)2+6n+7=(n+2)(3n+7)2=T(n+2)✓
even n≥2 from P(2), odd n≥3 from P(3)⟹P(n), n≥2
step 1: T(n+1)−T(n)=3n+2 per box
only {3n+1,3n+2,3n+3} arrive
{3n+2} sole payer: two unpaid (0 ways, n≤8)
two base cases, one step of twoeven chain from n = 2, odd chain from n = 3+2+2+2+22463571basebasen = 1: T = 2, but the element 3 will not fiteach arrow: add 3n+1, ..., 3n+6, one pair each
The step advances n by two, so it preserves parity and one base case can never reach the other chain: n = 2 seeds the even n, n = 3 seeds the odd n, and the two chains together are exactly n at least 2. The crossed-out node is the only n the arithmetic already ruled out.
What you say, out loud

Now the proof as an induction, with its structure spelled out rather than implied. Base one: n equals two, the split one-six, two-five, three-four, three boxes of seven. Base two: n equals three, the split one-five-nine, two-six-seven, three-four-eight, three boxes of fifteen. Both are on the board and both were checked by addition, not by eye.

Step: assume a level split of one through three n for some n at least two, and look at one through three n plus six. The six newcomers are three n plus one through three n plus six; paired mirror-wise they give three pairs each summing to six n plus seven, and one pair goes to each box. So the three totals, equal by hypothesis, each gain six n plus seven and stay equal. And that increment is exactly the target at n plus two minus the target at n, which I have just verified algebraically on the board. That is the whole induction.

Two base cases are not fussiness, they are forced by the step size: advancing by two preserves parity, so the n equals two base only ever reaches even n and the n equals three base only ever reaches odd n. With one base case I would have proved half the theorem and written down more than I had earned.

And why not a step of one, which is what everyone tries first? From n to n plus one the target rises by three n plus two per box, but only three elements arrive: three n plus one, three n plus two, three n plus three. The only subset of those three that sums to three n plus two is the singleton middle one, so at most one box can be paid correctly and the other two are left with nothing legal. I had the computer enumerate every way of dealing those three elements to three boxes for n from one to eight: zero succeed. The step of two is not a preference, it is the smallest thing that can work, and six elements is exactly one block of the pairing.

Why this beat exists: This is the actual answer to the question as printed: the hint page never states the induction as a rule, and the impossibility of a step of one is the trap the question is built around.
7 · Conclude and generalise · beat 7 of 7

What was proved, the single exception, and how far the pairing travels

 P(n)⟺n≥2 T=n(3n+1)2
|A|=|B|=|C|=n(checked n=2,…,12)
k boxes, {1,…,kn}: mirror pairing of 2k
kpair sumT=n(kn+1)2∈ℤ⟺failures22m+52|nn=1,3,5 (n≤5)32m+7∀nn=1 (n≤12)42m+92|nn=1,3,5,7,9 (n≤9)52m+11∀nn=1 (n≤11)
What you say, out loud

So the statement I can hand back is sharper than the one on the screen: for every integer n at least two, the set one through three n splits into three disjoint parts of equal sum, namely the quantity n times three n plus one, all over two, in each part, and n equals one is the only exception, because its target sum two cannot even hold its own largest element. The range is part of handing back an answer, so I fix it out loud before writing the proof.

The construction also gives something for free. Each box receives exactly one pair from every block, so it finishes with exactly n elements: equal sums and equal sizes at once, and the whole thing is a linear-time recipe, not an existence argument. If the examiner wants the parts non-empty, or of equal cardinality, or an explicit algorithm, I already have all three.

And the pairing travels. For k boxes of one through k n, pair the 2k consecutive integers mirror-wise; for k equals three that is the two m plus seven we used. Then induct in steps of k. I ran the existence question for k equals two, three, four and five. For odd k the only failure is n equals one, exactly as here, because one of n and k n plus one is even. For even k there is a real congruence obstruction: the target, that is the quantity n times k n plus one all over two, stops being an integer when n is odd, and indeed every odd n fails. That is where a condition on n legitimately comes from, and it is absent from this question precisely because three is odd.

Why this beat exists: Closing move: state the range, claim the strengthening, and locate exactly where a congruence condition on n would enter — which also disposes of the standard misreading of this question.

Where the interviewer pushes next

“Why two base cases? Standard induction only needs one.”
What you say, out loud

Because my step is not the usual one. I proved that P at n implies P at n plus 2 rather than P at n plus 1 and a step of two cannot change parity, so the chain starting at n equals two only ever visits even n and the chain starting at n equals three only ever visits odd n. Neither reaches the other.

Formally this is strong induction on the ordered set of n at least two, or equivalently two inductions, one on the even subsequence n equals 2r and one on the odd subsequence n equals 2r plus one, each with a step of one in r. Two bases is the price of a step of two.

And the step of two is not a choice I made for elegance: with only three new elements arriving at a step of one, each box would need an increment of three n plus two and the elements are three n plus one, three n plus two, three n plus three. Only the middle one is payable, so two boxes go unpaid. I enumerated all deals for n up to eight and none of them works.

P(n)⇒P(n+2):n=2r chain from P(2),n=2r+1 chain from P(3)
step 1: needed increment 3n+2, available {3n+1,3n+2,3n+3} ⟹ unpayable
“Can the three subsets be made equal in size as well as in sum?”
What you say, out loud

Yes, and the construction gives it without extra work. Every box receives exactly one pair from each block of six, and the head case for odd n gives one triple to each box, so each box ends with n elements. Since there are three n elements in total, that is the only possible equal size anyway.

I checked it by machine for n from two to twelve: the three boxes have cardinalities n, n, n in every row, alongside the equal sums. For instance at n equals six the boxes are one-six-seven-twelve-thirteen-eighteen, two-five-eight-eleven-fourteen-seventeen, three-four-nine-ten-fifteen-sixteen: six elements each, fifty seven each.

What the question does not require is that the boxes look alike in any stronger sense: the subsets are not translates of each other, and for odd n the head triple pattern is genuinely different in shape from the pair pattern. If asked for equal sums and equal sizes and equal spacing, I would have to say the last of those is not free.

|A|=|B|=|C|=n,3⋅n=3n elements
n=6: A={1,6,7,12,13,18},six elements,57=T(6)
“What if the question asked for four subsets of {1, ..., 4n}?”
What you say, out loud

Then the parity of the number of boxes starts to matter, and that is the real lesson of the generalisation. Pair eight consecutive integers mirror-wise: one with eight, two with seven, three with six, four with five, four pairs, each summing to two m plus nine. So the same engine runs with a step of four in n, and a step of four means one base case per reachable residue class mod four; since the odd classes turn out to be impossible, the bases I would need are n equals two and n equals four, not the full set two, three, four, five.

But before any of that, the target has to exist. For k boxes the target is the quantity n times k n plus one, all over two, and with k equals four that is n times four n plus one, all over two; four n plus one is always odd, so the product is even only when n is. Half the values of n are ruled out by divisibility, which never happens for k equals three.

I ran the existence search for k equals four over n from one to nine: exactly the odd n fail, one, three, five, seven and nine, and every even n admits a split. For k equals five, odd again, only n equals one fails over n from one to eleven. So the rule is: odd k, one exception at n equals one; even k, all odd n lost to divisibility.

k=4: {m+1,…,m+8}→{m+1,m+8},{m+2,m+7},{m+3,m+6},{m+4,m+5},each 2m+9
T=n(4n+1)2∈ℤ⟺n even;measured failures for k=4: n=1,3,5,7,9
odd k: 3n+1 even when n odd⇒T∈ℤ always

Traps on this question

  • Claiming the split needs n congruent to 0 or 1 mod 3 because the total must be divisible by 3. The total is 3n(3n+1)/2 and one of n, 3n+1 is always even, so S is a multiple of 3 for every n (checked n = 1 to 12). Divisibility is not the obstruction in this question; that trap belongs to the even-k generalisation.
  • Reporting n = 1 as settled by the split {1}, {2}, {3}. That is a partition of the set but the sums are 1, 2, 3. The failure is quantitative: T = 2 while 3 is an element, so no box can hold it, and the theorem must start at n = 2.
  • Trying to induct by one. From n to n+1 only {3n+1, 3n+2, 3n+3} arrive while every box must gain exactly 3n+2, and the only subset of the three with that sum is {3n+2} itself, so two boxes cannot be paid (enumerated: 0 valid deals for n = 1 to 8).
  • Running the six-block sweep when n is odd: 3n is 3 mod 6, so blocks of six leave three elements stranded and the construction silently fails. Peel the nine-element head {1,5,9}, {2,6,7}, {3,4,8} (sums 15 each) — that is the n = 3 base case — and everything from 10 on tiles by sixes.
  • Proving only P(2), or only P(3), and announcing the theorem for all n at least 2. A step of two preserves parity, so one base case covers one chain only; and writing three disjoint subsets without checking that their union is all of {1, ..., 3n} loses the partition, since three disjoint proper subsets can leave elements unassigned.

What gets written on the assessor’s form

  • The candidate tested n = 1 before constructing anything and reported it as a genuinely false case with the right reason (3 greater than T = 2), rather than as a missing base case.
  • Derived the target T = n(3n+1)/2 and separated the two candidate obstructions: integrality of T, which never bites here, and the size of the largest element, which gives n at least 2.
  • Found the mirror pairing of six consecutive integers as the engine of the proof and stated the induction explicitly, with two base cases and a step of two.
  • Justified the step size rather than assuming it, by showing a step of one cannot pay all three boxes.
  • Audited the construction numerically for n = 2 to 12 (disjointness, coverage of the whole set, equal sums, equal sizes) and reported the range of n for which the statement is actually true.