← All 70 questions
Question 24·Churchill College·2025·Standard first-round problem - short once the shift is seen, so it discriminates on the habits around the answer: whether the invariant is proved before it is used, whether the second question is answered with a proof at all, whether the size is computed rather than estimated, and whether you can say what breaks if the rule is perturbed by one.
Invariant first, then arithmetic: read a+b+ab as (a+1)(b+1)−1, prove that ∏x∈B(x+1) survives an arbitrary single step, and let the two ends of the process give N=2027!−1 - then answer the second half, order-independence, as a corollary of the same invariant instead of a hope.
6–10 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.
On a whiteboard, the numbers 1,2,3,…,2026 are written. In each step, you are allowed to erase any two numbers a and b, and replace them with the single number a+b+ab. After 2025 steps, only one number remains. What is this number? Does the choice of order matter?
Answer: 2027!−1 exactly - a 5825-digit integer - and the order of the steps never matters. The quantity ∏x∈B(x+1) over the numbers on the board is unchanged by every step, the initial board gives 2⋅3⋯2027=2027!, and the terminal board {N} gives N+1.

The whiteboard, beat by beat

1 · Orient · beat 1 of 7

A process with two deliverables, and the bookkeeping that makes it legal

Board B0={1,2,3,…,2026}, so |B0|=2026 numbers
One step: erase a,b, write a+b+ab, count −2+1=−1
2+ numbers on board ⇒ step legal
Two questions: number? order?
First contact: {1,2}→5, {1,2,3}→23, {1,2,3,4}→119
What you say, out loud

Before any algebra I want to know what kind of object this is. It is a process: the board changes from step to step, and the question asks about the final position. So the first thing to check is that the process ends in the shape the question claims.

Each step deletes two numbers and writes one, so the count on the board drops by exactly one. Starting from two thousand two hundred and twenty-six numbers, after two thousand twenty-five steps there is exactly one left, and while two or more numbers are present a move is always available. Nothing stalls, and there is no way to play the game wrongly by running out of pairs.

I also want to say out loud that this question has two halves. The number is the half everyone answers; the second half, whether the order matters, is the one that decides whether I have understood the rule or just got lucky with the order I happened to pick.

So I start with the smallest boards and write down what actually happens. Two numbers give five. Three give twenty-three. Four give one hundred and nineteen. Those are three facts and I do not yet know what they mean.

Why this beat exists: Orient = count bookkeeping plus three small-board facts. The termination argument comes first, because the whole later answer leans on the final position containing exactly one number.
2 · Set up the language · beat 2 of 7

Naming the operation, and the two invariants that fail before the one that works

Write a⊕︎b=a+b+ab
⊕︎ is commutative on sight: a+b+ab=b+a+ba
Sum not conserved: a+b becomes a+b+ab by ab
Product not conserved: {1,2}, product 2, ends 5
a+b+ab is one term short of ab+a+b+1=(a+1)(b+1)
What you say, out loud

I will give the rule a name, because the question is really asking whether this rule generates well behaved arithmetic. Write a circle-plus b for a plus b plus ab; then the survivor is what you get by circle-plus ing all the numbers on the board in some order.

Symmetry is immediate. The expression a plus b plus ab does not change when you swap the two letters, so within a single pair the order of picking is irrelevant before I have done any work at all.

Associativity is a different matter, and it is precisely what the second half of the question is asking. Three letters can be combined in two essentially different ways, and I have no right whatever to assume the answers agree.

I tried the two obvious conserved quantities and both fail. The sum of the board jumps by a times b at every step, and the product jumps too: the board containing one and two has product two and ends at five. So whatever is invariant is not the first thing I would have guessed.

What catches my eye is that the rule is one term short of factoring. A plus b plus ab plus one is exactly a plus one times b plus one. That missing one is where the whole problem lives.

Why this beat exists: Set up = name the operation, separate commutativity (free) from associativity (the real question), and eliminate the two naive invariants out loud so that the substitution which follows is motivated rather than announced.
3 · First decisive move · beat 3 of 7

Shift by one and the rule becomes multiplication - and the invariant is proved before it is used

Lift every number: ϕ(x)=x+1
ϕ(a⊕︎b)=a+b+ab+1=(a+1)(b+1)=ϕ(a)ϕ(b)
Invariant: P(B)=∏x∈B(x+1)
Step: delete ϕ(a), ϕ(b), insert product: P fixed
Order-independence: any path, same P
two orders on the board 1, 2, 3, 4raw value, and the lift x + 1 under it1lift 22lift 33lift 44lift 55lift 619lift 20119lift 1201lift 24lift 52lift 33lift 49lift 1029lift 30119lift 120left tree: merge(1,2) = 5, merge(3,4) = 19, merge(5,19) = 119right tree: merge(1,4) = 9, merge(9,2) = 29, merge(29,3) = 119lifted: 2*3=6, 4*5=20, 6*20=120 | 2*5=10, 10*3=30, 30*4=120 = 5!
Two complete merge orders on the board {1, 2, 3, 4}, drawn as trees. The left tree pairs small with small: merge(1,2) = 5, merge(3,4) = 19, merge(5,19) = 119. The right tree is a chain: merge(1,4) = 9, merge(9,2) = 29, merge(29,3) = 119. Both roots carry the same raw value, 119. Under the lift x -> x + 1 every node carries the product of its two children's lifts, and the labels read 2*3 = 6 and 4*5 = 20 with 6*20 = 120 on the left, and 2*5 = 10, then 10*3 = 30, then 30*4 = 120 on the right. Both trees end at 120 = 5!, and 120 - 1 = 119 in both. The invariant is visible mid-play too, not just at the roots: the left board after two merges is {5, 19}, whose lifts multiply to 6*20 = 120, and the right board after one merge is {9, 2, 3}, whose lifts give 10*3*4 = 120.
What you say, out loud

Here is the move. Replace every number on the board by that number plus one, and watch what the rule does in the new scale. In the lifted picture the step stops being a sum with a correction term and becomes plain multiplication.

Concretely: the lift of the new number is a plus b plus ab plus one, which factors as a plus one times b plus one, which is the product of the two lifts. That is an identity and not a guess, and I will check it on numbers before I trust it.

The consequence is the invariant. Multiply together the lifts of all the numbers currently on the board. A step removes two of those factors and inserts exactly their product, so the total product is literally the same integer before and after the step.

I want to be careful about the order in which I say this, because it is the part people skip. The invariant has to be proved for an arbitrary single step with no assumption about which pair was chosen. Only then does it apply to every path through the process. Prove it first, and the order question is settled before I have computed anything.

And notice what that already buys me. If the product is fixed, and the last position contains a single number, then that number is forced. The survivor is not something I have to find by playing the game.

Why this beat exists: First decisive move = the change of variables, with well-definedness stated as the thing proved first: the invariant survives an arbitrary step, which is what makes it a statement about all orders and not about the one I like.
4 · Execute · beat 4 of 7

Read the answer off the two ends of the process

P(B0)=(1+1)(2+1)⋯(2026+1)=2⋅3⋯2027=2027!
The terminal board is {N}, and P({N})=N+1
N+1=2027!⟹N=2027!−1
General: any B, end ∏x∈B(x+1)−1
Small boards: 2⋅3⋅4−1=23, 120−1=119
What you say, out loud

Now the computation is one line, and I will say it slowly because it is the reason the invariant was worth having. The lifts of the numbers one through two thousand two hundred and twenty-six are two through two thousand two hundred and twenty-seven, so the invariant starts at two times three times everything up to two thousand two hundred and twenty-seven. That is two thousand two hundred and twenty-seven factorial.

At the end there is a single number N on the board, and the product of the lifts of the numbers on the board is then just N plus one. Set the two equal and N is that factorial minus one.

The same sentence answers the general version. Start with any finite board and you finish at one less than the product of every entry incremented by one. The specific numbers one to two thousand two hundred and twenty-six are only there to make that product a factorial.

I check it against the small boards from the start. Three numbers give two times three times four minus one, which is twenty-three, and four give one hundred and twenty minus one, which is one hundred and nineteen. Both match the trees I drew, so the formula is not running ahead of the arithmetic.

Why this beat exists: Execute = the invariant evaluated at the two ends of the process. The general form is stated because it is the version that is actually true; the factorial is a coincidence of this particular starting board.
5 · Pin the exact value · beat 5 of 7

The exact integer, its computed size, and the order question as a claim with a proof

N=2027!−1 exact, 5825 digits
105824≤N<105825, integer comparisons
v5(2027!)=405+81+16+3=505, so N ends in 505 nines
N≡−1(mod9): digit sum ≡8; and N is odd
Leading digits 53724013050572904604…
Claim: the order never matters
Proof: P(B) fixed, last board {N}
N+1=P(B0) has exactly one solution
What you say, out loud

The honest form of the answer is two thousand two hundred and twenty-seven factorial minus one. It is an exact integer, and I would resist dressing it up as a decimal approximation. The number of digits is five thousand eight hundred and twenty-five, which I get by actually counting the digits of the integer, and that is the only sense in which it can be written down at all.

Two size facts I can check rather than estimate. The power of five dividing the factorial is four hundred and five plus eighty-one plus sixteen plus three, which is five hundred and five, so the factorial ends in five hundred and five zeros and the answer ends in five hundred and five nines. And it sits between ten to the five thousand eight hundred and twenty-four and ten to the five thousand eight hundred and twenty-five, verified by exact integer comparison, not by reading a logarithm off a table.

Now the second half of the question, as a claim with a proof rather than an aside. The order of merging never matters. The proof is the invariant: it is unchanged by an arbitrary step, so it is unchanged along any sequence of steps of any length. The last position holds one number N, and the equation N plus one equals the invariant has exactly one solution. So all orders end at the same number, and there is no clever order.

The strength of that argument is worth naming. It does not merely say that completed games agree. It says the product is the same at every intermediate position, so two players who have merged completely different pairs still carry the same invariant on their boards.

Why this beat exists: Pin the value = the exact integer, two computed size facts, and the order-independence claim proved from the invariant instead of asserted from examples.
6 · Test the claim · beat 6 of 7

A second route that never mentions the shift: expand, enumerate every order, stress the rule

Route 2, no ϕ: (a⊕︎b)⊕︎c=a+b+c+ab+bc+ca+abc, symmetric in a,b,c
a⊕︎(b⊕︎c)=(a⊕︎b)⊕︎c,a⊕︎b=b⊕︎a
Left-nested induction, raw: Lk=(k+1)!−1⇒Lk+1=(k+2)!−1
Lk+1=Lk+(k+1)+Lk(k+1)=((k+1)!−1)+(k+1)+((k+1)!−1)(k+1)=(k+1)!(k+2)−1=(k+2)!−1
Exhaustive: {1,…,7}, 56700 orders, 40319=8!−1
n=8,9: state expansion covers 1587600, 57153600 orders
Stress: a+b+ab+1 on {1,2,3} gives 26,27,28
every merge order, n = 1..7vertical axis: log10 of the survivor10^010^110^210^310^410^51n=11 orders5n=21 orders23n=33 orders119n=418 orders719n=5180 orders5039n=62700 orders40319n=756700 ordersdistinct survivors found: 1 at every nn=8: 1587600 orders, n=9: 57153600 - one value
Route 2's exhaustive check, plotted exactly. Each point is the single survivor found when every merge order of the board {1, ..., n} is run as integers, for n = 1 to 7: 1, 5, 23, 119, 719, 5039 and 40319. The vertical coordinate is proportional to log10 of the survivor, with the baseline y = 226 at log10 = 0 and 34 pixels per decade, so equal vertical spacing means a factor of ten and the gridlines mark 10^0 to 10^5. The number of orders enumerated at each n is printed under the axis: 1, 1, 3, 18, 180, 2700 and 56700. The height of each point is exactly 34 * log10 of the value printed above it, the sequence is strictly increasing, and every point sits at (n+1)! - 1.
What you say, out loud

I do not want the answer to rest on a single argument, so here is a second route that shares no step with the first. It never introduces the shift by one and it never claims an invariant. Take three letters and expand both bracketings of the rule. Each one comes out as a plus b plus c, plus ab plus bc plus ca, plus abc, which is completely symmetric in the three letters.

Symmetry in three letters, together with commutativity, is what makes a reduction of any size order independent, and the induction can be run explicitly. The last step merges two blocks; each block is canonical by the induction hypothesis; and moving one letter at a time from one block to the other leaves the value unchanged because of the three-letter identity. So all orders agree, and I never had to know what they agree on.

To get the value along one order I nest to the left and induct in the raw language. If the running value after k numbers is k plus one factorial minus one, then merging in the next number gives that value, plus k plus one, plus their product - and the minus one cancels against the k plus one to leave k plus one factorial times k plus two, minus one. That is k plus two factorial minus one, with no substitution used anywhere.

Then I check it by brute force, because the claim is small enough to be checked. For the board one through seven there are fifty-six thousand seven hundred distinct merge orders, the product of the binomial coefficients k choose two, and every one of them was run as exact integers. They produce exactly one distinct survivor, forty thousand three hundred and nineteen, which is eight factorial minus one. For n equals eight and nine the order counts run to over fifty-seven million, and those were covered by expanding the set of reachable board states, which is exhaustive over orders and far smaller.

Finally the stress test, which is the part I would want to hear if I were marking. Perturb the rule by one, so a pair merges to a plus b plus ab plus one, and run the three orders on the board one, two, three. They give twenty-eight, twenty-six and twenty-seven. Order matters for that rule, which tells me my argument was really using the factorisation and not just the symmetry of the expression.

Why this beat exists: Test the claim = an independent route (three-letter expansion, written-out induction, raw left-nested induction), the exhaustive enumeration of every order up to n = 7 with the state-set version for n = 8, 9, and a perturbation that fails so the proof is shown to be tight.
7 · Conclude and generalise · beat 7 of 7

One line of answer, the structure behind it, and where the trick stops working

Answer: N=2027!−1, order irrelevant
x↦x+1: isomorphism ⊕︎↔×
a+b+kab lifts by kx+1: k(a⊕︎kb)+1=(ka+1)(kb+1)
General end: any B, ∏x∈B(x+1)−1
Order matters: ab, |a−b|, a+b+ab+1
What you say, out loud

So the answer is two thousand two hundred and twenty-seven factorial minus one, and the order of the steps is irrelevant. Both halves are proved, and by two arguments that do not share a step: one finds a quantity that never changes, the other expands the rule on three letters and enumerates orders.

What the problem is really about is a change of scale. The board with this new operation is ordinary multiplication of the incremented numbers in disguise, and the shift by one is the dictionary between them. Once you have the dictionary the whole problem is one line, and the order question stops being a question.

It generalises further than the question asks. Any rule of the form a plus b plus k ab behaves the same way after scaling by k, so this is a one-parameter family and not an accident. What does not work is a rule that is not a transported multiplication: exponentiation, absolute difference, and even the one-term perturbation of this very rule all give genuinely order dependent answers.

The lesson I would take into an interview is the order of business. Find the invariant, prove it survives an arbitrary single step, and only then compute. If you compute first you have an answer; if you prove the invariant first you have an answer and the reason it is the only one.

The shift by one is the dictionary, so under it zero becomes the identity and minus one is the absorbing element.

Any starting board finishes at one less than the product of its incremented entries, and the answer reads as a factorial only because the board runs from one to n.

Why this beat exists: Conclude = the two-part answer, the structural reading as a transported multiplication, the one-parameter family, and the honest boundary of the method.

Where the interviewer pushes next

“Does it matter that the board is exactly 1,2,…,2026?”
What you say, out loud

Not for the mechanism. The invariant is the product of every entry incremented by one, so any starting board at all ends at that product minus one, and I ran a few: two, five and nine end at one hundred and seventy-nine, four copies of one end at fifteen, and ten through fifty in steps of ten end at fourteen million nine hundred and seventy-three thousand six hundred and fifty.

What the specific board buys is only the closed form. Because the entries are consecutive from one, the lifts are two through n plus one and their product is a factorial. Change the entries and the answer is still exact, just not a factorial.

It also means duplicates are harmless. The invariant never assumed distinctness, and the board of four ones is the sharpest test: the merge order is forced by symmetry there and it still lands on fifteen.

Any board works: {2,5,9}→3⋅6⋅10−1=179
{1,1,1,1}→24−1=15, and {3,3,3}→43−1=63
{10,20,30,40,50}→11⋅21⋅31⋅41⋅51−1=14973650
Factorial needs consecutive lifts 2,…,n+1
“What if the rule were a+b+2ab, or a+b+ab+1?”
What you say, out loud

The first is the same problem one notch over. If the rule is a plus b plus k ab, then scaling each number by k and adding one turns the step into multiplication again, so the survivor is read off from the product of kx plus one over the board. For k equals two on the board one, two, three that product is three times five times seven, one hundred and five, so twice the answer plus one is one hundred and five and the answer is fifty-two. Merging it out by hand gives seven and then fifty-two, which agrees.

The second is genuinely different, and it is the case worth knowing. Adding one more to the rule destroys the factorisation, and with it the order-independence: the three merge orders on one, two, three give twenty-eight, twenty-six and twenty-seven.

That asymmetry is the reason I trust the answer. A rule that looks just as tidy can fail the second half completely, so the content is not tidiness, it is the existence of a change of scale in which the rule is multiplication.

a+b+kab lifts by kx+1: k(a+b+kab)+1=(ka+1)(kb+1)
k=2 on {1,2,3}: 2N+1=3⋅5⋅7=105, so N=52
Check raw: 1⊕︎22=7, then 7⊕︎23=7+3+42=52
a+b+ab+1 no lift: {1,2,3} gives 28,26,27
“You proved more than order-independence. What exactly is stronger?”
What you say, out loud

The invariant is the stronger statement, and the gap between them is real. Order-independence only compares finished games. The invariant says the product is already the same at every intermediate position, so two people who have merged entirely different pairs still hold the same number, and it says the answer is forced one step at a time rather than only at the end.

There are two structural decorations worth noticing. Minus one is absorbing, because a circle-plus minus one is a minus one minus a, which is minus one - so a board that ever contains minus one finishes at minus one. And zero is the identity, so slipping extra zeros onto the board changes nothing about the answer.

You can also weaken the invariant and keep the same proof: any injective function of the product, or the product modulo any fixed number, is conserved by the same one-line step. Those give the same conclusion but lose the information that lets you read the answer off at the end.

Invariance ⇒ order-independence
Disjoint play, same P(B)
−1 absorbing: a⊕︎(−1)=a−1−a=−1
0 identity: a⊕︎0=a
New clothes: ∑x∈Blog⁡(x+1), P(B)modm

Traps on this question

  • Playing one convenient order, getting a number, and announcing the answer. The number is right but the argument has not touched the second half of the question, and that half is not a formality: the perturbed rule a + b + ab + 1 gives 28, 26 and 27 on the board {1,2,3} under the three orders, so 'I picked an order' genuinely can be wrong.
  • Hunting for the invariant among the two obvious quantities. The sum of the board is not preserved - it gains ab at every step - and neither is the product: {1,2} has product 2 and ends at 5. The conserved object is the product of the incremented numbers, and it only appears once you notice that a + b + ab is exactly one term short of (a+1)(b+1).
  • Claiming the operation is associative because it looks symmetric. Symmetry in a and b is commutativity, which costs nothing; associativity is the statement that (a⊕b)⊕c and a⊕(b⊕c) agree, and it needs the expansion to a+b+c+ab+bc+ca+abc. Skipping it also leaves you with no answer to the generalisation, since a+b+ab+1 is just as symmetric and is not associative.
  • Reporting n! - 1, or 2026! - 1, instead of (n+1)! - 1. The lifts of 1 through 2026 are 2 through 2027, so the product is 2027!. Two numbers decide it on the spot: {1,2} ends at 5 = 3! - 1, not at 2! - 1 = 1.
  • Answering with a decimal approximation or an order of magnitude. The exact value is 2027! - 1; something like 5.37 times ten to the five thousand eight hundred and twenty-four is not the number on the board, and the digit count 5825 is obtained by counting the digits of the exact integer, not by reading a logarithm off a table. Equally, do not try to write the integer out.

What gets written on the assessor’s form

  • Checked that the process ends in the shape the question claims - the count drops by one per step, so 2026 numbers become one after 2025 steps - before computing anything.
  • Spotted that a + b + ab is one term short of (a+1)(b+1), named the invariant P(B) = product of (x+1) over the board, and verified the lift on explicit pairs before using it.
  • Proved the invariant for an arbitrary single step with no assumption about which pair was chosen, so order-independence came out as a corollary, and said which half of the question that answers.
  • Read the answer off the two ends of the process - P(B_0) = 2027! and P({N}) = N+1 give N = 2027! - 1 exactly - and pinned its size with computed facts: 5825 digits and 505 trailing nines.
  • Produced a genuinely independent second route with no shift (the symmetric three-letter expansion, the raw left-nested induction, and all 56700 orders on {1..7}), and stressed it by perturbing the rule to a+b+ab+1, where order does matter.