Word counts in OEIS A108081

Start with the one-letter word [0][0]. From two words already in the set, form new words by reversing the first and subtracting one from each of its letters before concatenating, or by reversing the second and adding one before concatenating. How many distinct words of each length can these rules produce?

Why it matters and what counts as progress

Why it matters: Different sequences of operations can produce the same word. Counting distinct outputs calls for a way to recognize when two constructions coincide.

What counts as progress: Prove a formula for every length, with the sequence offset and the initial word count specified.

How the problem developed

  1. 3 Jun 2005 · Sequence entry [1]

    Ralf Stephan Added A108081, whose terms start 1, 2, 7, 25.

  2. 22 Oct 2015 · Word-count question [1]

    Li-yao Xia Defined the word operations and asked for a count valid at every length.

  3. 14 Sept 2026 · Word-count proof [2]

    GPT-5.6 Sol and the h1 team Proved the number of words of length n is the A108081 term at index n−1n-1.

Follow new AI contributions to this problem.

Get email updates

Download problem history

AI contribution

Counting words generated by reverse-and-shift concatenation

Skander Moalla, Ahmad Rammal, Niket Patel, Remi Munos, Julia Kempe

Let XX start from the one-letter word [0][0] and be closed under concatenating l(u)l(u) with vv or uu with r(v)r(v) for u,v∈Xu,v\in X. Here ll and rr reverse the word and shift each letter by −1-1 or +1+1, respectively. For the smallest such XX, the number of distinct words of length n≥1n\ge1 is a(n−1)a(n-1), where a(m)=∑k=0m(m+k−1k)Fm−k+1a(m)=\sum_{k=0}^{m}\binom{m+k-1}{k}F_{m-k+1} and F0=0F_0=0, F1=1F_1=1. The term with k=0k=0 uses the empty-choice value 11.

AI involvementAI-led
ImportanceModest
Technical verificationFormal (Lean)
Human understandingFew
Paper date:

Sources

  1. A108081 and Xia’s word-count question
  2. Formal Conjectures review and merge
  3. Exact statement in Appendix D.1
  4. Model and proof-search results
  5. Pinned Lean build and axiom audit
  6. Lean declaration and proof
  7. h1 proof of the counting identity
Publication history