Identical digits at the end of adjacent terms of the sequence
Statement
Let be a fixed integer.
Let be A007814, the exponent of the highest power of dividing , a.k.a. the binary carry sequence, the ruler sequence, or the -adic valuation of .
Then we have an integer sequence given by \begin{align} a(0)=a(1)&=1\\ a(2n)& = a(n)+a(n-2^{f(n)})+a(2n-2^{f(n)})\\ a(2n+1) &= ma(n) \end{align}
Let
Then I conjecture that for any where is A003422, left factorials.
What is nice here, it is the fact that if we take large adjacent terms of the sequence (for any ) in any number system where , then we have some identical digits at the end (or from the right side).
You can easily verified it using simple recurrence above and pari function Vecrev(digits(s(n,m), p)).
For example, if we take and in base we have Same values in base …
Posed by user231922 · nt.number-theory, co.combinatorics, sequences-and-series, recurrences
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-407530.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-407530.lean
import Mathlib /-! # Identical digits at the end of adjacent terms of the sequence Source: https://mathoverflow.net/questions/407530 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_407530 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_407530