OFFSET
1,4
COMMENTS
Define fib(1) = 1, fib(2) = 0, and fib(n) = concat(fib(n-1), fib(n-2)). Then fib(n) is the prefix of length F(n) of the infinite Fibonacci word A003849. The word binomial coefficient for two words (x, y) is the number of occurrences of y as a (scattered) subword of x.
EXAMPLE
For example, if n = 5, then fib(6) = 01001010 and fib(5) = 01001, and 01001 occurs in 4 distinct ways as a subword of 01001010; so a(5) = 4.
CROSSREFS
KEYWORD
nonn
AUTHOR
Jeffrey Shallit, Dec 13 2018
STATUS
approved