home intro
[::
FORUM ::]
m
$
SYMBOLS
Needs math past
>=P
CPU
RIDDLE INDEX
computer power.
FORUM
relatively easy
easy
relatively medium
med
relatively hard
hard
microsoft
m$
computer science
cs
putnam
putnam
[ wu :: riddles(medium) ]
RECENT ADDITIONS
Check out latest puzzles by
perusing the forum and the 10
most recent posts. Latest
additions to cover site can be
seen by clicking here.
relatively medium
how many places are there on the earth that one could walk one
mile south, then one mile west, then one mile north and end up in
the same spot? to be precise, let's assume the earth is a solid
smooth sphere, so oceans and mountains and other such things do
not exist. you can start at any point on the sphere. also, the
rotation of the earth has nothing to do with the solution; you can
assume you're walking on a static sphere if that makes the
GLOBE
TRAVERSAL
[ wu :: riddles(medium) ]
GHETTO
ENCRYPTION I
GHETTO
ENCRYPTION II
they are self-conscious and don't want to tell each other their own
salaries, for fear of either being ridiculed or getting their houses
robbed. How can they find their average salary, without disclosing
their own salaries?
ADJACENCY GRID
8
the arrangement above, for example, is wrong because 3 and 4, 4
http://www.ocf.berkeley.edu/~wwu/riddles/medium.shtml (3 of 44)2/27/2012 10:38:34 PM
[ wu :: riddles(medium) ]
you die and the devil says he'll let you go to heaven if you beat him
in a game. the devil sits you down at a round table. he gives
himself and you a huge pile of quarters. he says "ok, we'll take
turns putting quarters down, no overlapping allowed, and the
FAUSTIAN
ROUND TABLE
COIN GAME
quarters must rest on the table surface. the first guy who can't put
a quarter down loses." you guys are about to start playing, and the
devil says that he'll go first. however, at this point you immediately
interject, and ask if you can go first instead. you make this
interjection because you are very smart, and you know that if you
go first, you can guarantee victory. explain how you can guarantee
victory.
DOMINOES ON A
CHESSBOARD
MANHOLES
SQUARE
DIVISION
[ wu :: riddles(medium) ]
EQUILATERAL
TRIANGLE
DIVISION
You are in a room with three light switches, each of which controls
one of three light bulbs in the next room. Your task is to determine
LIGHT BULBS
AND SWITCHES
which switch controls which bulb. All lights are initially off, and
you can't see into one room from the other. You are allowed only
one chance to enter the room with the light bulbs. How can you
determine which lightswitch goes with which light bulb?
PUNCTUATION I
PAPER CUTTING
[ wu :: riddles(medium) ]
POPULATION OF
FUNKYTOWN
There are more inhabitants than there are hairs on the head
of any one inhabitant.
You have two thermoses. The first contains a liter of milk, the
second contains a liter of pure chocolate syrup. You pour one cup
CHOCOLATE
MILK
of milk out from the first thermos to the second one. Then, after
mixing that, you take one cup of the mixture from the second
thermos, and pour it back into the first thermos. After completing
these two operations, which thermos is more pure?
BROWN EYES
AND RED EYES
Hint: First consider the case where there are only a few monks on
the island, some with brown and some with red. Work through the
logic and find out what happens over time. Then generalize for the
case of M monks on the island, N of which have red eyes.
[ wu :: riddles(medium) ]
WHERE'S THE
FATHER?
The mother is 21 years older than the child. In 6 years from now,
the mother will be 5 times as old as the child. Question: Where's
the father?
.999 ...
0.99999 ... = 1
Imagine a disk spinning like a record player turn table. Half of the
COLORED DISK
SPIN SENSORS
disk is black and the other is white. Assume you have an unlimited
number of color sensors. How many sensors would you have to
place around the disk to determine the direction the disk is
spinning? Where would they be placed?
[ wu :: riddles(medium) ]
GOLD CHAIN
worker must be paid each day after working and if the laborer is
ever overpaid he will quit with the extra money. also he will never
allow himself to be owed a link. what is the fewest number of cuts
to the chain to facilitate this arrangement and how does that
guarantee payment?
DUMB CS JOKE
M
WATER BUCKETS
Black keypeg = one of B's pegs is the correct color and in the
correct position
White keypeg = one of the B's pegs is the correct color but in
the wrong position
MASTERMIND I
[ wu :: riddles(medium) ]
TWO-CHILD
FAMILY I
TWO-CHILD
FAMILY II
"Proof" that 2 = 1:
a=b
a2 = ab
a2 - b2 = ab-b2
2=1
(a-b)(a+b) = b(a-b)
a+b = b
b+b = b
2b = b
2=1
[ wu :: riddles(medium) ]
Four people, A, B, C, and D, are on one side of a bridge, and they all
want to cross the bridge. However, it's late at night, so you can't
cross without a flashlight. They only have one flashlight. Also, the
bridge is only strong enough to support the weight of two people
BRIDGE
CROSSING
If you drew a dot on the edge of a wheel and traced the path of the
dot as the wheel rolled one complete revolution along a line, then
the path formed would be called a cycloid (shown in red below),
combining both forward and circular motion. What is the length of
the path formed by one complete revolution? Assume the wheel
has a radius of 1.
CYCLOID
M
COCONUT
tries to take it the monkey conks him on the head with it and kills
[ wu :: riddles(medium) ]
MONKEY
You and your partner in crime are both arrested and questioned
separately. You are offered a chance to confess, in which you agree
to testify against you partner, in exchange for all charges being
dropped against you, unless he testifies against you also. Your
lawyer, whom you trust, says that the evidence against both of
you, if neither confesses, is scant and you could expect to take a
PRISONER
DILEMMA REDUX
plea and each serve 3 years. If one implicates the other, the other
can expect to serve 20 years. If both implicate each other you
could each expect to serve 10 years. You assume the probability of
your partner confessing is p. Your highest priority is to keep
yourself out of the pokey, and your secondary motive is to keep
you partner out. Specifically you are indifferent to you serving x
years and your partner serving 2x years. At what value of p are you
indifferent to confessing and not confessing?
Find the side length of the internal square and the radii of the
internal circles, in terms of a.
[ wu :: riddles(medium) ]
JAPANESE
TEMPLE
GEOMETRY I
[ wu :: riddles(medium) ]
JAPANESE
TEMPLE
GEOMETRY II
Note: For a hardcopy of the above image only, click here and print.
Hardcopies are useful for drawing lines and labeling vertices and
what not.
Note 2: Thanks a lot to Jasvir Nagra for sending me such a clear
solution, even with diagrams drawn with Postscript!
Problem source: Fukagawa, H. and D. Pedoe. Japanese Temple
Geometry problems. Charles Babbage Research Foundation:
Winnipeg, 1989.
[ wu :: riddles(medium) ]
JAPANESE
TEMPLE
GEOMETRY III
Note: For a hardcopy of the above image only, click here and print.
Hardcopies are useful for drawing lines and labeling vertices and
what not.
Problem source: Fukagawa, H. and D. Pedoe. Japanese Temple
Geometry problems. Charles Babbage Research Foundation:
Winnipeg, 1989.
[ wu :: riddles(medium) ]
Black keypeg = one of B's pegs is the correct color and in the
correct position
White keypeg = one of the B's pegs is the correct color but in
the wrong position
MASTERMIND II
[ wu :: riddles(medium) ]
PUNCTUATION II
i had had had tom had had had had had had had had the praise of
the teacher
BROKEN CLOCK
WHAT
HAPPENED I
BUS
PASSENGERS
[ wu :: riddles(medium) ]
SPRINKLER AND
PUMP
Say you have some bendable wires (any number, any length).
SOLDER CUBE
Consider an analog clock face on which the hour and minute hands
move smoothly. If we swap the position of the hour and minute
hands, we usually end up with an invalid clock face which never
occurs during the day (the hour hand pointing directly at 12 and
ANALOG CLOCK
III
the minute hand at 3, for instance). But there are some times when
these switched hands *do* tell a valid time: specifically, when the
two hands are pointing in the same direction. Are there any other
such times?
Note: From John Leen, one of my CS170 TAs from Spring 2002 at
UC Berkeley. An excellent teacher.
[ wu :: riddles(medium) ]
The master of a college and his wife has decided to throw a party
and invited N guest and their spouses. On the night of the party, all
guests turned up with their spouse, and they all had a great time.
When the party was concluding, the master requested all his
PARTY
HANDSHAKES
guests (including his wife, but not himself) to write down the
number of persons they shook hands with, and to put the numbers
in a box. When the box was opened, he was surprised to find all
integers from 0 to 2N inclusive.
Assuming that a person never shake hands with their own spouse
and that no one lied, how many hands did the master shake?
RANDOMIZED
ICE CREAM
You like all flavors equally, so you want to randomly select a cone
with each flavor having an equal chance of being chosen.
Unfortunately, you don't know the total number of flavors, but
being the little hipster that you are, you are carrying a pocket
calculator which can generate random numbers from 1 to X, where
X is a value you punch in. How can you decide which flavor to
keep?
Note: Problem made by Yosen Lin and William Wu! 2002. Special
thanks to the forum regulars for proofreading it.
ANSWER
http://www.ocf.berkeley.edu/~wwu/riddles/medium.shtml (18 of 44)2/27/2012 10:38:34 PM
[ wu :: riddles(medium) ]
MACHINE
HACKING
You are presented with a ladder. At each stage, you may choose to
advance either one rung or two rungs. How many different paths
are there to climb to any particular rung; i.e. how many unique
ways can you climb to rung "n"?
LADDER RUNGS
RACETRACK LAPS
yet, so you took the first lap easy, at 30 miles per hour. But you do
want to see what your ridiculous sports car can do. How fast do
you have to go on the second lap to end the day with an average
speed of 60 miles per hour?
[ wu :: riddles(medium) ]
IMPATIENT
PATIENTS
period, but don't care when their shift starts. Their shifts look like
this: work five hours, one hour break, work another three hours.
How many nurses do you need for one patient? How many nurses
do you need for n patients?
Note: Designed by the contributor, Remco Hartog!
E VS PI
Game: You continue flipping a coin until you get a tails. I then
equals the number of tails. I then award you prize money equal to
the number of flips you conducted.
How much are you willing to pay me to play this game?
271
[ wu :: riddles(medium) ]
LADDER INTO
TOWER
6 PERSON
ACQUAINTANCE
XX
WILLYWUTANG
HAS STDS?
[ wu :: riddles(medium) ]
KABOUTERS
very rude to talk about the color of the hat they are wearing, so
much so that they don't even know the color of their own hat. They
are able to look and distinguish the color of the hats on other
kabouters. (They just won't talk about it.) Now every year all
kabouters need to be counted and traditionally they present
themselves in two groups divided by the color of their hats. How do
they do this without talking or communicating the color of their
hats to any of the other kabouters?
CIRCUIT
FAILURE
ANALYSIS
[ wu :: riddles(medium) ]
RUMOR
SPREADING
TREES FOR
WILLYWUTANG
[ wu :: riddles(medium) ]
FORCEFIELD
DETAINMENT
a guard who has only one bullet in his gun, but who also has
perfect marksmanship skills (he never misses). A maintenance
technician needs to tune up the forcefield generator, and so for one
second, the forcefield is released. How can the guard still keep all
the prisoners detained?
WHAT
HAPPENED II
The street lamps are also off and there's no moonlight. When the
truck is about to hit the man, the driver hits the brakes and
manages to stop just a few centimetres from him. How did the
driver see the man?
A man walks into a bar and says "I want a coffee and a glass of
WHAT
HAPPENED III
water. But make sure the coffee is boiling hot and the water is icecold." The barman says "Sure thing, mr. fireman." The barman had
never met him before. How did he know the man was a fireman?
ONE REAL
SOLUTION
17 = ((1 + x)17/x)
Professor A.S. at one of those departments sent Mr. H.N. the
following brief solution:
18/17 = ((1 + x)18/x) / ((1 + x)17/x) = 1 + x , so x = 1/17
Are there any other real solutions x? Why?
[ wu :: riddles(medium) ]
f/ x =
f/ y = 2(x
+y)
x/ v = -1
y/ v = +1
Suppose an odd number (at least three) of coins have the property
COINS SAME
WEIGHT
M
that, if any one coin is removed, the rest can be partitioned into
two groups each with the same number of coins and also the same
total weight. Show that all the coins must have the same weight.
Note: Linear algebra can be useful here, but I don't know if it's
absolutely necessary.
PAPER FOLD
RATIO
FARMER'S
ENCLOSURE
[ wu :: riddles(medium) ]
CHESS STUDY I
C
Note: A very famous study by Richard Reti, dating all the way back
to 1921. Reti was a professional in both mathematics and chess; he
found the latter more interesting because he could force people to
believe the truth of his ideas. He became quite famous in 1924 for
http://www.ocf.berkeley.edu/~wwu/riddles/medium.shtml (26 of 44)2/27/2012 10:38:34 PM
[ wu :: riddles(medium) ]
CHESS STUDY II
C
15-14 SLIDE
PUZZLES
[ wu :: riddles(medium) ]
There are N people in one room. How big does N have to be until
the probability that at least two people in the room have the same
BIRTHDAY
PARADOX
You dare not offend nor disappoint Great Uncle Willy lest he
disown you. He has placed $2000 in your hands to bet on the
outcome of the world series, which is a baseball contest won by
whichever of two teams first wins 4 games. Willys $2000 was
given to you in advance of the series. At the end of the series he
expects you to return to him either $4000 if the team he chose
wins, or nothing if it loses.
WORLD SERIES
BETTING
But you can find nobody who will accept bets on the entire world
series. However, there are wagerers who will take on even-odds
bets, in any amount(s), on each game individually. What strategy
for placing bets on individual games will achieve the cumulative
result Willy expects?
SQUARES ON A
GRID
[ wu :: riddles(medium) ]
OBTUSE
TRIANGLES
Note: "This one is from an old Martin Gardner book. Gardner claims
professional mathematicians have been known to get it wrong.
Then again, professional mathematicians get the Monty Hall
problem wrong sometimes too." - Tim Mann
Craps is a 1-player dice game that is played as follows: Roll two 6sided dice; their sum becomes your "initial" roll. If this initial roll is
2, 3, or 12, you lose. If the initial roll is 7 or 11, you win.
Otherwise, keep rolling the dice until you reroll you initial number
(and win) or until you roll a 7 (and lose).
You're betting that your adversary is going to lose his game of
craps, which should be a favorable bet for you. But you receive an
anonymous tip that he's secretly loaded one of the dice, so that it
LOADED CRAPS
DICE
[ wu :: riddles(medium) ]
PENNY TRACK
GAME
You have an m x n grid with some real numbers in each cell. You
POSITIVE
MATRIX SUMS
can multiply any row by -1, or any column by -1. Show that by
making multiplications of this kind, the sum of the numbers in
every row, and the sum of the numbers in every column, can all be
made non-negative simultaneously.
TETRAMINOES
ON A
CHECKERBOARD
[ wu :: riddles(medium) ]
If tiles of both kinds are abundant, and if tiles may be rotated, can
the mutilated checkerboard be covered exactly with
nonoverlapping tiles that match the colors of covered squares?
Why?
ALWAYS AHEAD
CALLING A
CARD'S COLOR
choice he may assert that the next card will turn up red. After this
card is turned up the game ends and he wins if his assertion was
correct, loses otherwise. And if he doesn't guess at all by the time
all cards have been dealt, he loses by default. What guessing policy
chosen in advance maximizes his chance of winning?
+ bi
+ di
---------adi - bd
ca + cbi
----------------
COMPLEX
MULTIPLICATION
[ wu :: riddles(medium) ]
A little while ago, Willy Wutang was thinking about the Sprinkler
and Pump puzzle. Willy, having a creative mind (or at least a welldeveloped sense of mischief) had a flash of inspiration, and came
up with a very novel sprinkler design. However, before he can
patent his new sprinkler, Willy must figure out what it does--his
lawyer says it's a necessary part of the patent process.
CRAZY
SPRINKLER
1. First of all, does the sprinkler turn? If so, in which direction
does it turn?
2. Second, what do the jets of water do? In the picture above,
the sprinkler is shown at the instant just before the jets of
water collide. However, in the picture the sprinkler is being
held still, so that even if it wants to turn, it cannot.
3. Third, does the behaviour of the jets of water depend on
whether or not the sprinkler is allowed to rotate? Does it
maybe depend on how fast the sprinkler rotates?
[ wu :: riddles(medium) ]
CONWAY
SEQUENCE
111221
312211
13112221
CRYPTIC
ADDRESS
England
[ wu :: riddles(medium) ]
from the jellied gasoline nozzle. He pulls out his trusty finger
FINGER GAUGES
ACROBAT THIEF
AND GOLD
ROPES
SUM OF
RECIPROCALS
[ wu :: riddles(medium) ]
CAKE DIVISION
Also, the entire cake must be distributed amongst the guests -there can be no leftovers.
1/27/2003 8:30PM
Somewhere in Northern Eurasia, a group of 20 lemmings is
planning a special group suicide this year. Each of the lemmings
will be placed in a random position along a thin, 100 meter long
plank of wood which is floating in the sea. Each lemming is equally
likely to be facing either end of the plank. At time t=0, all the
lemmings walk forward at a slow speed of 1 meter per minute. If a
lemming bumps into another lemming, the two both reverse
LEMMING
DROWNINGS
Author: William Wu
Note 1: If you make a certain observation, the calculations
required become very trivial!
[ wu :: riddles(medium) ]
1/27/2003 8:30PM
Imagine a cube where each edge is a 1 ohm resistor. Find the
RESISTOR CUBE
1/27/2003 8:30PM
Two astronauts are standing on a spinning space station shaped
like a disk. They are the same radial distance away from the disk's
center, and standing opposite to each other across from the center
(e.g., if you draw a line connecting the two astronauts, the line
ASTROWRENCH
P
2/2/2003 3:31AM
What are the next few terms in the sequence?
/-\
/-\//-\\
/-\-/-\/-\
SLASH AND
DASH SEQUENCE
/-\--///-\\\
[ wu :: riddles(medium) ]
//-\\/-\-/-\
Hint 1: Maybe it'll go easier if you replace - with 0, and the / and \
with ( and ). Or not.
Hint 2: These are just the numbers 1 through 10, expressed
differently. And despite the presence of zero, you can't express
zero this way.
Hint 3: All your base are belong to prime numbers.
2/2/2003 3:31AM
Two thieves conspire to steal a valuable necklace made of
diamonds and rubies (evenly spaced, but not necessarily
alternating or symmetric). After they take it home, they decide that
JEWEL THIEVES
the only way to divide the booty fairly is to physically cut the
necklace in half.
Prove that, if there is an even number of diamonds and an even
number of rubies, it's possible to cut the necklace into two pieces,
each of which contains half the diamonds and half the rubies.
3/9/2003 4:11AM
In a cliche effort to illustrate the importance of teamwork-oriented
problem solving, the Boss has chained Dilbert to Carol The
Secretary via wire wrapped around their wrists, as shown in the
following snapshot:
WIRECUFFS
The goal is for Dilbert and Carol to unlink themselves from each
[ wu :: riddles(medium) ]
4/7/2003 12:47AM
While recovering from wounds in the American Civil War, a Captain
Fox threw needles at a surface ruled with parallel lines, and was
thus able to experimentally infer the value of pi. True story! To find
out exactly how pi plays into this scenario, solve the following
problem: A surface is ruled with parallel lines. The lines are at
distance D apart from each other. Suppose we throw a needle of
length L on the surface at random. What is the probability that the
needle will intersect one of the lines?
BUFFON'S
NEEDLE
M
4/7/2003 12:47AM
Samwise Gamgee has a square plot of land, each side being 1 unit.
One day, Sam finds out that the dark Lord Sauron has a telephone
line that he uses to speak with a traitor amongst the hobbits.
Gandalf informs him that the telephone line runs in a straight line
parallel to the ground and passes beneath the square plot of land,
but he does not know its location. Sam decides to dig up around
[ wu :: riddles(medium) ]
SAMWISE AND
GANDALF
4/7/2003 12:47AM
RETROGRADE
CHESS I
C
[ wu :: riddles(medium) ]
5/11/2003 10:44PM
PATH COLLISION
5/11/2003 10:44PM
ROPE AROUND
THE EARTH
5/11/2003 10:44PM
Two urns contain the same total numbers of balls, some blacks and
some whites in each. From each urn are drawn n balls with
replacement, where n >= 3. Find the number of drawings and the
MOLINA'S URNS
composition of the two urns so that the probability that all white
balls are drawn from the first urn is equal to the probability that
the drawing from the second is either all whites or all blacks.
[ wu :: riddles(medium) ]
5/27/2003 2:24PM
Consider a gambling machine A. When you put in $X and pull the
handle, it will spit out (equally likely) either $0.7*X, $0.8*X,
$0.9*X, $1.1*X, $1.2*X, or $1.5*X.
TWO GAMBLING
MACHINES
5/11/2003 10:44PM
HEXAGON IN
CIRCLE
5:15 PM 8/3/2004
You have 1000 pirates, who are all extremely greedy, heartless,
and perfectly rational. They're also aware that all the other pirates
share these characteristics. They're all ranked by the order in
which they joined the group, from pirate one down to a thousand.
They've stumbled across a huge horde of treasure, and they have
to decide how to split it up. Every day they will vote to either kill
ELEGANTLY
GREEDY PIRATES
[ wu :: riddles(medium) ]
Contributor: William Wu
9:00 PM 8/19/2004
FAIR COIN
GAMBLING
Forum threads: More Heads Than Tails and Lazy hunter catch the
rabbit.
Contributor: William Wu
9:00 PM 8/19/2004
JUMPING FROG
ON LADDER
Author: William Wu
[ wu :: riddles(medium) ]
Contributor: Eigenray
9:00 PM 8/19/2004
Let Q denote the set of rationals. How many colors are required to
color every point of Q^k in such a way that no two points a unit
COLORING THE
RATIONAL PLANE
RANDOM
POINTS ON
SPHERE
9:00 PM 8/19/2004
Contributor: Aryabhatta
9:00 PM 8/19/2004
You are given n>=2 points in the 2-D plane. For each pair of points
(P,Q) from the n points, mark the midpoint of PQ red. Show that
NUMBER OF
MIDPOINTS
there are at least 2n-3 distinct red points. For each n, show an
arrangement of n points for which there are exactly 2n-3 distinct
red points.