Sequence A76132 eventually periodic modulo $2,3$ and $5$
Statement
Sequence A76132 starting as of the OEIS is recursively defined by and for .
It is eventually periodic of period 1,1 and 34 modulo and (the proof is essentially trivial: it is enough to check eventual periodicity on a big enough finite initial chunk).
Curiously, this seems to stop: either the non-periodic part is very long (of length at least 100) or the period is of length longer than 5000 for .
Moreover, the sequence seems to be eventually periodic modulo : up to the sequence is eventually constant modulo (for ) after that it seems to be eventually periodic with period-length .
Similarly, it seems to be eventually periodic with period length for .
Curiously, it does not seem to be eventually periodic modulo .
Is there an easy explanation for this behaviour?
Added: The generating series is algebraic modulo every prime number. Eventual periodicity modulo boils down to showing that it is a rational series modulo .
Final addition. The remark of reuns implies that is always rational modulo any …
Posed by Roland Bacher · co.combinatorics, sequences-and-series, integer-sequences
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/mo-413297.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. 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/mo-413297.lean
import Mathlib /-! # Sequence A76132 eventually periodic modulo $2,3$ and $5$ Source: https://mathoverflow.net/questions/413297 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_mo_413297 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_413297