I recently posed a question on Code Golf on what I'm terming "Fibonacci Digits", where each number is the sum of the previous two digits, not necessarily the previous two numbers. So, for instance, the series beginning $1,1$ is $1,1,2,3,5,8,13,4,7,11,2\dots$ and cycles from there.
As I note in the various examples I bring there, unless something in the series manages to add to either $0$ or $14$, the series seems to always loop to some rotation of $2,3,5,8,13,4,7,11$. Further, it always reaches $0$ or $14$ no later than the third entry in the series. For instance, $S_1=7,7,14,5,9\dots$, $S_2=14,5,9\dots$, $S_3=68,14,5,9\dots$.
In other words, it seems that for $0\le(a,b)\le9$, then, for $a+b=c$:
- If $c<10$, let $d=b+c$
- If $c\ge10$, $c=10x+y$ for some integers $0\le(x,y)\le9$. Let $d=x+y$.
- Repeat the above using $c$ and $d$.
Eventually, assuming that you don't start with $0$, this algorithm will yield either $11$ or $14$. Seemingly.
My question is two parts:
- Is my assessment correct?
- If so, why?
From the second entry on, no entry can be larger than $9+9=18$. As an entry only depends on the previous two entries, there must be one or more cycles that can be created. I have found $(2,3,5,8,13,4,7,11)$, $(5,9,14)$, and $0$ as cycles. We can just try all $100$ pairs of single digits to start the sequence. Starting with a two digit number is the same as starting with the two individual digits, so we don't have to try that.
$0$ only comes from starting $(0,0)$
$5,9,14$ comes from $ (0,7),(1,4),(2,6),(3,1),(4,2),(4,5),(5,9),(6,8),(7,0),(7,7),(8,6),(9,5)$
Note that $(3,1)$ only gets to $14$ at the sixth term.
All other starting pairs go to $2,3,5,8,13,4,7,11$ eventually. The latest $11$ comes up is the sixteenth term starting from $(0,2)$