OFFSET
0,2
COMMENTS
The infinite word is (ab)(aab.abb)(aaab.aabb.abbb)(aaaab.aaabb.aabbb.abbbb)... . Subword complexity is the number of distinct length-n blocks appearing in the sequence.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..10000
Luke Schaeffer and Kaiyo Wu, Two Infinite Words with Cubic Subword Complexity, J. Integer Sequences 23 (2020), Article 20.10.8.
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
Equal to 2^n for n <= 3, and n^3/6+n^2/2-5*n/3+3 = A074742(n-1) for n >= 4.
G.f.: (1 - 2*x + 2*x^2 + 2*x^5 - 3*x^6 + x^7)/(1 - x)^4. - Andrew Howroyd, Nov 05 2025
EXAMPLE
For n=4 the only word omitted is baba.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jeffrey Shallit, Nov 07 2020
STATUS
approved
