OFFSET
0,2
COMMENTS
A word w is balanced if, for every pair of factors (consecutive blocks occurring within it) of the same length, the number of occurrences of each letter in the two factors differs by at most 1. For example, the word "banana" has this property.
LINKS
Lars Blomberg, Table of n, a(n) for n = 0..170
EXAMPLE
a(4) = 63, since all words of length 4 are balanced except 0011, 0012, 0021, 0022, 0122, 0211 (and renamings of those).
CROSSREFS
KEYWORD
nonn
AUTHOR
Jeffrey Shallit, Aug 04 2015
EXTENSIONS
More terms from Lars Blomberg, Dec 10 2015
STATUS
approved