Quant puzzles, solved step by step
- Puzzles
- 100
- Traced to a firm
- 71
- Topics
- 12
- Hard
- 30
012Speed round: convert 3/32, 7/16 and 11/64 to decimals in your head, and explain the pattern you used.Belvedere TradingChicago · 2021
Try it first
What is 3/32 as a decimal?
Show the worked solution
3/32 = 0.09375, 7/16 = 0.4375 and 11/64 = 0.171875. Every denominator here is a power of two, so the unit fraction is a chain of halvings: 1/2 = 0.5, 1/4 = 0.25, 1/8 = 0.125, 1/16 = 0.0625, 1/32 = 0.03125, 1/64 = 0.015625. Find the rung, then multiply by the numerator. Each decimal ends exactly, because 2 divides a power of 10.
Why do powers of two give clean decimals?
Think of cutting a one-metre ribbon in half again and again: 50 cm, 25 cm, 12.5 cm, 6.25 cm. Each cut adds at most one digit to the length. A fraction terminates in decimal exactly when its denominator has no prime factors other than 2 and 5, so every power-of-two fraction ends, and 1 over 2 to the n has exactly n decimal places. That tells you before you start that 11/64 will have six digits after the point.
Each rung of the halving ladder is half the one above, from 0.5 down to 0.015625 for 1/64, so 3/32 is three of the 0.03125 rung, 0.09375, and 11/64 is eleven of the 0.015625 rung, 0.171875. How do you do 11/64 without losing a digit?
Split the numerator into pieces you already know. 11/64 is 8/64 + 2/64 + 1/64, which is 1/8 + 1/32 + 1/64: 0.125 + 0.03125 + 0.015625 = 0.171875. Or take 11 x 0.015625 as 10 x 0.015625 plus one more, 0.15625 + 0.015625. Either way you add numbers you have memorised instead of dividing. 7/16 works the same way as 1/2 - 1/16, 0.5 - 0.0625 = 0.4375.
The relationship1/8, 1/32, 1/64 rungs of the halving ladder 11 = 8 + 2 + 1 the numerator written in binary What it says in wordsWrite the numerator as a sum of powers of two and add the matching rungs.Why do trading firms test this?
Some bond and futures markets have long quoted prices in 32nds and 64ths of a point, and option deltas and odds come up as fractions all day. A trader who converts 3/32 at the speed of reading reacts to a price while a slower colleague is still dividing. The same round usually mixes in products such as 38 x 42, which is 40 squared minus 2 squared, 1,596: the test is spotting structure that turns long arithmetic into one step.
Where candidates lose it
Candidates try long division under pressure and drop or add a zero: 0.9375 for 3/32 is a common slip, and it is actually 15/16. Knowing the ladder by heart removes the division entirely.
The second loss is rounding. The question asks for the decimal, and 0.094 or 0.17 sounds careless when the exact answer is short and available. Give all the digits, then the rounded figure if asked.
What the interviewer asks next
- What is 13/128 as a decimal?
- Now 38 x 42 in your head, and say the trick you used.
- Convert 0.859375 back to a fraction.
Asked at Belvedere Trading, Trading, Chicago, 2021 (Wall Street Oasis):
3/32 mental math, 38*42, crossing the bridge in the shortest amount of time
024Differentiate f(x) = x to the power x, and find where it reaches its minimum for positive x.ScotiabankToronto · 2026
Try it first
What is the derivative of x to the x?
Show the worked solution
f'(x) = x to the x times (ln x + 1), and the minimum is at x = 1/e, about 0.368, where f is about 0.692. Take logs: ln f = x ln x. Differentiating, f'/f = ln x + 1, so f' = x to the x (ln x + 1). The derivative is zero when ln x = -1, that is x = 1/e, negative before it and positive after, so this is a minimum.
Why do both standard rules fail?
The power rule, n x to the (n - 1), treats the exponent as fixed; the exponential rule, a to the x times ln a, treats the base as fixed. In x to the x both the base and the exponent move, so neither rule applies on its own, and each one gives half of the right answer. Indeed the correct derivative is the sum of the two: x times x to the (x - 1), which is x to the x, plus x to the x ln x. That sum is a quick check on your final answer.
The curve x to the x falls from near 1 at zero to a minimum of 0.692 at x = 1/e and then rises to 4 at x = 2, and its logarithm x ln x has its minimum at the same point, which is why taking logs first is safe. How does taking logs make it routine?
Think of converting a messy multiplication into addition before doing it, the way a slide rule does. Write ln f = x ln x; the right-hand side is a product of two simple functions, and the product rule gives ln x + x times 1/x = ln x + 1. The left side differentiates to f'/f by the chain rule, so f' = f (ln x + 1). This is logarithmic differentiationDifferentiating the logarithm of a function instead of the function, then multiplying back; useful when the variable sits in an exponent., and it works for any function of the form g(x) to the h(x).
The relationshipe^{x ln x} x to the x rewritten with a fixed base ln x + 1 the derivative of x ln x e^{-1} where ln x = -1, the minimum What it says in wordsRewrite with base e, differentiate the exponent, and set it to zero.How do you confirm it is a minimum and state the value?
Check the sign of ln x + 1, since x to the x is always positive. For x below 1/e, ln x is below -1 and the slope is negative; above 1/e it is positive, so the function falls and then rises: a minimum. The value is (1/e) to the (1/e) = e to the (-1/e), about 0.692. Also say what happens at the edges: as x shrinks towards zero, x ln x tends to zero, so x to the x tends to 1, and at x = 1 it is exactly 1 again.
Where candidates lose it
The fast wrong answer applies the power rule, x times x to the (x - 1), which is just x to the x. It treats the exponent as a constant, and candidates who give it usually do so in the first three seconds.
The second loss is finding x = 1/e and stopping. The question asks for the minimum, so check the sign change and give the value, e to the (-1/e), about 0.692, together with the behaviour near zero.
What the interviewer asks next
- Differentiate x to the (x to the x).
- What is the limit of x to the x as x approaches 0 from above, and why?
- Which is larger, e to the pi or pi to the e, and how does x to the (1/x) settle it?
Asked at Scotiabank, Quant, Toronto, 2026 (Wall Street Oasis):
technical questions covering calculus (including derivatives of standard functions)
037Without paper: work out 56 x 56 and 73 x 74, and say the shortcut you used for each.Akuna CapitalChicago · 2025
Try it first
What is 56 x 56?
Show the worked solution
56 x 56 = 3,136 and 73 x 74 = 5,402. For 56 squared, split it as 50 + 6: 2,500, plus two strips of 300, plus 36. For 73 x 74, anchor both on 70: 4,900, plus 70 x 7 = 490, plus 3 x 4 = 12. A second route checks each: (60 - 4) squared = 3,136, and 73.5 squared minus a quarter = 5,402.
What is the shortcut for squaring a two-digit number?
Tiling a floor that is 56 tiles on each side, you would lay the big 50 by 50 block first, then two thin strips along the edges, then a small corner. Splitting a number into a round base plus a small part turns one hard product into one easy square and a few small ones: (a + b) squared = a squared + 2ab + b squared. For 56: 2,500 + 2 x 300 + 36 = 3,136. You can also go down from the next round number: (60 - 4) squared = 3,600 - 480 + 16, again 3,136.
56 squared splits into a 2,500 block, two 300 strips and a 36 corner, total 3,136; 73 x 74 splits into 4,900, 280, 210 and 12, total 5,402, the same answer as 73.5 squared minus a quarter. What changes when the two numbers differ, as in 73 x 74?
When two numbers share a tens digit, anchor both on it. For (70 + 3)(70 + 4), the product is 70 squared, plus 70 times the sum of the units, plus the product of the units: 4,900 + 490 + 12 = 5,402. The midpoint route gives the same: numbers equally spaced around 73.5 multiply to 73.5 squared minus the square of the half gap, 0.25, and 73.5 squared is 4,900 + 490 + 12.25. Another quick path: 73 x 74 = 73 squared + 73 = 5,329 + 73.
The relationshipa the round base, 70 b, c the small parts, 3 and 4 What it says in wordsMultiply the round parts, add the round part times the sum of the small parts, then add the small product.Timed tests reward a fixed routine more than cleverness. Pick one decomposition, say the partial products in order, and check with a second route only if time allows. The last digit is a free check: 6 x 6 ends in 6 and 3 x 4 ends in 2, so 3,136 and 5,402 pass. A good habit is to sanity check the size too: 56 squared must sit between 50 squared, 2,500, and 60 squared, 3,600.
Where candidates lose it
The usual slip in 56 squared is adding one strip of 300 instead of two, giving 2,836, or dropping the 36. The area picture makes both errors visible: a square has two strips and a corner.
On a timed screen the other loss is switching methods halfway. Commit to the split, say each partial product, then add. Checking the last digit costs a second and catches most slips.
What the interviewer asks next
- Work out 97 x 103 in your head.
- What is 35 squared, and what is the trick for squares ending in 5?
- Estimate 48 x 52 without multiplying directly.
Asked at Akuna Capital, Prop Trading, Chicago, 2025 (Wall Street Oasis):
The mental math problems which were timed, one example was the 56*56
049Which is larger, e to the power pi or pi to the power e? Prove it without a calculator.Quant researchQuant trading
Try it first
Which way does it go?
Show the worked solution
e^pi is larger: about 23.14 against 22.46 for pi^e. Take logs of both and divide by e x pi, which turns the question into comparing ln e / e with ln pi / pi. The function ln x / x rises up to x = e and falls after it, so its value at e beats its value at any other number, pi included. Undo the steps and the order holds.
How do you turn two awkward powers into one comparison?
When two people race on different tracks, you compare them by converting to the same distance. Here the base and the exponent both differ, so convert each number into a common form. Take logarithms and divide by e x pi: e^pi against pi^e becomes ln e / e against ln pi / pi, the same function evaluated at two points. Logs and division by a positive number both preserve order, so whichever side wins the new comparison wins the original.
The relationship? the unknown direction of the inequality, the same at every step \ln x / x the function whose largest value settles the question What it says in wordsTaking logs and dividing by e times pi turns the question into one function compared at e and at pi.Why is ln x / x largest at e?
Differentiate: the derivative of ln x / x is (1 - ln x) / x squared. It is positive while ln x is below 1 and negative once ln x passes 1, so the function climbs until x = e and falls after. Its largest value, 1/e, occurs only at x = e, so ln pi / pi must be smaller, and therefore e^pi beats pi^e. Equivalently, x^(1/x) peaks at e with value 1.4447, while pi^(1/pi) is 1.4396.
The curve x to the power 1/x reaches its maximum of 1.4447 at x = e and has already fallen to 1.4396 at x = pi, so raising both values to the power e times pi gives e^pi = 23.14, larger than pi^e = 22.46. There is a second proof that needs no calculus beyond one inequality. For any x other than zero, e^x is greater than 1 + x, because the exponential curve lies above its tangent line at zero. Put x = pi/e - 1, about 0.156: then e^(pi/e - 1) is greater than pi/e, so e^(pi/e) is greater than pi, and raising both to the power e gives e^pi greater than pi^e. Give that one if the interviewer asks for a proof without derivatives.
Notice how close the race is: the two values of x^(1/x) differ by only 0.0050, because pi sits near the flat top of the curve. That is why rough estimation is risky here and a proof is needed: 23.14 and 22.46 differ by about 3%. The same argument settles a whole family: for any two numbers a and b with e at most a, and a less than b, a^b is greater than b^a, which is why 3^4 = 81 beats 4^3 = 64.
Where candidates lose it
The common loss is answering pi^e because pi is the bigger base, or trying to estimate both numbers to a decimal and getting lost in the arithmetic. The gap is only about 3%, so mental estimates can land either way.
The second is proving it backwards: assuming the answer and manipulating until something true appears, without checking each step preserves the inequality. Say out loud that taking logs and dividing by the positive e x pi keep the order.
What the interviewer asks next
- Which is larger, 2^3 or 3^2, and why does the argument not apply to 2 and 4?
- Find all pairs of distinct positive integers with a^b = b^a.
- Which is larger, 99^100 or 100^99?
061A Rs 1,000 crore fund charges a 2% management fee and 20% of gains, with the performance fee taken on the gain left after the management fee. In a year with a 10% gross return, the manager cuts the management fee to 1%. What performance fee keeps the manager's revenue unchanged?Two SigmaNew York · 2026
Try it first
Which performance fee keeps revenue at the old level?
Show the worked solution
About 28.9%, roughly 29%. Under 2 and 20 the manager earns Rs 20 crore of management fee plus 20% of the remaining Rs 80 crore gain, Rs 36 crore in all. At 1% the management fee is Rs 10 crore and the gain left is Rs 90 crore, so the performance fee must bring in Rs 26 crore: 26 / 90 = 28.9%. It only balances at a 10% return.
Why is the answer not simply 30%?
Think of a shopkeeper who takes a fixed rent from a stall plus a fifth of whatever the stall-holder clears after paying that rent. If the rent is halved, the stall-holder clears more, and the shopkeeper's fifth is a fifth of a larger amount. Cutting the management fee enlarges the gain on which the performance fee is charged, so part of the lost management revenue comes back automatically. Here the old fee of 20% on Rs 90 crore earns Rs 18 crore, up from Rs 16 crore, and the true shortfall is Rs 8 crore, not Rs 10 crore. Adding 10 points to get 30% repays the shortfall twice over in part.
At a 10% gross return the old terms earn Rs 36 crore, the fee cut alone earns Rs 28 crore, and a performance fee of 28.9% restores Rs 36 crore; at any other return the two sets of terms pay differently, crossing only at 10%. How do you set it up in one line?
Write revenue as management fee plus performance rate times the gain after the management fee, and hold it equal. The new rate is the old revenue less the new management fee, divided by the new fee base: (36 - 10) / 90 = 28.9%. The investor's position is the mirror image: gross gain Rs 100 crore less Rs 36 crore of fees leaves Rs 64 crore, a 6.4% net return under either set of terms, which is a good check that you have kept the total fixed.
The relationshipA assets under management, Rs 1,000 crore G the gross gain, 10% of A, Rs 100 crore m0, m1 the old and new management fee rates, 2% and 1% p0, p1 the old and new performance fee rates What it says in wordsHold total revenue fixed and solve for the performance rate on the new, larger fee base.What does the swap change, even when revenue matches?
The match holds at one return only. Swapping management fee for performance fee moves risk onto the manager: less is guaranteed, more depends on the year. At a 5% gross return the old terms pay Rs 26 crore and the new ones Rs 21.6 crore; at 20% the old terms pay Rs 56 crore and the new ones Rs 64.9 crore. State the convention too: if the performance fee were charged on the gross gain instead, the old revenue is Rs 40 crore and the new rate comes to exactly 30%. Say which convention you assume before giving a number.
Where candidates lose it
The fast wrong answers are 40%, from doubling the performance fee because the management fee halved, and 30%, from adding back ten points. Both forget that the performance fee is charged on a base the management fee itself shrinks.
The second loss is giving one number without the conditions. A fee trade-off is always at an assumed return and an assumed fee base; say both and offer the sensitivity, because the interviewer's next question is what happens in a bad year.
What the interviewer asks next
- At what gross return would the manager prefer the new terms to the old?
- How does a hurdle rate of 5% change the new performance fee?
- Why might investors prefer 1 and 29 to 2 and 20 even though revenue matches at 10%?
Asked at Two Sigma, Equity Capital Markets, New York, 2026 (Wall Street Oasis):
the question was regarding how hedge funds operate, the 2/20 rule, and if one part of this equation changed
073Use Newton's method to find the square root of 2, starting from 1.5. How many correct digits do you have after each step, and why?Quant researchDesk quant
Try it first
Starting from 1.5, about how many correct digits after three Newton steps?
Show the worked solution
About 1, 3, 6 and 12 correct digits: the count roughly doubles each step. The update is x(next) = (x + 2/x)/2: 1.5 gives 17/12 = 1.41667, then 577/408 = 1.4142157, then 665857/470832 = 1.41421356237469. Each new error is about the old error squared divided by 2x, so if the error is 10^-k, the next is about 10^-2k. That is quadratic convergence.
Where does the update rule come from?
Think of guessing a side of a square room whose area is 2. If your guess is too big, 2 divided by your guess is too small, and the truth sits between the two. Newton's method for x squared minus 2 is exactly that: replace x with the average of x and 2/x. Formally, Newton follows the tangent of f(x) = x^2 - 2 down to zero, x - f(x)/f'(x) = x - (x^2 - 2)/(2x), which simplifies to (x + 2/x)/2. The averaging form is the one to use in your head.
Starting from 1.5, Newton's iterates for the square root of 2 have 1, 3, 6 and then 12 correct digits, doubling at each step because each new error is roughly the square of the old one. How do you get the iterates without a calculator?
Keep fractions. From 3/2, the next value is (3/2 + 4/3)/2 = 17/12, then (17/12 + 24/17)/2 = 577/408, and the pattern continues: if x = p/q, the next is (p^2 + 2q^2)/(2pq). 17/12 is 1.41667, already right to 1.41. 577/408 is 1.4142157 against 1.4142136, right to 1.41421. The third step's fraction, 665857/470832, is too big for mental division, but you can predict its accuracy without doing it, which is the point of the question.
The relationshipx_n the current estimate of the square root of 2 x_n - sqrt 2 the error of the current estimate 2 x_n about 2.8 near the root, so the new error is about a third of the old error squared What it says in wordsEach new error is the old error squared, divided by about 2.8, so the correct digits roughly double.Why is it the digits that double, and when does that fail?
Subtract the root from the update and the algebra collapses to (x - root 2)^2 / 2x. Squaring an error of 10^-3 gives 10^-6, so each step doubles the number of correct digits once you are close. The errors here run about 0.09, 0.0025, 2 x 10^-6 and 1.6 x 10^-12. The doubling needs a good start and a simple root: far from the root, or where the slope is zero, Newton can creep or jump away. Bisection, by contrast, gains one binary digit per step whatever happens, which is why desk code often brackets with bisection and finishes with Newton when solving for implied volatility.
Where candidates lose it
The trap is guessing linear progress, one or two digits a step, because that is how most iterative methods feel. Newton is special near a simple root, and the interviewer wants the word quadratic and the reason for it.
The second loss is getting lost in decimals. Work in fractions, 3/2, 17/12, 577/408, and state the error-squared rule instead of computing the third step.
What the interviewer asks next
- Write Newton's update for the cube root of 10, and start it from 2.
- Why does Newton converge only linearly at a double root?
- How would you use Newton's method to find an implied volatility, and what can go wrong?
085What are the last two digits of 4 raised to the power 3000?Belvedere TradingNew york · 2021
Try it first
Which ending is right?
Show the worked solution
76. Split 100 into 4 x 25. Any power of 4 is 0 mod 4. Mod 25, Euler's theorem applies because 4 and 25 share no factor, and 3000 is a multiple of phi(25) = 20, so 4^3000 is 1 mod 25. The numbers below 100 that are 1 mod 25 are 1, 26, 51 and 76, and only 76 is divisible by 4.
Why does the obvious Euler shortcut fail?
Euler's theorem says a to the power phi(n) is 1 mod n, and phi(100) = 40, so it is tempting to say 4^3000 = (4^40)^75 ends in 01. The theorem needs the base and the modulus to share no factor, and 4 and 100 share a factor of 4, so it does not apply. A quick sense check kills 01 anyway: every power of 4 is divisible by 4, and a number is divisible by 4 exactly when its last two digits are, which 01 is not.
How do you split the problem so the theorem does apply?
Think of a clock with 100 hours as two smaller clocks running together, one with 4 hours and one with 25. Knowing where both small clocks point fixes the big one exactly. Mod 4 the answer is 0, since 4^3000 is a multiple of 4; mod 25 the answer is 1, since 4 and 25 share no factor and 3000 is a multiple of phi(25) = 20. Now list the numbers below 100 that are 1 mod 25: 1, 26, 51, 76. Only 76 is a multiple of 4. This step is the Chinese remainder theorem, and naming it earns credit.
The last two digits of 4^n cycle through ten values and the tenth power ends in 76, so every multiple of 10 as an exponent, including 3000, ends in 76; splitting 100 into 4 and 25 confirms it, because 76 is the only number below 100 that is 0 mod 4 and 1 mod 25. The relationshipmod 4, mod 25 the remainders on division by 4 and by 25 phi(25) = 20 how many numbers below 25 share no factor with 25 What it says in wordsFind the remainder on each small clock, then find the one number below 100 that matches both.What is the fastest check if you have a pencil?
Just list the endings. Multiply each ending by 4 and keep the last two digits: 04, 16, 64, 56, 24, 96, 84, 36, 44, 76, and then 76 x 4 = 304, which ends in 04, so the cycle has length 10. Because 76 x 76 = 5,776 also ends in 76, every power of 76 ends in 76, and 4^3000 = (4^10)^300 must end in 76. On a multiple-choice test, this listing takes about thirty seconds and needs no theorem at all.
Where candidates lose it
The trap is applying Euler's theorem with phi(100) = 40 and answering 01. The theorem requires the base and modulus to share no factor, and 4 and 100 do share one.
The second loss is listing powers without noticing the cycle and running out of time. Say early that the endings must repeat, find the period of 10, and read the answer from 3000 being a multiple of 10.
What the interviewer asks next
- What are the last two digits of 7^2026?
- What are the last three digits of 4^3000?
- What is the remainder when 2^100 is divided by 7?
Asked at Belvedere Trading, Equities, New york, 2021 (Wall Street Oasis):
It was a 14 question multiple choice test. Some basic number theory (4^3000 modulo 100)
097How many integers from 1 to 1,000 share no common factor with 1,000 other than 1?Quant researchQuant trading
Try it first
Pick the count.
Show the worked solution
400. Since 1,000 = 2^3 x 5^3, a number shares a factor with 1,000 exactly when it is divisible by 2 or by 5. There are 500 multiples of 2 and 200 of 5, but the 100 multiples of 10 sit in both lists, so 600 numbers share a factor and 400 do not. Euler's formula agrees: 1,000 x 1/2 x 4/5 = 400.
Which numbers share a factor with 1,000?
Picture a hall of 1,000 people where everyone wearing a red badge or a blue badge is asked to leave. To count who stays, you need the red-badge count, the blue-badge count, and how many wear both, because they would otherwise be counted out twice. Write 1,000 as 2^3 x 5^3: a number shares a factor with it exactly when it is divisible by 2 or by 5, so only two badges matter, and the powers 3 do not add any new conditions. Every multiple of 4 or 8 is already a multiple of 2, and every multiple of 25 or 125 is already a multiple of 5.
Of the numbers 1 to 1,000, 500 are multiples of 2 and 200 are multiples of 5, with 100 multiples of 10 in both, so 600 share a factor with 1,000 and 400 lie outside both circles; Euler's product 1,000 x 1/2 x 4/5 gives the same 400. The relationshipphi(1000) Euler's totient: how many of 1 to 1,000 share no factor with 1,000 1000/2, 1000/5 the counts of multiples of 2 and of 5 1000/10 the multiples of both, added back once What it says in wordsRemove the multiples of each prime, add back the multiples of both, and you get the same answer as multiplying by the share that survives each prime.Why does the quick product formula work here?
Half of all numbers are odd, and among those, four in five are not multiples of 5. Because 1,000 is a multiple of 10, the numbers 1 to 1,000 contain exactly 100 full blocks of ten, and in each block exactly 4 numbers, 1, 3, 7 and 9, survive both tests, so 100 x 4 = 400. The strip of 1 to 20 in the figure shows the pattern repeating, 8 survivors in 20. The product is exact only when the range is a whole number of such blocks: for 1 to 1,234 it gives 493.6, while a direct count gives 494.
Where does a question like this lead in an interview?
Usually to powers and remainders. Euler's theorem says a number coprime to n, raised to the power phi(n), leaves remainder 1 when divided by n, and that is the engine behind last-digit puzzles: phi(100) = 40, so 3^40 ends in 01 and so does 3^400. It also leads to probability: the chance that two large random integers share no factor tends to 6/pi^2, about 0.608. The habit the question tests is factorising first: once you see only the primes 2 and 5 matter, a counting question becomes a two-circle Venn diagram.
Where candidates lose it
The usual slip is 1,000 - 500 - 200 = 300, subtracting both lists and forgetting that the multiples of 10 were removed twice. Add them back once and the answer is 400.
The second loss is treating each prime power as a new condition, subtracting multiples of 4, 8, 25 and 125 as well. Every multiple of 4 is already a multiple of 2; only the distinct primes matter.
What the interviewer asks next
- How many integers from 1 to 1,000 share no factor with 360?
- What are the last two digits of 3^400?
- What is the probability that two randomly chosen integers share no common factor?
