Quant puzzles, solved step by step
- Puzzles
- 100
- Traced to a firm
- 71
- Topics
- 12
- Hard
- 30
026What comes next in the sequence 1, 11, 21, 1211, 111221, and what rule produces it?OptiverChicago · 2025
Try it first
Which term comes next?
Show the worked solution
The next term is 312211. Each term describes the one before it, read aloud as runs of equal digits. 1 is one 1, written 11. 11 is two 1s, written 21. 21 is one 2 and one 1, written 1211. 111221 is three 1s, two 2s and one 1, written 312211. The sequence is known as look-and-say.
Why does no arithmetic rule fit?
Try the usual moves first, as you would with any number series: differences, ratios, squares. 11 minus 1 is 10 and 21 minus 11 is 10, but 1211 minus 21 is 1,190, and the pattern dies. When the gaps jump like that, stop treating the terms as quantities. These terms are strings of digits, not numbers, and the rule works on the digits one run at a time. Think of reading a phone number to someone on a bad line: you say double two, triple five. Each term here is the previous one said that way and then written down.
Each term is split into runs of equal digits and each run is read as a count and a digit: 1211 reads one 1, one 2, two 1s and becomes 111221, and 111221 reads three 1s, two 2s, one 1 and becomes 312211. How do you produce the next term without slipping?
Mark the runs first, then speak each run as a count followed by its digit. The slip people make is merging two runs of the same digit that have something else between them. In 111221 the three 1s at the front and the single 1 at the end are separate runs, so the reading ends with one 1, not four 1s. Bracket the runs on paper or in your head and read left to right: three 1s, two 2s, one 1 gives 312211. One more turn for practice: 312211 reads one 3, one 1, two 2s, two 1s, which writes as 13112221.
What can you say about the sequence beyond the next term?
Two facts show you understand the rule rather than just ran it. First, starting from 1, no digit above 3 ever appears. Neighbouring runs always hold different digits, so four equal digits can never sit in a row, no run is longer than three, and no count above 3 is ever written. Second, the terms grow at a steady rate: the 40th term has 63,138 digits, and each term is about 1.30 times as long as the one before, a ratio John Conway studied. Run the rule in a short loop to see both, which is also the coding follow-up many firms ask next.
On a timed screen, the point of a question like this is speed at dropping a wrong frame. Candidates who spend a minute hunting for a formula lose the minute; candidates who ask what else the digits could be doing find the rule in seconds.
Where candidates lose it
The usual loss is spending the first minute on differences and ratios. The terms look like numbers, so people treat them as numbers, and on a timed test that minute is the question.
The second is merging runs: reading 111221 as four 1s and two 2s gives 4122, which is wrong. The two groups of 1s are split by the 2s, so they are read separately.
What the interviewer asks next
- What is the term after 13112221?
- Prove that starting from 1 the digit 4 never appears.
- What happens if the sequence starts from 22 instead of 1?
- Write a function that returns the n-th term. How does its running time grow with n?
Asked at Optiver, Software, Chicago, 2025 (Wall Street Oasis):
It was a 1-hour assessment with NumberLogic, Beat the Odds, and Zap-N
050A bus leaves the depot with some passengers. At stop 1 half of them get off; by stop 2 the number on board has grown by a third; at stop 3 half get off; by stop 4 the number has grown by a third again. There are now 16 people on board. How many started?Jane StreetNew York · 2026
Try it first
How many passengers started?
Show the worked solution
36 passengers started. Work backwards from 16 and undo each step with its inverse. Growing by a third multiplies by 4/3, so undo it by multiplying by 3/4: 16 becomes 12. Undo half getting off by doubling: 24. Then 3/4 again: 18. Double again: 36. Forwards it checks: 36, 18, 24, 12, 16.
Why work backwards instead of setting up an equation?
Retracing your route to find a dropped wallet works because you know where you ended up. Here you know the final count and every step, so the cheapest route is to run the film in reverse. Each step is a multiplication, so each can be undone by multiplying by its reciprocal, starting from the 16 and moving toward the depot. An equation also works, 4x/9 = 16, but the backward chain shows every intermediate count, which lets you check that each one is a whole number of people.
Going forward the count is multiplied by 1/2, 4/3, 1/2 and 4/3 to reach 16; going backward from 16 the inverses 3/4, 2, 3/4 and 2 give 12, 24, 18 and finally 36 passengers at the depot. What is the inverse of growing by a third?
This is the step that catches people. Growing by a third means the new count is 4/3 of the old one. To undo a rise of a third you multiply by 3/4, which removes a quarter of the new number, not a third of it. Taking a third off 16 gives 10.67, which is not a whole person and is a red flag on its own. Multiplying by 3/4 gives 12, and 12 grown by a third is 16 again, so the step checks.
The relationshipx passengers leaving the depot 1/2 half get off 4/3 the count grows by a third 4/9 the net factor over all four stops What it says in wordsFour multiplications compound into one factor of 4/9, so the start is 16 divided by 4/9.The whole-number check also tells you what starting counts are possible at all. Every intermediate count, x/2, 2x/3, x/3 and 4x/9, must be a whole number, so x must be a multiple of 18. A free consistency check is worth saying aloud: 36 is a multiple of 18, and every count on the way, 18, 24 and 12, is whole. The same structure appears on a desk whenever a number passes through several percentage changes: a price up 10% and then down 10% ends at 99% of where it began, and undoing a change always means dividing by the factor, never subtracting the percentage.
Where candidates lose it
The common loss is undoing the growth by taking a third off the later number, which gives 10.67 and stalls. A third of the earlier count is a quarter of the later one, so the inverse is multiplying by 3/4.
The second is doing the steps in the wrong order when working backwards. The last thing that happened is the first thing to undo: start with the growth at stop 4, then the halving at stop 3.
What the interviewer asks next
- What is the smallest number of passengers the bus could have started with for every count to be whole?
- If the pattern repeats for eight stops and 64 people are left, how many started?
- A stock rises a third and then falls a quarter. Where does it end?
Asked at Jane Street, Technology, New York, 2026 (Wall Street Oasis):
x amount of people in the bus. 1/2 got off, 1/3 get in , and so on and so forth
072Towns A and B are 100 miles apart. A car leaves A for B at 50 mph. At the same moment a bird leaves B, flying towards the car at 100 mph; each time it meets the car it turns back to B, and each time it reaches B it turns towards the car again, until the car arrives at B. How far does the bird fly in total?BlackRockNew York · 2025
Try it first
How far does the bird fly?
Show the worked solution
200 miles. The car needs 100 / 50 = 2 hours to reach B, and the bird flies the whole time at 100 mph, so it covers 2 x 100 = 200 miles. Summing the zigzags gives the same answer: the first round trip is 133.3 miles, each later one is a third of the one before, and 133.3 / (1 - 1/3) = 200.
What is the question really asking you to count?
Think of a dog running back and forth between you and your front door while you walk home. You could trace every dash, or you could notice that the dog runs at a steady speed for exactly as long as your walk takes. Distance is speed times time, and the bird's flying time is fixed by the car, not by the zigzags, so the zigzag detail is a distraction. The car covers 100 miles at 50 mph in 2 hours; the bird flies at 100 mph for those same 2 hours. That is 200 miles, and it takes one sentence.
Plotted against time, the bird's zigzags shrink by a factor of three each round and all fit inside the car's 2-hour trip, so the bird flies for 2 hours at 100 mph, a total of 200 miles. How do you check it by summing the zigzags?
The bird and car close the first 100 miles at a combined 150 mph, so they meet after 40 minutes, 33.3 miles from A. The bird flies back to B, 66.7 miles, arriving at 80 minutes, by which time the car is at 66.7 miles. Each round trip starts with the gap to the car one third of the previous gap, so the round trips form a geometric series with ratio 1/3. The first is 133.3 miles; the sum is 133.3 / (1 - 1/3) = 200. It agrees, and it shows why infinitely many turns still add to a finite distance.
The relationshipv_bird the bird's speed, 100 mph t_car the car's travel time, 100 miles at 50 mph 133.3 the first round trip in miles, B to the first meeting and back What it says in wordsThe bird flies for exactly as long as the car drives; the zigzag series, summed, gives the same 200 miles.Why do interviewers still ask a puzzle this well known?
Because the way you answer tells them more than the answer. A candidate who starts summing legs has reached for the first method that fits; a candidate who asks what quantity is fixed has found the invariant, and that is the habit the interviewer is hiring. The story about von Neumann summing the series in his head is part of the folklore; you get more credit for the one-line method and the series as a check. The same move, looking for a quantity that does not depend on the messy path, solves many expected-value and stopping questions on this page.
Where candidates lose it
The trap is starting the series: solving for the first meeting, then the return, then the second meeting, and running out of time or making an arithmetic slip on the third leg. The infinite number of legs also tempts some candidates to answer infinity.
Lead with the time argument and give 200 within ten seconds; then offer the series with its ratio of one third as a check, which shows you could do it the long way.
What the interviewer asks next
- Where is the car when the bird reaches B for the second time?
- How many times does the bird turn around?
- If the bird started at A with the car, flying ahead to B and back, how far would it fly?
Asked at BlackRock, Quantitative Research, New York, 2025 (Wall Street Oasis):
A car starts at point A going 50 miles an hour towards point B

