olymmath

Putnam 1996 B5

  • Session B

Given a finite string SS of symbols XX and OO, we write Δ(S)\Delta(S) for the number of XX's in SS minus the number of OO's. For example, Δ(XOOXOOX)=−1\Delta(XOOXOOX) = -1. We call a string SS balanced if every substring TT of (consecutive symbols of) SS has −2≤Δ(T)≤2-2 \leq \Delta(T) \leq 2. Thus, XOOXOOXXOOXOOX is not balanced, since it contains the substring OOXOOOOXOO. Find, with proof, the number of balanced strings of length nn.

Curated text Kedlaya Putnam archive. Quoted with source.

Solutions

Human solution Solution 1 by Manjul Bhargava and Kiran Kedlaya

The terms of the source let olymmath link to this solution but not copy it. Read the solution (Kedlaya Putnam archive).

Locator putnam/1996/b5 · Tag 2BYFXZQ1D1 · Edit this page on GitHub · Keys: j next, k previous