Derivatives Foundation puzzles, solved step by step
- Puzzles
- 100
- Traced to a firm
- 66
- Topics
- 12
- Hard
- 29
001How many golf balls fit inside a 100-storey office tower? Talk me through your thought process; I care more about the structure than the final number.Tower Research CapitalNew York · 2013
Try it first
Before any arithmetic: which single assumption will move your answer the most, once the building's size is fixed?
Show the worked solution
About 12 billion, with an honest range of 10 to 14 billion. A floor plate of 4,000 square metres at 3.8 metres a floor gives 1.52 million cubic metres over 100 floors; take half as usable, 0.76 million. A golf ball is 4.27 centimetres across, about 41 cubic centimetres, so 24,500 would fit in a solid cubic metre. Spheres leave gaps: at a packing factor of 0.64 that is 15,700 per cubic metre, and 0.76 million times 15,700 is 11.9 billion.
Why build a chain instead of guessing a number?
If someone asks how much rice a storeroom holds, you do not guess a tonnage. You measure the room, decide how much of it is shelving, and know how much a sack holds. An estimation question is marked on whether each link in the chain is stated, sized and defensible, not on the final figure. Here the chain is floors, floor plate, floor height, usable fraction, ball volume, packing factor. Say the six links before you fill any of them in, so the interviewer can follow and correct a single link rather than the whole answer.
The chain runs from 100 floors, a 4,000 square metre plate and 3.8 metre floors to 1.52 million gross cubic metres and 0.76 million usable, then from a 40.8 cubic centimetre ball to 24,531 balls per solid cubic metre, and the packing factor turns that into 10.4, 11.9 or 13.8 billion balls, a spread of about a third from the packing assumption alone. Where does the packing factor come from, and why does it matter so much?
Pour marbles into a jar and shake it: they settle at roughly 64% of the jar's volume filled, with the rest air. Stack them by hand in the tightest possible pattern and you reach about 74%. Tip them in gently without shaking and you can be as low as 56%. The floor plate and height are things you can look up or pace out, but the packing factor is a physical assumption you must own, and it moves the answer from 10.4 to 13.8 billion on its own. Say which one you are using and why: balls poured into a building are a shaken random pile, so 0.64 is the defensible middle.
The relationship100 x 4,000 x 3.8 floors times floor plate times floor height, the gross volume in cubic metres 0.5 the usable fraction after the core, structure and services 40.8 x 10^-6 one golf ball in cubic metres 0.64 the packing factor for a shaken random pile of spheres What it says in wordsUsable volume divided by the volume of one ball, scaled down for the gaps between balls.What do you say when the interviewer pushes on the usable fraction?
Lifts, stairs, structural columns, ducts and ceiling voids take a large slice of a tower, and nobody knows it to the percent. Give a range and show which way it pushes the answer: 40% usable takes you to about 9.5 billion, 60% to about 14 billion, so the final figure is somewhere between 10 and 15 billion whatever you assume. A candidate who reports a single number to three figures has missed the point of the question. A candidate who says 12 billion, give or take a third, with the reasons, has answered it.
Where candidates lose it
The common failure is to fix on one number early, such as the number of balls in a room, and then multiply by a guessed room count without ever stating the building's volume. The interviewer cannot follow it, cannot correct it, and marks it as a guess.
The second loss is forgetting that spheres do not fill space. Dividing the volume by the ball's volume overstates the answer by about half. Saying the words packing factor, and a number for it, is what separates a trader's estimate from a schoolchild's.
What the interviewer asks next
- Now the balls are tennis balls, 6.7 centimetres across. Roughly how does your answer change?
- If I told you the real answer was 20 billion, which of your assumptions would you revisit first?
- Make me a market on it: give me a bid and an offer in billions, and tell me how wide and why.
Asked at Tower Research Capital, Assistant Trader, New York, 2013 (Wall Street Oasis):
How many golf balls fit in the empire state building? Explain thought process and detailed solution
013How many people work in a large bank's 45-storey London headquarters tower? Give me a number and the assumptions behind it.HSBCCentral · 2026
Try it first
Before building anything: which route gives an estimate the interviewer can check link by link?
Show the worked solution
About 8,400 people, with an honest range of roughly 5,558 to 12,994. Of 45 floors, take 40 as ordinary office floors after plant rooms, lobby and trading floors. A floor plate of 3,000 square metres with 70% usable gives 2,100 square metres of desk space per floor. At 10 square metres per person that is 210 people a floor, and 40 floors give 8,400. The widest assumption is the space per person, 8 to 12 square metres, which alone moves the answer by half.
Why build from the floor rather than from the bank?
If you wanted to know how many people a wedding hall holds, you would not guess from the size of the family; you would pace the hall and think about chairs per row. An estimate is only as good as the link the listener can check, and anyone who has worked on an office floor has a feel for how many desks it holds. So the chain is office floors, floor plate, usable share, square metres per person. Say the four links before any number, so the interviewer can argue with one of them rather than with the whole answer.
Forty office floors of 3,000 square metres at 70% usable and 10 square metres a person give 8,400 people, while taking every assumption at its low end gives 5,558 and at its high end 12,994, and the space per person is the link with the widest range, a ratio of 1.5 between its ends. The relationshipfloors office floors out of 45, after plant, lobby and other uses plate gross floor area in square metres usable the share of a floor that holds desks rather than lifts, cores and meeting rooms sq m per person the desk plus a share of corridors and kitchens What it says in wordsPeople equals total desk area divided by the area each person uses.Which assumption should you spend your time on?
The one with the widest range. Floors run 38 to 42, a ratio of 1.11; the plate 2,700 to 3,300, a ratio of 1.22; the usable share 65% to 75%, 1.15; but space per person runs 8 to 12 square metres, a ratio of 1.5, so it moves the answer most. Check it against a floor you know: a trading floor packs people at 6 to 8 square metres, a floor of meeting rooms and offices spreads them at 15 or more. If the interviewer gives you one fact, ask for that one.
What would you add about occupancy?
That desks and people are different counts. With hot-desking, a floor of 210 desks might be home to 250 or 300 people who are not all in on the same day, so a question about who works in the building can give a larger answer than a question about who is in it. Say which one you are answering. The limitation to state: the usable share and the space per person are guesses from general experience, not measurements, and a real number would come from the building's floor plans and the badge-in data.
Where candidates lose it
The common failure is to answer with a bare number, often a round 10,000, and then be unable to defend any part of it. The number is not what is marked; the chain is.
The second loss is spending the time on floors and plate, which are tight, and waving at the space per person, which is loose. Put the effort where the range is.
What the interviewer asks next
- Now estimate how many lifts the tower needs to get everyone in between 8 and 9 in the morning.
- How many taxis operate in a city's central business district on a weekday morning? Build the chain.
- If the building's badge data showed 6,000 entries a day, which assumption would you revisit first?
Asked at HSBC, Sales and Trading, Central, 2026 (Wall Street Oasis):
How many employees in London hsbc building How many taxis are in HK central How many beds in the nyc hotel
028How many zeros are at the end of 1000! (1000 factorial)?Jump TradingChicago · 2013
Try it first
Pick the count before you work it out.
Show the worked solution
249 trailing zeros. A zero at the end is a factor of 10, and a 10 is a 2 times a 5. Among 1 to 1,000 there are 994 factors of 2 but only 249 factors of 5, so the 5s decide. Multiples of 5 contribute 200, multiples of 25 add a second 5 each for 40 more, multiples of 125 add 8, and 625 adds 1: 200 + 40 + 8 + 1 = 249.
Why count 5s and not 10s?
Imagine packing gift boxes that each need one lid and one base, from a pile of 994 lids and 249 bases. You can make 249 boxes, and the extra lids are useless. A trailing zero is a box: it needs one factor of 2 and one factor of 5, and in the product 1 x 2 x 3 x ... x 1,000 the 5s run out long before the 2s. Counting multiples of 10 misses every zero that comes from pairing a 5 in one number with a 2 in another; 4 x 5 is 20, which ends in a zero though neither factor is a multiple of 10. So the question is simply: how many times does 5 divide into 1,000 factorial?
Multiples of 5 up to 1,000 contribute 200 factors of 5, multiples of 25 a further 40, multiples of 125 another 8 and 625 one more, which add to 249, while the 994 factors of 2 are never the constraint. How do you count the 5s without missing the doubled ones?
Count in layers. Every multiple of 5 carries at least one 5: 1,000 divided by 5 is 200. Every multiple of 25 carries a second 5 that the first layer did not see: 1,000 over 25 is 40. Multiples of 125 carry a third, 8 of them, and 625 carries a fourth, once. Each layer counts only the extra 5 that the layer before it missed, which is why you add the plain quotients and never multiply. The sum is 249. The same method gives 24 zeros for 100 factorial, 20 plus 4, and the layering stops as soon as the power of 5 exceeds the number.
The relationshipZ(n) the number of trailing zeros of n factorial floor of n over 5^k how many numbers up to n carry at least k factors of 5 What it says in wordsAdd the whole-number quotients of n by each power of 5 until the power is bigger than n.What does the interviewer learn from how you say it?
The answer is a test of whether you decompose a question into its prime factors rather than reach for the obvious count. Say the pairing argument first, then the layered count, then check the shape: the answer is a little under n over 4, because 200 + 40 + 8 + 1 is a geometric series that sums towards 1,000 over 4. That check is useful on the follow-ups. For the number of factors of 2 the same layering gives 994; for 3s it gives 498, so in base 6, where a trailing zero needs a 2 and a 3, 1,000 factorial ends in 498 zeros. The limitation is worth a sentence: this counts zeros at the end, not zeros anywhere in the 2,568-digit number, which is a different and much harder question.
Where candidates lose it
The fast wrong answer is 100, one per multiple of 10, or 200, one per multiple of 5. The first misses every zero made by pairing a 5 with a 2 from a different number; the second misses the extra 5s inside 25, 125 and 625.
The other slip is counting 625 as four and 125 as three in the final sum, which double counts. Each layer adds only one new 5 per number, so the layers are added as plain quotients.
What the interviewer asks next
- How many trailing zeros does 100! have?
- How many trailing zeros does 1000! have when written in base 6? In base 12?
- What is the smallest n for which n! ends in exactly 100 zeros, and is there an n that ends in exactly 5 zeros?
Asked at Jump Trading, Trading, Chicago, 2013 (Wall Street Oasis):
How many 0's are in 1000! (factorial)?
046Give the next term in each sequence: 2, 6, 12, 20, 30, ... ; 1, 1, 2, 6, 24, ... ; 3, 5, 9, 17, 33, ...Prop trading firmsSell-side sales and trading
Try it first
What comes after 3, 5, 9, 17, 33?
Show the worked solution
42, 120 and 65. In the first, the differences 4, 6, 8, 10 rise by 2, so the next difference is 12 and the term is 42; the terms are n(n + 1). In the second, each term is the previous one times 1, 2, 3, 4, so the next multiplier is 5 and the term is 120; these are the factorials. In the third, the differences 2, 4, 8, 16 double, so add 32 to get 65; the terms are 2 to the n plus 1.
What order should you test patterns in?
A mechanic with an unknown rattle checks the cheap, common causes first and the exotic ones last. Sequence questions reward the same discipline: write the first differences, then the second differences, and only if neither settles try ratios and then rules that mix the two, such as double and subtract one. Each test takes a few seconds and most interview sequences give way to one of the first three. The order matters because the interviewer is timing you; the candidate who stares at the numbers hoping to recognise them is slower than the one who writes a row of differences under them without thinking.
Writing a row under each sequence exposes the rule: the first has constant second differences of 2 and continues to 42, the second has ratios climbing by one and continues to 120, and the third has doubling differences and continues to 65. How does each of the three give way?
For 2, 6, 12, 20, 30, the first differences are 4, 6, 8, 10 and the second differences are all 2. Constant second differences mean the sequence is a quadratic in n, so the next difference is 12 and the next term 42, and the closed form is n(n + 1): 1 x 2, 2 x 3, up to 6 x 7. For 1, 1, 2, 6, 24, the differences 0, 1, 4, 18 tell you nothing, so try ratios: 1, 2, 3, 4. The next ratio is 5 and the term is 120; the terms are 0!, 1!, 2!, 3!, 4!, and 5! is 120. For 3, 5, 9, 17, 33, the differences are 2, 4, 8, 16, a doubling, so the next difference is 32 and the term is 65. Spot the rule in one line too: each term is twice the previous minus 1, and every term is a power of two plus 1, so the next is 2 to the 6 plus 1.
The relationshipa n the n-th term of the first sequence, a quadratic, so its second differences are constant b n the factorials, each term the previous one times the next whole number c n a power of two plus one, so its differences are powers of two What it says in wordsEach sequence has a one-line rule, and the difference or ratio row is how you find it in seconds.Is the answer really unique, and what should you say if pushed?
Strictly, no. Any five numbers can be continued by any sixth, because a polynomial of degree five can be passed through all six points. For example n(n + 1) + (n - 1)(n - 2)(n - 3)(n - 4)(n - 5) matches 2, 6, 12, 20, 30 exactly and then gives 162. The expected answer is the simplest rule that fits, and the way to show you know that is to name the rule, not just the number. That habit carries over to the desk: a pattern in five data points is a hypothesis, and the trader who states the rule can test it on the sixth point, while the one who only extrapolates cannot tell when the pattern has broken. If the interviewer offers a sequence that resists all three tests, try alternating terms, or interleaved sequences, before guessing.
Where candidates lose it
The common loss is 66 for the third sequence: doubling 33 and forgetting that the rule doubles and then subtracts 1. Check the rule on an earlier pair, 17 to 33, before you say the answer.
The second is hunting the factorials through differences, which give 0, 1, 4, 18 and lead nowhere. When differences grow faster than the terms, switch to ratios immediately.
What the interviewer asks next
- What comes next: 1, 4, 9, 16, 25, 36, and what are its second differences?
- Next term: 1, 2, 6, 15, 31, ...
- Next term: 2, 3, 5, 7, 11, 13, ...
- Find a rule for 1, 3, 7, 15, 31 and give its closed form.
052A bus makes three stops. At each stop half the people on board get off, and then the number on board grows by a third. The bus reaches the end of the route with 16 people. How many were on board at the start?Prop trading firms
Try it first
Before working it: each stop multiplies the number on board by what?
Show the worked solution
54 people. Each stop halves the load and then adds a third of what is left, so the load is multiplied by 1/2 x 4/3 = 2/3 at every stop. Undoing three stops means dividing 16 by 2/3 three times: 16 to 24 to 36 to 54. The forward check works: 54 to 27 to 36, then 18 to 24, then 12 to 16.
Why work backwards rather than guess a start?
If someone tells you a shirt was marked down by half, then marked up by a third, and now costs Rs 16, you do not guess the original tag; you undo the two moves in reverse order. Each stop is a pair of multiplications, and multiplications are undone by dividing in the opposite order, so the end number walks back to the start without any trial and error. The growth of a third comes last at each stop, so it is undone first: divide by 4/3, which is multiply by 3/4. Then undo the halving by doubling. From 16: times 3/4 is 12, times 2 is 24. Twice more gives 36 and then 54.
Starting from 16 at the end of the route and undoing each stop, first multiplying by 3/4 then by 2, the count climbs 16 to 24 to 36 to 54, and running the three stops forward from 54 returns exactly 16, because each stop multiplies the load by 2/3. What is the one-line version an interviewer wants to hear?
Collapse each stop to a single factor. Losing half is x 1/2 and gaining a third is x 4/3, so a stop is x 2/3, and three stops are x 8/27. The start is 16 x 27/8 = 54. Saying that in one breath shows you saw the structure rather than the arithmetic, which is what the question is for. The limitation is that it only works because every stop has the same two moves; a route where the fractions change needs the step-by-step walk back.
The relationshipN_0 the number on board at the start N_3 the number at the end of the route, 16 (3/2)^3 undoing the per-stop factor of 2/3 three times What it says in wordsThe start is the end count divided by the per-stop factor of two thirds, three times over.Where do the whole-number checks help you?
The bus carries people, so every intermediate count must be a whole number, and that is a free check. If the backwards walk ever produces a fraction, you have undone the moves in the wrong order. Undoing the halving first from 16 gives 32, then times 3/4 gives 24, which happens to be whole here, but on the next stop it would give 48 then 36, and the order mistake would have cost you nothing visible until the end, where 72 x 3/4 = 54 again by luck. Order matters in general even when the numbers hide it, so say the order out loud.
Where candidates lose it
The common slip is treating the two moves at each stop as a net loss of a sixth, since a half minus a third is a sixth. The third is taken on the smaller number, so the stop is a factor of 2/3, not 5/6.
The second slip is undoing the moves in the wrong order. Growth came last, so it is undone first. Say the per-stop factor, then walk back 16, 24, 36, 54, and finish with the forward check.
What the interviewer asks next
- If instead a third get off and then the number on board doubles at each stop, what is the per-stop factor?
- How many stops would it take for a bus starting with 54 to get below 5 people?
- The bus starts with 54 and the pattern continues. After how many stops is the number no longer a whole number?
079What are the last two digits of 4^3000?Belvedere TradingNew york · 2021
Try it first
What is the shape of the method, before any arithmetic?
Show the worked solution
76. Multiplying by 4 and keeping only the last two digits gives 04, 16, 64, 56, 24, 96, 84, 36, 44, 76, and then 76 x 4 = 304 returns to 04. The cycle has length 10 starting at 4^1, and 3000 is a multiple of 10, so 4^3000 ends like 4^10, in 76. Check: 76 x 76 = 5,776, so 76 reproduces itself under squaring, which is what a power of 4^10 must do.
Why do only the last two digits matter at each step?
When you work out what time it will be 3,000 hours from now, you do not count the hours; you note that the clock face has 24 positions and ask where 3,000 lands on it. Last two digits are a clock with 100 positions. The last two digits of a product are fixed by the last two digits of the factors alone, so the sequence of 4^n mod 100 can only visit 100 states and has to fall into a cycle. Walk it: 04, 16, 64, 56, 24, 96, 84, 36, 44, 76, and 76 x 4 = 304 brings you back to 04. Ten steps, then it repeats.
The last two digits of 4^n for n from 1 to 10 are 04, 16, 64, 56, 24, 96, 84, 36, 44 and 76, and 76 x 4 = 304 returns the ring to 04, so because 3000 is 300 full turns of ten, 4^3000 lands on the same box as 4^10, which is 76. How do you reduce 3000 without miscounting the start of the cycle?
The cycle begins at 4^1 = 04, not at 4^0 = 01, because 01 is never revisited: once a power of 4 is a multiple of 4 it stays one, and 01 is not. So the positions n = 1, 11, 21 and so on share last digits 04, and the positions n = 10, 20, 30 and so on share 76. 3000 is a multiple of 10, so it sits in the same slot as 10, and 4^10 ends in 76. Candidates who start counting from n = 0 land one step off and say 44.
The relationshipmod 100 keep only the last two digits 76^2 = 5776 76 squared ends in 76, so every power of 76 ends in 76 What it says in wordsAny power of 4^10 ends in 76 because 76 reproduces itself whenever it is multiplied by itself.A second route, worth one sentence: split 100 into 4 and 25. Any 4^n with n at least 1 is 0 mod 4, and 4^10 = 1,048,576 is 1 mod 25, so 4^3000 is 1 mod 25. The number under 100 that is 0 mod 4 and 1 mod 25 is 76. Two methods agreeing is the finish an interviewer wants. The limitation: the cycle trick is only this short because 4 is small; for a base like 7 the cycle mod 100 is 4 steps, for 3 it is 20, and you should check rather than assume.
Where candidates lose it
The fast loss is counting the cycle from the wrong end. People list ten residues, say the cycle is 10, then divide 3000 by 10 and read off the first entry, 04, or count from 4^0 and get 44. Decide whether your list starts at 4^1 and say so.
The slower loss is trying to use Euler's theorem with 4 and 100 not coprime, which it does not allow. Either walk the cycle or split 100 into 4 and 25.
What the interviewer asks next
- What are the last two digits of 7^3000?
- What is the last digit of 3^3000, and how long is that cycle?
- Why does 76 reproduce itself under multiplication by any power of 4 above 4^9?
Asked at Belvedere Trading, Equities, New york, 2021 (Wall Street Oasis):
Some basic number theory (4^3000 modulo 100), basic probability calculations, and combinatorics puzzles
