← All 70 questions
Question 49·Emmanuel College·year not stated·Standard first-round question with a deliberate wording fork — reachable by every candidate, discriminating in how far the state argument is taken
State probabilities for a stopping rule: the levels a strictly increasing random walk can hit, and the distribution of the total at the first crossing of 10
10–14 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.
A deck of cards contains numbers 1 to 10 repeating infinitely. You draw cards one by one and keep a running total of their values. You are forced to stop drawing the exact moment your total score is greater than or equal to 10. What is the mathematically most probable final score you stop at?
Answer: The most probable final score is 10, with Pr⁡(Sτ=10)=1191010=0.2357947691; the law is strictly decreasing on 10,…,19, down to Pr⁡(Sτ=19)=1181010=0.0214358881.

The whiteboard, beat by beat

1 · Orient · beat 1 of 9

Name the process, and say out loud which deck you mean

S0=0,Sn=X1+⋯+Xn,τ=min⁡{n:Sn≥10},Pr⁡(Xn=i)=110 (i=1,…,10)
Target: law s↦Pr⁡(Sτ=s), its maximiser
Reading A: independent cards, Pr⁡(X=i)=110, unlimited supply
B (cycle 1,2,…,10,1,2,…): totals 1,3,6,10
B: stop value 10, prob 1
What you say, out loud

Before I compute anything, let me name the object. The running total S sub n is a sum of one-card increments, and tau is the first n at which it reaches or passes 10. The question asks for the law of S at tau, the value where the walk is absorbed, and then for the point where that law is largest.

So the target is a function of s and I want its maximiser. I will not guess the shape from the wording of the question.

There is a real fork in the phrase 'numbers 1 to 10 repeating infinitely', and I would rather put it on the board than choose it silently. Reading A, which is the one I solve, is that each card is drawn independently and uniformly from 1 to 10; an unlimited supply, so the same value can come straight back.

Reading B is that the deck is a fixed cycle 1, 2, 3 up to 10 and then starts again. Then the running total is 1, then 3, then 6, then 10, so the stopping value is 10 with probability one: a deterministic one-line answer with no distribution to maximise. I will come back to it if that is the reading you want.

Why this beat exists: Declaring the modelling choice is the first scored move; on a wording that admits two readings, saying which one you take and what the other costs is control, not hedging.
2 · Set up · beat 2 of 9

One state quantity, and the only way a stop can happen

ut=Pr⁡(total lands exactly on t),u0=1
ut=110∑i=110ut−i(1≤t≤10),ut=0 for t<0
Pr⁡(Sτ=s)=110∑t=max⁡(0,s−10)9ut,10≤s≤19
What you say, out loud

The state I care about is not the number of cards but the level. Let u sub t be the probability that the running total ever lands exactly on t. The walk starts at nought, so u sub nought is 1; that is the only certain number in this problem.

To land on t, the last step must be some card i and the level before it must be exactly t minus i. That gives u sub t as one tenth of the sum of the ten earlier u's, taking u to be 0 for negative levels, which is why the window is short near the start.

Now the stopping value. The last card is the one that crosses the line, so just before it the total is some t at most 9, and s is t plus that card. For a fixed s, exactly one card does it for each admissible t, so the probability is one tenth times the sum of u sub t over t from max(0, s minus 10) up to 9.

Two facts sit inside that formula, and I want them on the board rather than buried: increments are strictly positive so a level can be hit at most once, which is what makes 'ever lands on' a well-defined event; and the sum stops at 9 because at 10 or above the game has already ended.

Why this beat exists: Deriving the convolution from 'look at the last step' beats quoting a renewal theorem. The truncation at t = 9 is where most candidates slip.
3 · Draw · beat 3 of 9

Ten doors lead to 10; exactly one leads to 19

Levels 0,…,9: still drawing; 10,…,19: absorbing
10 routes into 10: from t=0,1,…,9
1 route into 19: 9 then 10
Pr⁡(Sτ=10)=110∑t=09ut,Pr⁡(Sτ=19)=110u9
still drawingstoppedthreshold 10u0 = 1each bar from u2 onward is 1.1 times its left neighbourfinal 10final 190591019bar height = probability of ever landing exactly on that totalgrey lines: the ten routes into 10; amber: the only route into 19
Every stopping value is one card from a reachable total at most 9. Counting those routes is the whole asymmetry: ten different pre-stop totals can land on 10, but only total 9 with card 10 can land on 19 — so the law cannot be uniform and its mode must sit at the near end.
What you say, out loud

Let me put the picture up, because the picture decides the shape of the answer. Totals below the threshold are states I can stand on; totals 10 to 19 are absorbing; the walk has already stopped by the time it is there.

Every stopping value is exactly one card away from a standing state. To finish on 10 I can come from any of the ten totals 0 through 9, using cards 10 down to 1; ten contributions. To finish on 19 there is a single route: stand on 9 and pull the 10. That asymmetry, ten doors against one, is precisely why the answer is not uniform.

So the two ends of the range are the sum of all ten state probabilities divided by ten, against u sub 9 divided by ten. The drawing is not decoration; it is the formula, and it already tells me the mode is at the left end.

Why this beat exists: Count the routes before computing. The decreasing number of routes is the decreasing law, and stating that out loud is what the examiners are listening for.
4 · Compute · beat 4 of 9

The 1.1 shortcut, and the ten numbers it gives

Consecutive differ by one term
ut−ut−1=110ut−1
ut=1110ut−1(2≤t≤10)
t0123456789ut1.1.11.121.1331.14641.161051.1771561.19487171.214358881
u10=1.1910=1191010=0.2357947691=Pr⁡(Sτ=10)
s1011121314Pr⁡(Sτ=s).235795.135795.125795.114795.102695s1516171819Pr⁡(Sτ=s).089385.074744.058639.040923.021436
Pr⁡(Sτ=s)−Pr⁡(Sτ=s+1)=us−1010>0 — the first gap is 110u0=0.1 exactly.
What you say, out loud

While the window is still short, two consecutive equations share every term but one, so subtracting gives u sub t minus u sub t minus 1 equals one tenth of u sub t minus 1. Each hitting probability is therefore exactly 1.1 times the previous one from u sub 2 up through u sub 10, and the very first step is the exception, since u sub 1 is one tenth of u sub nought.

That is the top row written out: 1, then 0.1, 0.11, 0.121, multiplying by 1.1 all the way to u sub 9 equals 0.214358881.

Level 10 is the one that matters. U sub 10 is 1.1 to the ninth over ten, which is 11 to the ninth over 10 to the tenth: 0.2357947691. And stopping at 10 is the same event as ever hitting 10, so that single number is also the probability the question asks me to maximise.

Feeding the state probabilities through the stopping formula gives the second table: every one of the ten values, from 0.235795 at 10 down to 0.021436 at 19.

And the differences are not accidental: each step down is exactly one tenth of a hitting probability, so strictly positive every time. The very first gap, from 10 to 11, is exactly one tenth because it throws away u sub nought. So the most probable final score is 10.

Why this beat exists: Derive the geometric ratio, do not assert it, and say where it is valid — up to t = 10 only. Beat 9 and the traps both come back to that boundary.
5 · Check numerically · beat 5 of 9

Simulate it, then grade the fit with z-scores rather than adjectives

numpy PCG64, seed 49, N=106 games: empirical .23620,.13529,.12578,.11456,.10256,.08950,.07512,.05827,.04120,.02151
z: +0.95,−1.48,−0.04,−0.73,−0.43,+0.40,+1.43,−1.57,+1.41,+0.53
max⁡|z|=1.57; chi-square 9.75, 9 df, p=.37
Seed N=107: inside 2 except s=16
s=16: .075062 vs .074744, z=+3.83, chi-square 19.54, p=.021
past the 5% point
Retest seed 2026, N=108: max⁡|z|=2.42
cell s=16: z=+1.27, chi-square 10.72, p=.30
python seed 2026, N=106: 3 cells past 2
max⁡|z|=2.66, chi-square 20.13, p=.017
gap = 0.1z=-1.7z=0.0z=-0.3z=-0.9z=-0.2z=-0.9z=+3.8z=+0.9z=+0.8z=+0.81011121314151617181900.10.21/4final score; bars = exact probabilityz from seed 49, N = 10^7 games; no bar reaches the quarter line
Exact probabilities of the ten stopping values, with the z-score of each simulated cell above its bar. The law is strictly decreasing, so the mode is the left end; the biggest cell is still under one quarter, and one cell of the ten-million-game run sits 3.8 standard errors out.
What you say, out loud

Numbers that tidy deserve to be doubted, so let me simulate. The generator, the seed and the sample size are on the board so the run is reproducible: a million games, recording the total at which each one stops.

I am not going to claim agreement as a feeling. Each cell gets a z-score, that is, empirical minus theory over its own standard error, which for the biggest cell is about 4.2 times ten to the minus four at a million games. All ten land inside 1.6 standard errors, and the chi-square across the ten is 9.75 on nine degrees of freedom. That is what a clean fit looks like.

At ten million games on the same seed the standard errors shrink by a factor of the square root of ten and one cell fails: 16 comes out 3.83 standard errors high, 0.075062 against 0.074744, and the chi-square of 19.54 carries a p-value of 0.021; that is past the five percent point. I state that instead of rounding it away. A single cell that far out costs roughly one run in seven hundred and seventy, so either that run is unlucky or my table is wrong, and the two need separating.

So I ran retests rather than arguments. A hundred million games on a fresh seed has its worst cell at 2.42 standard errors out, brings 16 back to plus 1.27, and gives a chi-square of 10.72; that is p equals 0.30, an utterly ordinary fit. A completely separate implementation, drawing one card at a time in plain Python, reproduces the table as well, with small-sample scatter of its own: three of its ten cells sit past two standard errors, which is a run worth about one in a hundred and ten, and that is precisely why small runs are not the evidence. Two exact algebraic routes and Wald's equation will agree in the rationals, so a simulation can corroborate that table but cannot overturn it.

Why this beat exists: Compute z before drawing a conclusion, and say the one cell that failed out loud. Reporting an outlier and then testing it is worth more than ten tidy cells.
6 · Justify · beat 6 of 9

Exact rational bookkeeping, and a proof that the mode is 10

One common denominator:
s10111213141010Pr⁡(Sτ=s)23579476911357947691125794769111479476911026947691s15161718191010Pr⁡(Sτ=s)893847691747437691586386691409230591214358881
∑s=1019Pr⁡(Sτ=s)=10101010=1
exact rationals, not decimals
Pr⁡(Sτ=s)−Pr⁡(Sτ=s+1)=us−1010>0(s=10,…,18)
Unique mode: 10
far end Pr⁡(Sτ=19)=u910=1181010=.0214358881
ratio of ends: 119118=11 exactly
Pr⁡(Sτ=10)=.2357947691<14
119=2357947691<25⋅108
top three: .4973843073<12
What you say, out loud

Two things to defend before I believe my own table. First the reconciliation: all ten probabilities are integers over the same denominator, ten to the tenth, so the total is a single integer sum rather than a column of roundings.

Those ten integers add to exactly ten to the tenth. I did that addition in the rationals, so the law is properly normalised, and every decimal I wrote in the previous beat is a terminating exact value rather than an approximation being passed off as one.

Second the claim I actually need. The window for s plus one is the window for s with its oldest term removed, so the difference between adjacent stopping probabilities is one tenth of a hitting probability, and hitting probabilities are strictly positive. That proves the law decreases; it is not something I read off a table.

The mode is a corollary: 10, uniquely. The same identity gives the other end of the range for free: the probability of stopping at 19 is u sub 9 over ten, which is 11 to the eighth over 10 to the tenth, 0.0214358881; the two ends differ by a factor of exactly eleven.

And one guard-rail before anyone says it: 0.23579 is below a quarter, because 11 to the ninth is 2357947691 against 2500000000, and even the top three values together stop short of a half. So most probable here means roughly a one-in-four chance.

Why this beat exists: Two obligations: make the total reconcile exactly as rationals, and prove the maximiser instead of observing it. Both are cheap and both are marked.
7 · Cross-check · beat 7 of 9

A linear system in the deficit, then Wald's equation

States = deficits: d=10−S, d∈{1,…,10}, start d=10
hd=110(∑j=1d−1hj+𝟏{d≤20−s}),Pr⁡(Sτ=s)=h10
Solved once per s: h10=.2357947691,.1357947691,…,.0214358881
forward on S: same ten numbers
E[Sτ]=112E[τ]=112⋅119109=12.9687123005,E[τ]=∑t=09ut=2.357947691
What you say, out loud

That was one route. Let me build a second one that shares nothing with it, which is also the Markov way the question points. Take as your state not the total but the deficit, how far the total still is from 10. While the game is live the deficit runs from 10 down to 1, and the start is deficit 10.

From a deficit d a card of d or more ends the game, and a card below d just moves you to deficit d minus c. Writing h sub d for the chance of finishing at a chosen s gives ten linear equations per s; the indicator appears because the finishing card only exists while d is at most 20 minus s.

Solving that system over the rationals, once for each final value, returns exactly the same ten numbers to the last digit. And a third setup, propagating the distribution of the total card by card and collecting everything that crosses, returns them again. Three independent constructions, one table.

For the mean there is a fourth opinion that never uses the table. Tau is a stopping time for independent increments, so Wald's equation says the expected final total is the expected card, eleven halves, times the expected number of draws. That expected number is the sum of the state probabilities, 2.357947691, which is 1.1 to the ninth. The product, 12.9687123005, matches the exact sum over the table digit for digit.

Why this beat exists: An independent second route must fail differently from the first: different states, different algebra. Agreement across three of them is what makes the fourth, the simulation, a check rather than a crutch.
8 · Conclude and generalise · beat 8 of 9

Answer, move the threshold, and find where the shortcut dies

 most probable final score =10,Pr⁡(Sτ=10)=1191010=0.2357947691 
Threshold T, same cards:
T112050mode112050Pr⁡(mode).15937.18287.18181
renewal shape: Pr⁡(Sτ=T+j)→211⋅10−j10
tail .18182,.16364,.14545,…,.01818
Where the shortcut dies: u11=.15937424601, while 1110u10=.25937424601.
ut→1/E[X]=211=.181818… with u20=.182873, u30=.181411, u40=.181744.
What you say, out loud

So the answer in one line: the most probable final score is 10, with probability 11 to the ninth over 10 to the tenth, 0.2357947691.

The threshold was never the special ingredient. Recomputing with the same ten cards and a general threshold T, the mode is T every time: 11, 20, 50; the probability at the mode falls from 0.23579 to about 0.1818 and then stops moving.

That limit has a shape, not just a value. For a far threshold every reachable level has probability about one over the mean card, 2 elevenths, so the chance of finishing j past the threshold is 2 elevenths times the fraction of cards that overshoot by j: a straight line down from 0.18182 to 0.01818. My threshold-50 table lies on that line to four decimal places, and its mode probability, 0.1818128, is 2 over 11 to four decimal places too.

Now the boundary, because that is the part worth saying unprompted. The clean ratio 1.1 is valid only up to level 10. The true u sub 11 is 0.15937424601, not 0.25937424601; the arithmetic that gave the ratio needs the two windows to differ by one term, and past the tenth level they differ by two.

Beyond the wall the sequence does not blow up, it converges: the elementary renewal theorem puts the far-field hitting probability at one over the mean card, 2 elevenths, and my computed values close in on it with a damped wiggle: above at 20, below at 30, and still fractionally below at 40. The geometric growth was a boundary effect near the threshold, and that is exactly the sentence I would want on the board at the end.

Why this beat exists: Answer, generalise, then name the exact level at which the neat argument fails. Locating the failure is the discrimination, not the formula.
9 · Only if invited · beat 9 of 9

The generating function, and why 2/11 appears twice

U(z)=∑t≥0utzt=11−110(z+z2+⋯+z10)=10(1−z)10−11z+z11
At z=1: denominator, derivative, second derivative
−11+11z10, 110z9 take 0,0,110: a double zero
U(z)∼2/111−z
nine other roots: moduli 1.218112 to 1.338591
all outside the unit circle
their r−t tails: the wiggle
Pr⁡(τ=k) (k=1,…,10): .1, .54, .276, .0714, .01134, .001176, .0000804, .00000351, …,E[τ]=1.19
What you say, out loud

If you want the machinery behind the 1.1 rather than the arithmetic: the hitting probabilities have a one-line generating function. Each level is entered by exactly one card, so summing over any number of cards gives U of z as one over one minus the card generating function, and that simplifies to ten times one minus z over ten minus eleven z plus z to the eleventh.

The interesting singularity is z equals 1. The denominator vanishes there, its derivative eleven minus eleven also vanishes, and its second derivative is 110; so z equals 1 is a double zero of the denominator against a single zero of the numerator, leaving a simple pole with residue two elevenths.

A pole of two elevenths over one minus z means the coefficients tend to two elevenths, which is the same one-over-mean-card number the renewal theorem gave, arrived at by algebra instead of probability. The other nine roots all sit outside the unit circle, the nearest at modulus about 1.218, so their contributions decay geometrically; that decay is the alternating undershoot and overshoot in my table.

The same function answers questions nobody asked: the number of cards drawn is 0.1 to stop on the first, 0.54 on the second, 0.276 on the third, and the mean number is 1.1 to the ninth, which is also ten times the probability of stopping at 10. I would offer all of this as a bonus rather than as the answer; the question asked only for the mode.

Why this beat exists: Going to the pole analysis unprompted reads as showing off; going there when invited, and labelling it as beyond the question, reads as depth with judgement.

Where the interviewer pushes next

“Which reading of the deck did you solve, and what changes if the cards really cycle?”
What you say, out loud

The whole walkthrough is reading A: independent uniform cards, which is the only reading that has a distribution to maximise. I would say that in the first thirty seconds of the interview rather than after the table.

Under reading B, a fixed cycle 1, 2, 3 up to 10 and then again, the partial sums are 1, 3, 6 and 10: the walk crosses on the fourth card and the final score is 10 every time, probability 1, no arithmetic needed.

There is a third reading worth having ready, because it is the one a real deck of cards obeys: one shuffled deck of 1 to 10 drawn without replacement. Increments are then dependent, so the convolution is gone, but a sum over subsets still gives the exact law, and the answer barely moves: the mode is again 10, now at 0.22698, and the table runs down to 0.02579 at 19.

reading B (cycle): S1=1, S2=3, S3=6, S4=10⇒Pr⁡(Sτ=10)=1
one deck, no replacement
Pr⁡(Sτ=10)=.22698, …, Pr⁡(Sτ=19)=.02579
“Does the mode stay at the threshold if the deck changes?”
What you say, out loud

For uniform cards it is a theorem, not a pattern. The difference of adjacent stopping probabilities is one tenth of a hitting probability, hence strictly positive all the way along, so the law is strictly decreasing and the mode is exactly the threshold: here 10, and the same argument covers cards 1 to m with any threshold.

Two spot checks: shrink the deck to 1 to 4 and the table is 0.39927, 0.30228, 0.20058, 0.09787, still decreasing from the threshold; shrink it to 1 to 6 and it is 0.28929, 0.24518, 0.19372, 0.13368, 0.09141, 0.04673. Fewer faces means a tighter cluster just above the wall.

Break the uniformity and the telescoping difference is no longer obviously positive, so I check rather than claim: cards 1, 2, 3, 4 with probabilities one half, one quarter, one eighth, one eighth give 0.53320, 0.26660, 0.13354, 0.06665; mode 10 again, and its probability is the exact fraction 273 over 512. The hitting probabilities for that deck settle at 1 over the mean card, which is 8 fifteenths.

Pr⁡(Sτ=s)−Pr⁡(Sτ=s+1)=us−1010>0(uniform cards, threshold 10)
m=4: .39927, .30228, .20058, .09787m=6: .28929, .24518, .19372, .13368, .09141, .04673
skewed deck {1,2,3,4}, p=(12,14,18,18):.53320, .26660, .13354, .06665,ut→815
“And the expected final score, as opposed to the most probable one?”
What you say, out loud

The mean is easier than the mode and it is a different number. Tau is a stopping time for independent increments with finite mean, so Wald's equation gives the expected final total as the expected card, eleven halves, times the expected number of cards.

The expected number of cards is itself a sum of the state probabilities: one plus all the levels at most 9 that can still be visited, which is 2.357947691; and that is exactly 1.1 to the ninth, the same number that is ten times the probability of stopping at 10.

Multiplying gives 12.9687123005, and summing s times the exact probabilities from the table gives the identical rational number, so the two agree to every digit. The gap between mode 10 and mean 12.97 is the right tail: most probable and average are genuinely different questions here.

E[τ]=∑t=09ut=119109=2.357947691,E[Sτ]=112E[τ]=11102⋅109=12.9687123005
mode 10 vs mean 12.97: tail 10,…,19
“The ratio 1.1 is very clean — how long does it last?”
What you say, out loud

Exactly up to t equals 10, and not one step further. The telescoping that produced it used the fact that the two windows share every term but one; past the tenth level the older window also loses a term, and the correct continuation is u sub t equals 1.1 u sub t minus 1 minus 0.1 u sub t minus 11.

Numerically that is brutal: the ratio rule would predict u sub 11 equals 0.25937424601, while the true value is 0.15937424601, and the gap is exactly one tenth; that is one tenth of u sub nought, the term the older window has now dropped. Equivalently u sub 11 minus u sub 10 is minus 0.07642052309, which is one tenth of u sub 10 minus u sub nought: the sequence starts falling instead of growing by ten percent.

Beyond the wall the sequence does not die, it converges: the elementary renewal theorem says the chance of hitting a far level tends to one over the mean card, 2 elevenths, about 0.181818. My computed values close in on it with a damped wiggle: 0.182873 at level 20, 0.181411 at 30, 0.181744 at 40; that wiggle is the tail of the nine other roots of the denominator, all of them outside the unit circle, the nearest at modulus 1.218.

ut=1110ut−1−110ut−11(t≥11),u11=.15937424601≠1110u10=.25937424601
ut⟶1E[X]=211=.181818…(u30=.181411, u40=.181744)

Traps on this question

  • Writing the possible final scores as 10 to 20. The total just before the last card is at most 9 and the last card is at most 10, so 19 is the ceiling — and saying out loud that 20 cannot occur is worth a mark.
  • Assuming the stopping values are spread evenly over 10 to 19 because the cards are. The exact table runs from 0.23579 down to 0.02144, a factor of eleven between the ends.
  • Carrying the ratio u_t = 1.1 u_{t-1} past t = 10. The convolution itself stays valid, but the telescoping that gives the clean ratio needs the two windows to differ by one term; the true u_{11} is 0.15937424601, not 0.25937424601.
  • Conditioning on the current total without saying that the game has not already stopped. Levels 10 to 19 are absorbing; any recursion that draws another card from 12 is counting paths that cannot occur.
  • Reading 0.23579 as a strong statement. It is below one quarter — 11^9 = 2357947691 against 2500000000 — and even the top three values sum to only 0.49738, so 'most probable' is about the mode, not about safety.

What gets written on the assessor’s form

  • Named the model and the ambiguity before computing: independent uniform cards for the main line, with the cyclic reading answered explicitly rather than quietly dropped.
  • Chose a state quantity — the probability of ever landing exactly on a level — and derived the convolution from the last step instead of quoting a theorem.
  • Kept the arithmetic exact: ten terminating decimals written as integers over 10^10, reconciled to sum to 1 as rationals, with the mode proved from the sign of the difference rather than read off a table.
  • Refused to trust the first answer: checked by simulation with the seed written down, and reported the one cell that landed 3.83 standard errors away instead of smoothing it over.
  • Built a second independent route — the deficit linear system, the forward distribution, and Wald's equation for the mean — and made all three agree with the first to the last digit.