{"id":"formal-conjectures/OEIS__6697","url":"https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/OEIS/6697.lean","repo":"https://github.com/google-deepmind/formal-conjectures","score":0,"title":"OEIS A6697: Subword complexity of the morphism a → aab, b → b","source":"formal-conjectures","problem":{"number":"A6697","status":"solved","collection":"oeis"},"reviews":0,"summary":"Conjecture (A6697): The generating function for the number of subwords of length $n$ in the infinite word generated by $a \\mapsto aab, b \\mapsto b$ is $$\\sum_{n \\geq 0} a_n x^n = 1 + \\frac{1}{1-x} + \\frac{1}{(1-x)^2}\\left(\\frac{1}{1-x} - \\sum_{k \\geq 0} x^{2^{k+1} + k}\\right).$$ Equivalently, a(n) equals the n-th coefficient of this generating function. However, the reference quoted in the OEIS sequence > J.-P. Allouche and J. Shallit, \"On the subword complexity of the fixed point of a → aab, b → b, > and generalizations,\" arXiv:1605.02361 [math.CO], 2016. provides an explicit formula $$ a_n…","category":"research","comments":0,"disputed":false,"mentions":0,"discussed":0,"reactions":{},"formalized":true,"formalizations":["https://github.com/AxiomMath/gdm-formal-conjectures/blob/main/OeisA6697/solution.lean"]}