Putnam 1996 B5
Source:
June 6, 2014
Putnamfloor functioncollege contests
Problem Statement
Given a finite binary string of symbols we define where respectively denote number of 's and 's in a string. For example . We call a string \emph{balanced} if every substring of has . Find number of balanced strings of length .