🧮 Brain Teaser

Sums of Three Cubes: A Putnam Divisibility Surprise

Let nn be a positive integer. Show that there exist integers a,b,ca, b, c (not necessarily distinct, possibly negative) such that

n=a3+b3+c33abc+n3.n = a^3 + b^3 + c^3 - 3abc + n^3.

Wait — that's trivially n=n3+0+00n = n^3 + 0 + 0 - 0... Let's do the real thing.


The actual problem (Putnam 2002, B-1):

Shanille O'Keal shoots free throws. She hits the first and misses the second, and thereafter the probability that she hits her nn-th attempt equals the proportion of hits among her first n1n-1 attempts. What is the probability she hits exactly 50 of her first 100 attempts?

Pólya urnprobabilitysymmetrycombinatoricsPutnam 2002

Answer: Shanille's Free Throws: Pólya Urn Surprise

Key Idea / Intuition

The key surprise is that every outcome sequence of length 100 with exactly 50 hits is equally likely. This is not obvious — you might expect sequences with "streaks" to have different probability from alternating ones. The probability rule creates a hidden symmetry: the rule is exactly the Pólya urn model, where all orderings are equally probable. Once you see this, the answer is just 1/991/99 by a counting/symmetry argument.


Formal Proof / Solution

Setup. She hits attempt 1, misses attempt 2. For n3n \geq 3, the probability of hitting attempt nn is (hits so far)n1\frac{\text{(hits so far)}}{n-1}.

Step 1: Compute the probability of a specific sequence.

Let's compute P(a specific sequence of 100 attempts with exactly k hits)P(\text{a specific sequence of 100 attempts with exactly } k \text{ hits}).

Consider any fixed sequence ω\omega of H's and M's of length 100 starting with H, M, and containing exactly kk hits total.

After the first two forced outcomes (H then M), we have 1 hit and 1 miss recorded. At step nn (for n3n \geq 3), if there have been hh hits and m=n1hm = n-1-h misses so far:

  • P(hit)=hn1P(\text{hit}) = \frac{h}{n-1}, P(miss)=n1hn1P(\text{miss}) = \frac{n-1-h}{n-1}.

For a specific sequence with kk hits and 100k100-k misses, let's trace through the multiplicative contributions. At the moment of the jj-th hit (for j2j \geq 2, since the first hit is forced), suppose there have been j1j-1 hits before — the contribution is j1(step1)\frac{j-1}{\text{(step}-1)}. Similarly each miss contributes a fraction.

More cleanly: the probability of any specific sequence of length nn starting H, M with exactly kk hits is:

P(ω)=(k1)!(nk1)!(n1)!P(\omega) = \frac{(k-1)!\,(n-k-1)!}{(n-1)!}

Proof by induction or direct multiplication:

At each step tt from 3 to nn, the denominator is t1t - 1. So the product of all denominators is (n1)!/1!=(n1)!/(21)!(n-1)!/ 1! = (n-1)!/ (2-1)! ... let's be careful.

Steps 3 through nn give denominators 2,3,,n12, 3, \ldots, n-1, whose product is (n1)!1\frac{(n-1)!}{1}.

The numerators: each hit at step tt contributes (current hit count before step tt), and each miss contributes (current miss count before step tt).

  • The hits after the first contribute numerators 1,2,,k11, 2, \ldots, k-1 (the hit counts at the moment of each subsequent hit), giving (k1)!(k-1)!.
  • The misses after the second contribute numerators 1,2,,(nk)11, 2, \ldots, (n-k)-1, giving (nk1)!(n-k-1)!.

Therefore: P(ω)=(k1)!(nk1)!(n1)!P(\omega) = \frac{(k-1)!\,(n-k-1)!}{(n-1)!}

This is the same for every sequence with exactly kk hits! The probability depends only on kk, not on the order.

Step 2: Count and compute.

For n=100n = 100, k=50k = 50:

P(exactly 50 hits in first 100)=(9849)49!49!99!P(\text{exactly 50 hits in first 100}) = \binom{98}{49} \cdot \frac{49!\, 49!}{99!}

Wait — how many sequences are there? We must fix the first shot as H and second as M. The remaining 98 shots contain 4949 hits and 4848 misses...

Actually: k=50k = 50 hits total, 5050 misses total. The first shot is H (1 hit), second is M (1 miss). The remaining 98 shots have 49 hits and 49 misses, giving (9849)\binom{98}{49} sequences.

So:

P(exactly 50 of 100)=(9849)49!49!99!=98!49!49!49!49!99!=98!99!=199.P(\text{exactly 50 of 100}) = \binom{98}{49} \cdot \frac{49!\, 49!}{99!} = \frac{98!}{49!\,49!} \cdot \frac{49!\,49!}{99!} = \frac{98!}{99!} = \frac{1}{99}.

The beautiful answer: 199\boxed{\dfrac{1}{99}}.

Why it makes sense: This is the Pólya urn model. In a Pólya urn starting with 1 red and 1 blue ball, after nn draws all compositions are equally likely. So among 100 draws, each value of kk from 1 to 99 is equally likely, giving probability 1/991/99 each. ✓

Source: Putnam 2002, Problem B-1 (putnam/2002.pdf)

Type: PutnamSource: Putnam 2002, Problem B-1 (putnam/2002.pdf)Edit on GitHub ↗