The Flashlight and Eight Batteries

The problem
8 batteries · 4 work, 4 dead · indistinguishableflashlight needs a working pair

You have 8 batteries. 4 work, 4 are dead — and they're indistinguishable. The flashlight needs two working batteries to turn on. Each attempt is one pair tested.

What is the minimum number of attempts that guarantees the flashlight will turn on?

Tempting (but wrong)
test every pair? C(8,2) = 28enormously wasteful

The two common wrong instincts:

  1. "Just try pairs at random." With 4 working out of 8, the probability that a random pair both work is (42)/(82)=6/2821%\binom{4}{2}/\binom{8}{2} = 6/28 \approx 21\%. You'll light it eventually, but the worst case is unbounded.

  2. "Test every possible pair." There are (82)=28\binom{8}{2} = 28 pairs. Doable, but enormously wasteful — we're not asked for all working pairs, just one.

The right answer is much smaller than 28, and the strategy is structural, not random.