Find the number of "balanced" n-strings
Source: Indian IMO Training Camp 2007-ST 2 P3
March 5, 2011
Putnamabsolute valuecombinatorics unsolvedcombinatorics
Problem Statement
Given a finite string of symbols and , we denote as the number ofs in minus the number of s (For example, ). We call a string balanced if every sub-string of (consecutive symbols) has the property (Thus is not balanced, since it contains the sub-string whose value is Find, with proof, the number of balanced strings of length .