What is the angle between the hour and minute hands of a clock at 3:15?
Show answer
Answer:7.5∘
The minute hand is at 90∘. The hour hand has moved a quarter of the way from 3 to 4: 90∘+41⋅30∘=97.5∘. Difference 7.5∘.
2MediumType asked atJane StreetSIGDRW
How many times do the hour and minute hands of a clock overlap in 12 hours?
Show answer
Answer:11
The minute hand gains one full lap on the hour hand every 1112 hours, so it laps it 11 times in 12 hours.
3MediumType asked atJane StreetSIGDRW
100 lockers start closed. On pass k (k=1,…,100) you toggle every k-th locker. How many are open at the end?
Show answer
Answer:10
Locker n is toggled once per divisor of n. It ends open iff it has an odd number of divisors, i.e. n is a perfect square: 1,4,…,100, ten lockers.
4EasyType asked atJane StreetSIGDRW
How many trailing zeros does 100! have?
Show answer
Answer:24
Count factors of 5: ⌊100/5⌋+⌊100/25⌋=20+4=24.
5HardType asked atJane StreetSIGDRW
25 horses, a track that races 5 at a time, no stopwatch. What is the minimum number of races needed to find the three fastest?
Show answer
Answer:7
Five heats, then a race of the five winners. Only five horses can still be in the top three: the second and third of the winners' race, the second and third from the overall winner's heat, and the second from the runner-up's heat. A seventh race among those five settles 2nd and 3rd.
6HardType asked atJane StreetSIGDRW
With two identical eggs and a 100-storey building, what is the minimum number of drops that guarantees finding the highest safe floor?
Show answer
Answer:14
With d drops you can cover d+(d−1)+⋯+1=2d(d+1) floors. The smallest d with 2d(d+1)≥100 is 14: drop from 14, 27, 39, ….
7HardType asked atJane StreetSIGDRW
12 coins, one counterfeit that is either heavier or lighter (unknown). With a balance scale, what is the minimum number of weighings to find it and say whether it is heavy or light?
Show answer
Answer:3
There are 24 possibilities and each weighing has 3 outcomes, so at least 3 are needed (33=27≥24), and a careful 4-4-4 scheme achieves it.
8EasyType asked atJane StreetSIGDRW
10 people each shake hands once with every other person. How many handshakes?
Show answer
Answer:45
(210)=45.
9MediumType asked atJane StreetSIGDRW
How many squares of all sizes are there on a standard 8×8 chessboard?
Show answer
Answer:204
There are (9−k)2 squares of side k: ∑k=18k2=204.
10MediumType asked atJane StreetSIGDRW
How many rectangles of all sizes (including squares) are there on an 8×8 chessboard?
Show answer
Answer:1296
Choose 2 of the 9 horizontal lines and 2 of the 9 vertical lines: (29)2=362=1296.
11EasyType asked atJane StreetSIGDRW
What is 1+2+⋯+100?
Show answer
Answer:5050
Pair 1+100,2+99,…: 50 pairs of 101.
12MediumType asked atJane StreetSIGDRW
What is the last digit of 72026?
Show answer
Answer:9
Last digits of powers of 7 cycle 7,9,3,1. 2026≡2(mod4), so the last digit is 9.
13EasyType asked atJane StreetSIGDRW
A bat and a ball cost £1.10 together. The bat costs £1 more than the ball. How much is the ball, in pence?
Show answer
Answer:5p
b+(b+1)=1.10 gives b=0.05. The intuitive answer, 10p, would make the bat £1.10.
14EasyType asked atJane StreetSIGDRW
A patch of lilies doubles in size every day and covers a lake on day 48. On which day did it cover half the lake?
Show answer
Answer: Day 47
It doubles to full on the last day, so it was half the day before.
15MediumType asked atJane StreetSIGDRW
How many distinct arrangements are there of the letters of MISSISSIPPI?
Show answer
Answer:34,650
4!4!2!11!=34,650 (I, S four times each; P twice).
16EasyType asked atJane StreetSIGDRW
How many diagonals does a regular decagon have?
Show answer
Answer:35
2n(n−3)=210⋅7=35.
17MediumType asked atJane StreetSIGDRW
One of 1000 bottles is poisoned. Test strips show a result only after a day, and you have one day. What is the minimum number of strips?
Show answer
Answer:10
Label bottles in binary with 10 bits (210=1024≥1000). Strip i tastes every bottle whose bit i is 1. The pattern of positive strips spells the poisoned bottle's number.
18MediumType asked atJane StreetSIGDRW
100 ants are placed on a 1-metre stick, each walking left or right at 1 m/min. When two meet, both reverse. What is the longest time until every ant has fallen off?
Show answer
Answer:1 minute
Swapping labels, a collision is the same as the ants passing through each other. So each "ant" just walks straight off, taking at most 1 minute.
19EasyType asked atJane StreetSIGDRW
Two trains 100 miles apart approach each other at 50 mph each. A fly flies back and forth between them at 75 mph until they meet. How far does it fly, in miles?
Show answer
Answer:75
They meet after 1 hour; the fly flies for 1 hour at 75 mph. No series needed.
20MediumType asked atJane StreetSIGDRW
Writing out the integers from 1 to 100, how many times do you write the digit 7?
Show answer
Answer:20
Ten times in the units place (7, 17, …, 97) and ten in the tens place (70–79).
21MediumType asked atJane StreetSIGDRW
Three boxes are labelled Apples, Oranges and Mixed, and every label is wrong. What is the fewest fruits you must draw (from boxes of your choice) to relabel all three correctly?
Show answer
Answer:1
Draw from the box labelled Mixed. It must be all one fruit, say apples. Then the box labelled Oranges cannot be oranges or apples, so it is Mixed, and the last box is Oranges.
22EasyType asked atJane StreetSIGDRW
A drawer holds 10 black and 10 white socks. In the dark, how many must you take to be sure of a matching pair?
Show answer
Answer:3
Pigeonhole: with two colours, any three socks include two of the same colour.
23EasyType asked atJane StreetSIGDRW
How many cards must you draw from a standard deck to be sure of two of the same suit?
Show answer
Answer:5
Four could all differ; the fifth must repeat a suit.
24EasyType asked atJane StreetSIGDRW
How many people must be in a room to guarantee two share a birth month?
Show answer
Answer:13
12 months, so 13 people force a repeat.
25EasyType asked atJane StreetSIGDRW
How many 1s are in the binary representation of 255?
Show answer
Answer:8
255=28−1=111111112.
26EasyType asked atJane StreetSIGDRW
What is the sum of the interior angles of a hexagon, in degrees?
Show answer
Answer:720∘
(n−2)⋅180∘=4⋅180∘.
27EasyType asked atJane StreetSIGDRW
How many zeros does 210⋅58 end in?
Show answer
Answer:8
21058=22⋅108=4⋅108.
28MediumType asked atJane StreetSIGDRW
A 3×3×3 cube is painted on the outside and cut into 27 unit cubes. How many have exactly two painted faces?
Show answer
Answer:12
Exactly-two means the middle of an edge: one per edge, 12 edges.
29MediumType asked atJane StreetSIGDRW
A 4×4×4 painted cube is cut into 64 unit cubes. How many have no paint?
Show answer
Answer:8
The unpainted core is 2×2×2.
30HardType asked atJane StreetSIGDRW
100 prisoners stand in a line, each seeing everyone in front. Each gets a black or white hat and, from the back, calls a colour. With the best agreed strategy, how many are guaranteed to survive?
Show answer
Answer:99
The last prisoner calls the parity of the black hats in front (their own survival is a coin toss). Every other prisoner can then deduce their own hat from that parity and the calls behind them.
31MediumType asked atJane StreetSIGDRW
In how many ways can you climb 10 stairs taking 1 or 2 steps at a time?
Show answer
Answer:89
f(n)=f(n−1)+f(n−2) with f(1)=1,f(2)=2: Fibonacci, giving f(10)=89.
32EasyType asked atJane StreetSIGDRW
What is 1+2+4+⋯+29?
Show answer
Answer:1023
A geometric series: 210−1.
33MediumType asked atJane StreetSIGDRW
How many shortest lattice paths go from one corner of a 4×4 grid of squares to the opposite corner?
Show answer
Answer:70
Any shortest path is 4 rights and 4 ups in some order: (48)=70.
34EasyType asked atJane StreetSIGDRW
A single-elimination tournament has 64 players. How many matches are played?
Show answer
Answer:63
Every match eliminates exactly one player, and 63 must be eliminated.
35EasyType asked atJane StreetSIGDRW
A snail climbs 3 m up a 10 m well each day and slips back 2 m each night. On which day does it get out?
Show answer
Answer: Day 8
After 7 days and nights it is at 7 m; on day 8 it climbs the last 3 m before it can slip.
36HardType asked atJane StreetSIGDRW
100 people stand in a circle, numbered 1 to 100. Starting with 2, every second person still standing is removed, going round and round. Which position survives?
Show answer
Answer:73
For the Josephus problem with every second person removed, write n=2m+ℓ; the survivor is 2ℓ+1. Here 100=64+36, so 2(36)+1=73.
37MediumType asked atJane StreetSIGDRW
Nine balls look identical but one is heavier. With a balance scale, what is the minimum number of weighings that always finds it?
Show answer
Answer:2
Weigh 3 against 3. The heavy ball is in the heavier group, or in the third group if they balance. One more weighing of 1 against 1 settles it.
38EasyType asked atJane StreetSIGDRW
How many zeros does 50! end in?
Show answer
Answer:12
Count factors of 5: ⌊50/5⌋+⌊50/25⌋=10+2.
39EasyType asked atJane StreetSIGDRW
What is the angle between the hands of a clock at 9:30, in degrees?
Show answer
Answer:105∘
The minute hand is at 180∘; the hour hand is halfway between 9 and 10, at 285∘. The difference is 105∘.
40MediumType asked atJane StreetSIGDRW
Using only 3p and 5p coins, what is the largest amount, in pence, that cannot be paid exactly?
Show answer
Answer:7
For coprime a and b the largest unreachable amount is ab−a−b=15−8=7. Every amount from 8 upwards can be made.
41MediumType asked atJane StreetSIGDRW
A revolver has six chambers arranged in a circle. Two bullets are loaded into adjacent chambers, the cylinder is spun, and the trigger is pulled on you: it clicks on an empty chamber. It is your turn again. What is your probability of surviving if you pull the trigger without spinning again?
Show answer
Answer:43 — do not spin
The four empty chambers form a block, and you are on one of them. The next chamber is loaded only if you are on the last empty chamber before the bullets, which is 1 case in 4. So not spinning survives with probability 43, while spinning survives with 64=32. The click told you something about where you are in the cylinder, and spinning throws that away.
42EasyType asked atJane StreetSIGDRW
What is the sum of the digits of 210?
Show answer
Answer:7
210=1024 and 1+0+2+4=7.
43MediumType asked atJane StreetSIGDRW
How many triangles with integer side lengths have perimeter 12?
Show answer
Answer:3
Up to order: (2,5,5), (3,4,5) and (4,4,4). Others such as (2,4,6) and (1,5,6) fail the triangle inequality.
44HardType asked atJane StreetSIGDRW
A room is 30 ft long with square end walls 12 ft by 12 ft. A spider sits on one end wall, 1 ft below the ceiling and centred; a fly sits on the opposite end wall, 1 ft above the floor and centred. The fly does not move and the spider must walk. How long, in feet, is the shortest path?
Show answer
Answer:40 ft
Unfold the room into a flat net and the shortest walk becomes a straight line. The naive route — straight down the wall, along the floor, up the far wall — measures 11+30+1=42. But a net that crosses one end wall, a side wall, the ceiling, the other side wall and the far end wall lays the two points out at a horizontal separation of 40 and a vertical separation of 0, giving exactly 40. The lesson is that "shortest path on a surface" is a geodesic, and you find it by flattening, not by guessing which faces to use.
45MediumType asked atJane StreetSIGDRW
Two ropes each burn through in exactly 60 minutes, but neither burns at a uniform rate along its length. With nothing but the ropes and matches, how many minutes is the longest interval you can measure that is not a whole hour — specifically, what interval do you get by lighting the first rope at both ends and the second at one end simultaneously?
Show answer
Answer:45 minutes
Lighting a rope at both ends consumes it in 30 minutes whatever the burn profile, because the two flames together always finish the whole rope. When the first rope is gone, 30 minutes have passed and the second rope has 30 minutes of burn left in it. Light its other end now and it finishes in 15 more. Total 45. The trick is that "both ends" halves the time without needing to know anything about where the rope burns fast.
46HardType asked atJane StreetSIGDRW
Four people must cross a bridge at night with one torch. The bridge holds at most two at a time, and anyone crossing must carry the torch; a pair moves at the slower person's pace. Their crossing times are 1, 2, 5 and 10 minutes. What is the least total time?
Show answer
Answer:17 minutes
The greedy route — the fastest person ferries everyone — costs 2+1+5+1+10=19. Better to send the two slowest together so their times overlap. Send 1 and 2 across (2), return 1 (1), send 5 and 10 together (10), return 2 (2), send 1 and 2 (2): total 17. Pairing the two slow walkers means you pay 10 once instead of 10 and 5 separately.
47MediumType asked atJane StreetSIGDRW
Two opposite corners are cut from an 8 by 8 chessboard, leaving 62 squares. How many dominoes, each covering two adjacent squares, can be placed without overlap or overhang?
Show answer
Answer:30
Opposite corners share a colour, so removing them leaves 32 of one colour and 30 of the other. Every domino covers one square of each colour, so a full cover of 31 dominoes would need 31 of each. It is impossible. The most you can place is 30, leaving two same-coloured squares uncovered. Counting an invariant — here the colour balance — settles the question without trying a single arrangement.
48HardType asked atJane StreetSIGDRW
Five married couples attend a party. Everyone shakes hands with some of the others, but nobody shakes their own spouse's hand and nobody shakes the same person twice. The host asks the other nine people how many hands they shook and receives nine different answers. How many hands did the host's wife shake?
Show answer
Answer:4
Nine different answers drawn from {0,1,…,8} must be exactly those nine numbers. The person who shook 8 met everyone but their spouse, so their spouse is the 0. Remove that pair: in the remaining party of eight everyone has shaken one fewer of the people still present, and the same argument pairs 7 with 1, then 6 with 2, then 5 with 3. The pairs are (8,0),(7,1),(6,2),(5,3), leaving 4 unpaired — and the only person not asked is the host, so 4 is the host's wife. She shook 4 hands.
49MediumType asked atJane StreetSIGDRW
There are 10 stacks of 10 coins. Every coin weighs 10 g except those in one stack, which weigh 11 g each. With a digital scale that reads exact weight, what is the minimum number of weighings needed to identify the heavy stack?
Show answer
Answer:1
Take 1 coin from the first stack, 2 from the second, and so on to 10 from the tenth: 55 coins, which would weigh 550 g if all were honest. Weigh the lot at once. The excess in grams names the stack — 3 g over means stack 3. One weighing suffices because a digital scale returns a number, not a comparison, and you have encoded the answer into the sample.
50MediumType asked atJane StreetSIGDRW
You have a 3-litre jug and a 5-litre jug, no markings, and a tap. What is the fewest number of pourings — counting each fill, empty or transfer as one — needed to measure exactly 4 litres?
Show answer
Answer:6
Fill the 5 (1), pour into the 3 leaving 2 in the big jug (2), empty the 3 (3), move the 2 across (4), fill the 5 again (5), top up the 3 — which takes just 1 litre — leaving 4 in the 5-litre jug (6). Every reachable amount is a combination 3a+5b, and since 3 and 5 are coprime every whole number of litres up to 5 is reachable; the puzzle is only ever about the route.
51HardType asked atJane StreetSIGDRW
A camel must carry 3000 bananas to a market 1000 km away. It can carry at most 1000 bananas at a time and eats 1 banana per kilometre travelled, in either direction. What is the largest number of bananas that can reach the market?
Show answer
Answer:533
While more than 2000 bananas remain, moving the stock forward costs 5 bananas per km (three trips out, two back). Run that for 200 km: 3000−1000=2000 bananas at the 200 km mark. Now two loads remain, costing 3 per km. Run for 333 km: 2000−999=1001, and drop 1 to make it a single load of 1000 at 533 km. The last 467 km costs 1 per km, delivering 1000−467=533. The structure is that the cost per kilometre drops each time the stock falls below a multiple of the carrying capacity.
52MediumType asked atJane StreetSIGDRW
A monk climbs a mountain, starting at 6 a.m. and arriving at dusk. He sleeps at the summit and descends the next day on the same path, again starting at 6 a.m. His pace varies freely on both days, and he may rest. How many points on the path does he occupy at the same clock time on both days?
Show answer
Answer: At least 1
Imagine the ascent and the descent happening on the same day, as two monks starting at opposite ends of the path at 6 a.m. They are on the same path moving towards each other, so they must meet. Formally, the difference between the two position functions is continuous, negative at 6 a.m. and positive at dusk, so it vanishes somewhere: the intermediate value theorem. No information about pace is needed, and none is available.
53MediumType asked atJane StreetSIGDRW
One coin is rolled without slipping all the way around the rim of a second, identical, fixed coin until it returns to its starting point. How many complete rotations does the moving coin make about its own centre?
Show answer
Answer:2
Its centre travels a circle of radius 2r, of circumference 4πr, while the coin's own circumference is 2πr — suggesting one rotation, which is the trap. Rolling contributes one turn, but the centre also revolves once around the fixed coin, and in a fixed frame those add: the answer is 2. This is the coin rotation paradox, and it is the same bookkeeping that makes a sidereal day differ from a solar one.
54MediumType asked atJane StreetSIGDRW
Three switches outside a sealed room control three bulbs inside it. You may set the switches however you like, but you may enter the room only once. What is the largest number of bulbs you can correctly identify?
Show answer
Answer: All 3
Turn switch A on for ten minutes, then off. Turn B on and go in. The lit bulb is B, the dark but warm bulb is A, and the dark cold bulb is C. The puzzle is only hard while you assume the bulb carries one bit — on or off. Heat is a second channel, and two channels distinguish three states.
55HardType asked atJane StreetSIGDRW
Five pirates, ranked strictly by seniority, divide 100 gold coins. The most senior proposes a split; all pirates including the proposer vote; if at least half approve, it stands, otherwise the proposer is thrown overboard and the next most senior proposes. Every pirate prefers gold, then survival above all, and prefers to throw others overboard when indifferent — in that priority: survival first, then gold, then bloodshed. How many coins does the most senior pirate keep?
Show answer
Answer:98
Work backwards. With two left, the senior takes all 100, since his own vote is half. With three, the junior-most knows he gets 0 in the two-pirate case, so 1 coin buys him: 99,0,1. With four, the proposer needs one more vote and buys the pirate who would get 0 in the three-case: 99,0,1,0. With five, he needs two more votes, and buys the two who get 0 under the four-pirate split: 98,0,1,0,1. The senior keeps 98. Backward induction, and the fact that a pirate's price is exactly one coin more than his fallback.
56MediumType asked atJane StreetSIGDRW
Two players alternately place identical round coins on a rectangular table, no overlapping and no overhang, and the player unable to move loses. With optimal play, does the first or second player win — and if the first, what is his opening move's position expressed as the number of coins he places in the exact centre?
Show answer
Answer: The first player wins; he opens with 1 coin dead centre.
Place the first coin exactly at the centre, then mirror every opponent move through the centre point. The table is symmetric about its centre, so if the opponent's move was legal, the reflected square is free and the reply is legal too. The first player therefore always has a move and cannot be the one who runs out. Strategy stealing by symmetry: the opening move destroys the symmetry that would otherwise favour the second player.
57MediumType asked atJane StreetSIGDRW
Five points are placed anywhere inside a square of side 1. What is the largest distance d such that two of the points are guaranteed to be within d of each other? Give d2 as a fraction.
Show answer
Answer:d=22, so d2=21
Cut the square into four quarters of side 21. With five points and four quarters, some quarter holds two of them, and two points in a square of side 21 are at most its diagonal 22 apart. So d=22≈0.707 and d2=21. The bound is tight: four points at the corners and one at the centre sit exactly that far apart.
58HardType asked atJane StreetSIGDRW
An ant starts at one end of a rubber band 1 m long and crawls at 1 cm per second. At the end of every second the band is instantaneously and uniformly stretched by a further 1 m. Does the ant ever reach the far end — and if so, is the number of seconds finite? Answer 1 for yes, 0 for no.
Show answer
Answer:1 — yes, it arrives
Track the fraction of the band behind the ant rather than its distance, because stretching carries the ant along and leaves that fraction unchanged. In second n the band is n metres long and the ant adds 100n1 of it. The total progress after N seconds is 1001∑n=1Nn1, a harmonic sum, which diverges. So the fraction reaches 1 and the ant arrives — after about e100 seconds, a time beyond absurd, but finite. Divergence of the harmonic series is doing all the work.
59MediumType asked atJane StreetSIGDRW
A solid 3 by 3 by 3 cube is to be cut into 27 unit cubes. Cuts are straight planes, and after each cut the pieces may be rearranged freely. What is the minimum number of cuts?
Show answer
Answer:6
Rearranging cannot help. Consider the central unit cube: it has six faces, none on the surface of the original block, and each of those faces must be produced by a distinct cut, since one plane cut can create only one of them. So at least 6 cuts are needed, and 6 obviously suffice — two in each direction. The invariant is the innermost cube, and it caps the answer regardless of how cleverly you stack the pieces.
60HardType asked atJane StreetSIGDRW
A census taker is told the product of the ages of three children is 36 and their sum equals the number on the gate. He looks at the gate and says he still cannot tell. He is then told the eldest plays the piano. What is the age of the eldest?
Show answer
Answer:9
Triples with product 36 and their sums: (1,1,36)=38, (1,2,18)=21, (1,3,12)=16, (1,4,9)=14, (1,6,6)=13, (2,2,9)=13, (2,3,6)=11, (3,3,4)=10. Only the sum 13 is ambiguous, so the gate reads 13. "The eldest" implies a unique oldest child, ruling out (1,6,6) and leaving (2,2,9). The eldest is 9. The census taker's failure is itself the decisive piece of information.
61MediumType asked atJane StreetSIGDRW
Using a two-pan balance and weights you choose, weights may be placed in either pan. What is the smallest number of weights that can measure every whole number of grams from 1 to 40?
Show answer
Answer:4
Use 1, 3, 9 and 27. Allowing a weight in either pan or neither gives each one three roles — +1, −1, 0 — so four weights express every integer in balanced ternary from −40 to 40. For instance 5 is 9−3−1, meaning 9 in one pan against the object plus 3 and 1 in the other. Powers of 3, not 2, because the second pan gives you subtraction for free.
62MediumType asked atJane StreetSIGDRW
A car travels from A to B at 30 mph and returns along the same road at 60 mph. What is its average speed for the round trip, in mph?
Show answer
Answer:40
Not 45. Average speed is total distance over total time, and the slow leg occupies twice the hours of the fast one, so it dominates. For distance d each way the time is 30d+60d=20d for 2d miles, giving 40 mph — the harmonic mean of 30 and 60. Whenever equal distances are travelled at different speeds, the harmonic mean is the right average.
63HardType asked atJane StreetSIGDRW
On an island live 13 grey, 15 brown and 17 crimson chameleons. Whenever two of different colours meet, both change to the third colour. Can they all become one colour? Answer 1 for yes, 0 for no.
Show answer
Answer:0 — impossible
Look at the counts modulo 3. They start at 13,15,17≡1,0,2 — all three residues distinct. A meeting reduces two counts by 1 and raises the third by 2, which shifts every count by the same amount modulo 3, so the differences between counts are invariant mod 3. Ending in one colour means counts 45,0,0, whose residues are 0,0,0 — all equal. Distinct residues can never become equal, so it cannot happen. Almost every "can this state be reached" puzzle is an invariant in disguise.
64MediumType asked atJane StreetSIGDRW
In a 3 by 3 magic square using 1 to 9 exactly once, with every row, column and both diagonals summing alike, what number must occupy the centre?
Show answer
Answer:5
The nine numbers total 45, so each line sums to 15. Add the four lines through the centre — two diagonals, the middle row, the middle column: they cover every cell once except the centre, which they cover four times. So 4×15=45+3c, giving c=5. The centre is forced before you place a single other number.
65HardType asked atJane StreetSIGDRW
Two players take turns removing 1, 2 or 3 matches from a pile of 21, and whoever takes the last match wins. The first player moves first. How many matches should he take to guarantee a win?
Show answer
Answer:1
Positions that are multiples of 4 are losing for whoever faces them: whatever you take, your opponent restores the multiple. 21 is not a multiple of 4, so take 1 to leave 20, then always take 4−k when your opponent takes k. You hand over 16, 12, 8, 4 and finally 0. Every subtraction game of this shape reduces to arithmetic modulo one more than the largest legal move.
66MediumType asked atJane StreetSIGDRW
You reach a fork where one road leads to the city and the other to certain doom. Two guards stand there: one always lies, one always tells the truth, and you cannot tell which is which. You may ask exactly one yes-or-no question to one guard. How many questions of that kind are needed — and what is the least number of guards you must address?
Show answer
Answer:1 question, to 1 guard
Ask either guard: "If I asked the other guard whether the left road leads to the city, would he say yes?" Both guards give the same answer, and it is the opposite of the truth — the liar lies about the truth-teller's honest answer, and the truth-teller reports the liar's lie faithfully. So take the road the answer denies. Routing the question through both guards makes exactly one lie enter the chain whichever guard you ask, which is what removes your ignorance of who is who.
67MediumType asked atJane StreetSIGDRW
A bookworm bores in a straight line from the front cover of volume 1 to the back cover of volume 3 of a three-volume set standing in order on a shelf. Each volume's pages are 4 cm thick and each cover is 0.5 cm. How many centimetres does it bore through?
Show answer
Answer:6 cm
Books on a shelf face left to right, so volume 1's front cover is on the *right* of that volume — adjacent to volume 2. Likewise volume 3's back cover faces left. The worm therefore passes only volume 1's front cover (0.5), all of volume 2 (0.5 + 4 + 0.5), and volume 3's back cover (0.5), totalling 0.5+5+0.5=6 cm. Reading the shelf correctly rather than the volumes is the whole puzzle.
68MediumType asked atJane StreetSIGDRW
How many distinct ways can a 2 by 10 rectangle be tiled by 2 by 1 dominoes?
Show answer
Answer:89
Let f(n) count tilings of a 2 by n strip. The leftmost column is covered either by one vertical domino, leaving f(n−1), or by two horizontal ones stacked, leaving f(n−2). So f(n)=f(n−1)+f(n−2) with f(1)=1, f(2)=2: the Fibonacci numbers. f(10)=89. The recursion comes from asking only what happens at the edge, which is the standard way into almost every tiling count.
69MediumType asked atJane StreetSIGDRW
What is the smallest number of colours needed to colour the faces of a cube so that no two faces sharing an edge have the same colour?
Show answer
Answer:3
Two is impossible: any face touches four others, which between them touch each other. Three works — give each pair of opposite faces its own colour, and since opposite faces never share an edge, no conflict arises. So 3. The graph of a cube's faces is the octahedron's vertex graph, and its chromatic number is 3.
70MediumType asked atJane StreetSIGDRW
What is the sum of all the digits written when listing the integers from 1 to 100?
Show answer
Answer:901
Treat 1 to 99 as two-digit strings 00 to 99. Each of the digits 0 to 9 appears ten times in the units place and ten times in the tens place, so each place contributes 10×45=450, giving 900. The number 100 adds 1. Total 901.
71MediumType asked atJane StreetSIGDRW
What is the smallest positive integer that leaves remainder 1 when divided by each of 2, 3, 4, 5 and 6, and is divisible by 7?
Show answer
Answer:301
Remainder 1 by each of 2 to 6 means n−1 is a multiple of lcm(2,3,4,5,6)=60, so n=60k+1. Modulo 7, 60≡4, so we need 4k+1≡0, i.e. k≡5(mod7). The smallest is k=5, n=301.
72MediumType asked atJane StreetSIGDRW
In one full day of 24 hours, how many times are the hour and minute hands of a clock exactly at right angles?
Show answer
Answer:44
The minute hand gains 5.5∘ a minute on the hour hand, so the angle between them sweeps through 360∘ 22 times in 24 hours. Each sweep passes through 90∘ once and 270∘ once, giving 44. The guess of 48, two per hour, fails because the hands do not complete a relative lap every hour.
73MediumType asked atJane StreetSIGDRW
How many positive integers less than 1000 have only odd digits?
Show answer
Answer:155
Each digit has 5 odd choices. One-digit: 5. Two-digit: 25. Three-digit: 125. Total 155. Leading zeros cannot sneak in, because 0 is even.
74EasyType asked atJane StreetSIGDRW
What is 1⋅21+2⋅31+3⋅41+⋯+99⋅1001?
Show answer
Answer:10099
n(n+1)1=n1−n+11, so the sum telescopes to 1−1001.
75HardType asked atJane StreetSIGDRW
Six points are placed on a circle so that no three of the chords joining them meet at a single interior point. All 15 chords are drawn. Into how many regions is the disc divided?
Show answer
Answer:31
With 1 to 5 points you get 1, 2, 4, 8, 16 regions, and 6 points break the pattern with 31. Count by Euler's formula, or directly: every interior crossing comes from choosing 4 of the points ((46)=15), and each chord and each crossing adds a region, so the count is 1+(26)+(46)=1+15+15=31. The puzzle is a standard warning against trusting a pattern from its first five terms.
76MediumType asked atJane StreetSIGDRW
What is the largest number of pieces a flat pizza can be cut into with 7 straight cuts, if the pieces may not be moved between cuts?
Show answer
Answer:29
The k-th cut can cross each of the previous k−1 cuts once, passing through k existing pieces and splitting each in two. So it adds k pieces, and n cuts give 1+(1+2+⋯+n)=1+2n(n+1). For n=7, 29.
77HardType asked atJane StreetSIGDRW
An island has 100 perfect logicians with blue eyes and no mirrors. Nobody knows their own eye colour, and anyone who works out that they have blue eyes must leave that night. A visitor announces to everyone: "At least one of you has blue eyes." On which night do the blue-eyed islanders leave?
Show answer
Answer: Night 100
Induct on the number n of blue-eyed people. With n=1, that person sees no blue eyes, knows it must be them, and leaves on night 1. With n=2, each sees one blue-eyed person and waits; when nobody leaves on night 1, each concludes there must be a second, namely themselves, and both leave on night 2. In general all n leave on night n. The visitor told everyone something they already knew, but made it common knowledge, and that is what starts the count.
78MediumType asked atJane StreetSIGDRW
You have a glass of wine and a glass of water, equal volumes. You move a spoonful of wine into the water and stir, then move a spoonful of the mixture back into the wine. Is there more wine in the water, or more water in the wine? Give the difference.
Show answer
Answer:0 — they are equal
Each glass ends with the volume it started with. Whatever wine is missing from the wine glass has been replaced by exactly that volume of water, and that missing wine is now in the water glass. So the two amounts are equal, however much you stirred.
79HardType asked atJane StreetSIGDRW
A 5×5 square array of dots is drawn with unit spacing. How many squares have all four corners on dots, counting squares tilted at any angle?
Show answer
Answer:50
Every square sits inside an axis-aligned bounding square of side b (from 1 to 4). A bounding square of side b contains exactly b inscribed squares with corners on its edges, including itself. It can be placed in (5−b)2 positions. So the total is ∑b=14b(5−b)2=16+18+12+4=50. Counting only upright squares gives 30; the tilted ones are the 20 people miss.
80EasyType asked atJane StreetSIGDRW
A brick weighs 1 kg plus half a brick. How much does the brick weigh?
Show answer
Answer:2 kg
b=1+2b, so 2b=1 and b=2. The fast wrong answer, 1.5 kg, treats "half a brick" as half a kilogram.
81HardType asked atJane StreetSIGDRW
Five sailors gather a pile of coconuts. During the night each sailor in turn wakes, divides the pile into five equal shares with one coconut left over, gives that one to a monkey, hides one share, and pushes the rest back together. In the morning the remaining pile divides into five equal shares with none left over. What is the smallest possible original number of coconuts?
Show answer
Answer:3121
Add four phantom coconuts. With n+4 in the pile, each night's step (remove one, take a fifth, keep four fifths) becomes exactly "take four fifths of the pile", because n−1−5n−1=54(n+4)−4. After five nights the pile holds (54)5(n+4)−4, and the morning division needs this to be a multiple of 5. So n+4 must be a multiple of 55=3125. The smallest is n=3121, and checking forwards confirms it: 3121, 2496, 1996, 1596, 1276, 1020 in the morning, which is 5×204.
82HardType asked atJane StreetSIGDRW
In Nim with three piles of 3, 4 and 5 counters, players alternately remove any positive number of counters from one pile, and whoever takes the last counter wins. How many winning first moves are there?
Show answer
Answer:1 — take 2 from the pile of 3
A position is lost for the player to move exactly when the binary XOR of the piles is 0. Here 3⊕4⊕5=2, so the first player can win by moving to XOR 0. Changing pile x to x⊕2 requires x⊕2<x: that holds for 3 (giving 1) but not for 4 (giving 6) or 5 (giving 7). So the only winning move is to reduce the 3-pile to 1.
83EasyType asked atJane StreetSIGDRW
How many three-digit numbers are palindromes (read the same forwards and backwards)?
Show answer
Answer:90
A three-digit palindrome aba is fixed by its first digit (1 to 9) and middle digit (0 to 9): 9×10=90.
84HardType asked atJane StreetSIGDRW
100 coins lie on a table, exactly 10 of them heads up. You are blindfolded and cannot feel which side is up, but you may move and flip coins. You must split them into two groups with the same number of heads. How many coins should go in the group you then flip over?
Show answer
Answer:10
Take any 10 coins and flip every one of them. If that group held h heads, it now holds 10−h. The other 90 coins hold the remaining 10−h heads. The two groups match whatever h was.
85HardType asked atJane StreetSIGDRW
You have three identical eggs and a 100-storey building. What is the smallest number of drops that guarantees finding the highest floor from which an egg survives?
Show answer
Answer:9
With d drops and e eggs you can cover ∑k=1e(kd) floors, since each drop either breaks an egg (one fewer egg, one fewer drop) or not (one fewer drop). With three eggs: d=8 covers 8+28+56=92 floors, too few; d=9 covers 9+36+84=129. So 9. With two eggs the same formula gives the familiar 14.
86MediumType asked atJane StreetSIGDRW
What is the smallest number of moves a knight needs to go from one corner of a chessboard (a1) to the opposite corner (h8)?
Show answer
Answer:6
The corners are 7 files and 7 ranks apart, 14 in total, and a knight move covers at most 3 of that, so at least 5 moves. But every knight move changes the colour of the square, and a1 and h8 are the same colour, so the number of moves is even: at least 6. Six is enough: a1–b3–c5–d7–f8–g6–h8.
87MediumType asked atJane StreetSIGDRW
What is the sum of all positive integers below 1000 that are multiples of 3 or of 5?
Show answer
Answer:233,168
Inclusion and exclusion with arithmetic series: multiples of 3 below 1000 sum to 3⋅2333⋅334=166,833, multiples of 5 to 5⋅2199⋅200=99,500, and multiples of 15, counted twice, to 15⋅266⋅67=33,165. Total 233,168.
88MediumType asked atJane StreetSIGDRW
In how many ways can you make £1 using only 50p, 20p and 10p coins?
Show answer
Answer:10
Fix the number of 50p coins. None: 20b+10c=100 gives b=0,…,5, six ways. One: 20b+10c=50 gives three ways. Two: one way. Total 10. Fixing the largest coin first keeps the count honest.
89HardType asked atJane StreetSIGDRW
What is the largest number of pieces a solid cake can be cut into with 5 straight plane cuts, pieces not being moved between cuts?
Show answer
Answer:26
The k-th cut is a plane, and the earlier cuts divide that plane into at most as many regions as k−1 lines divide a plane: 1+2(k−1)k. Each region splits one piece in two. Adding up: 1+∑k=15(1+2k(k−1))=(05)+(15)+(25)+(35)=26. Lines give the lazy-caterer numbers; planes give these, the cake numbers.
90HardType asked atJane StreetSIGDRW
41 people stand in a circle, numbered 1 to 41. Counting round the circle from person 1, every third person still standing is removed (3, 6, 9, …), until one remains. Which number survives?
Show answer
Answer:31
Use the recursion J(n)=(J(n−1)+3)modn with J(1)=0, counting positions from 0. Iterating up to n=41 gives position 30, which is person 31. This is the original Josephus setting; with a count of 2 there is a closed form, but with 3 the recursion is the honest method.
91MediumType asked atJane StreetSIGDRW
An ant is at one corner of a solid cube with edges of length 1 and must walk on the surface to the opposite corner. What is the length of the shortest route?
Show answer
Answer:5≈2.236
Unfold two adjacent faces into a 1 by 2 rectangle; the two corners become opposite corners of that rectangle, and the straight line between them has length 12+22=5. Going along edges costs 3, and crossing a face diagonal then an edge costs 2+1≈2.41.
92MediumType asked atJane StreetSIGDRW
You must pay a worker one gold link a day for 7 days from a single chain of 7 links, settling up at the end of each day. What is the fewest cuts you need?
Show answer
Answer:1
Cut the third link. That leaves pieces of 1, 2 and 4 links, and every total from 1 to 7 is a sum of some of them. Day 1 pay the 1; day 2 pay the 2 and take back the 1; day 3 add the 1; day 4 pay the 4 and take back the rest; and so on. Powers of two are the trick.
93MediumType asked atJane StreetSIGDRW
What is the largest number of kings that can be placed on a chessboard so that no two attack each other?
Show answer
Answer:16
Split the board into sixteen 2 by 2 blocks. Any two squares in one block are adjacent, so each block holds at most one king: at most 16. Putting a king on the bottom-left square of every block achieves it.
94MediumType asked atJane StreetSIGDRW
What is the largest number of knights that can be placed on a chessboard so that no two attack each other?
Show answer
Answer:32
All 32 squares of one colour work, because a knight always attacks the other colour. No more is possible: the board splits into 32 pairs of squares a knight's move apart (each 2 by 4 strip splits into four such pairs), and each pair can hold at most one knight.
95EasyType asked atJane StreetSIGDRW
A queen stands in a corner of an empty chessboard. How many squares does she attack?
Show answer
Answer:21
Seven along the rank, seven along the file and seven along the long diagonal: 21. From a central square she attacks 27, the most possible.