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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.