Skip to main content
1 of 3
Notamathematician
  • 4.9k
  • 2
  • 11
  • 24

Identical digits at the end of adjacent terms of the sequence

Let $m\geq 2$ be a fixed integer.

Let $f(n)$ be A007814, the exponent of the highest power of $2$ dividing $n$, a.k.a. the binary carry sequence, the ruler sequence, or the $2$-adic valuation of $n$.

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 $$s(n,m)=\sum\limits_{k=0}^{2^n-1}a(k)$$

Then I conjecture that for any $m\geq 2$ $$s(n,m)=(n+m)s(n-1,m)+((m+1)^2-4)\frac{(n+m-1)(g(n+m-2)-g(m+1))}{(m+3)(m+1)!}, s(0,m)=1$$ where $$g(n)=\sum\limits_{k=0}^{n-1}k!$$ is A003422, left factorials.

What is nice here, it is the fact that if we take large adjacent terms of the sequence (for any $m\geq 2$) in any number system $p$ where $p\geq 2$, 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(binary()).

Is there any explanation of this interesting fact?

Notamathematician
  • 4.9k
  • 2
  • 11
  • 24