A006697: Number of subwords of length n in infinite word generated by a -> aab, b -> b.
Statement
G.f.: 1 + 1/(1-x) + 1/(1-x)^2 * [1/(1-x) - sum(k>=1, x^(2^k+k-1))] (conjectured). · Conjectures: partial sums of A103354, also equal to A094913(n) + 1. · a(n) = Sum_{k=0..n} min(2^k,n-k+1) = 2^(m+1)-1 + (n-m)*(n-m+1)/2, with m = [ n+1-LambertW(2^(n+1)*log(2))/log(2) ] = integer part of the solution to 2^m = n+1-m. (conjectured).
Posed by M. F. Hasler, Ralf Stephan, Vladeta Jovovic · OEIS nice
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/oeis-a006697.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Text: OEIS Foundation, CC BY-SA 4.0. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/oeis-a006697.lean
import Mathlib /-! # A006697: Number of subwords of length n in infinite word generated by a -> aab, b -> b. Source: https://oeis.org/A006697 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_oeis_a006697 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a006697