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 Category: research Comments: 0 Disputed: false Mentions: 0 Discussed: 0 Formalized: true Formalizations: https://github.com/AxiomMath/gdm-formal-conjectures/blob/main/OeisA6697/solution.lean Page: https://delphi.science/r/formal-conjectures/OEIS__6697 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…