This is an algorithm developed as a joke which has led me to a problem I can't solve.
Being $,$ the concatenation operator, given $$x_0 = a_{(0,0)},a_{(0,1)},a_{(0,2)},\dots,a_{(0,n)}$$ we define $$x_{i+1}=(a_{(i,0)}+a_{(i,1)}),(a_{(i,1)}+a_{(i,2)}),\dots,(a_{(i,n-1)}+a_{(i,n)})$$
For example: $$ \begin{split} 1234\\ 357\\ 812\\ 93\\ 12\\ 3 \end{split} $$
Now, this does not always converge, but I can't understand why in general. E.g., in base 10, $99a$ loops, $8888$ loops...
I'm trying to develop a function that, given a number, outputs if the algorithm converges (without checking all the history for loops).
Here a jar I made which computes the algorithm given a starting number.
Here the same question on Quora, with some other useful insights.



These are my results:
1 digit numbers
1 digit numbers are our base case.
2 digit numbers
2 digit numbers always converge.
Being $,$ the concatenation operator, for 2 digits numbers, we define $x_0=a_{(0,0)},a_{(0,1)}$. So: $$x_1=c_{(1,0)},a_{(1,0)}$$ where $$a_{(1,0)}=a_{(0,0)}+a_{(0,1)} \pmod{base}$$ Where $c_{(i,j)}$ is the carry digit of the $j^{th}$ operation at the $i^{th}$ iteration, which we will suppose to be one (otherwise it would be trivial). So, since $$ x_2=c_{(2,0)},(c_{(1,0)}+a_{(1,0)} \bmod{base}) $$ and, since $$ \begin{align} a_{(0,0)} + a_{(0,1)} & \geq base \\ a_{(0,0)} & \leq base-1 \\ a_{(0,1)} & \leq base-1 \\ 0 \leq a_{(0,0)} + a_{(0,1)} & \leq 2 \cdot base-2 \\ 0 \leq a_{(0,0)} + a_{(0,1)} & \leq base-2 \mod{base}\\ 0 \leq a_{(1,0)} & \leq base-2 \mod{base}\\ \end{align} $$ implies that $$ c_{(2,0)}=\emptyset $$ so, $$ x_2=a_{(2,0)} $$ which is a 1 digit number, which is the base case.
3 digit numbers
3 digit numbers like $$ x_0=a_{(0,0)},a_{(0,1)},a_{(0,2)}\\ $$ have $$ x_1=c_{(1,0)},a_{(1,0)},c_{(1,1)},a_{(1,1)}\\ $$
Case $\{c_{(1,0)}=\emptyset,c_{(1,1)}=\emptyset\}$
Trivial, 2 digit case.
Case $\{c_{(1,0)}=\emptyset,c_{(1,1)}=1\}$
$$ \begin{align} x_0 & =a_{(0,0)},a_{(0,1)},a_{(0,2)}\\ x_1 & =a_{(1,0)},c_{(1,1)},a_{(1,1)}\\ \end{align} $$
$$ \begin{align} a_{(0,0)} + a_{(0,1)} & \lt base \\ a_{(0,1)} + a_{(0,2)} & \geq base \\ 0 \leq a_{(0,0)} & \leq base-2 \\ 1 \leq a_{(0,1)} & \leq base-1 \\ 1 \leq a_{(0,2)} & \leq base-1 \\ 1 \leq a_{(1,0)} & \leq base-1 \\ 0 \leq a_{(1,1)} & \leq base-2 \\ \end{align} $$
$x_2$ is either trivial, or $$ x_2 = c_{(2,0)},a_{(2,0)},a_{(2,1)}\\ $$ with $a_{(2,0)}=0$, which means $x_3$ is trivial.
Case $\{c_{(1,0)}=1,c_{(1,1)}=\emptyset\}$
$$ \begin{align} x_0 & =a_{(0,0)},a_{(0,1)},a_{(0,2)}\\ x_1 & =c_{(1,0)},a_{(1,0)},a_{(1,1)}\\ \end{align} $$
$$ \begin{align} a_{(0,0)} + a_{(0,1)} & \geq base \\ a_{(0,1)} + a_{(0,2)} & \lt base \\ 1 \leq a_{(0,0)} & \leq base-1 \\ 1 \leq a_{(0,1)} & \leq base-1 \\ 0 \leq a_{(0,2)} & \leq base-2 \\ 0 \leq a_{(1,0)} & \leq base-2 \\ 1 \leq a_{(1,1)} & \leq base-1 \\ \end{align} $$
$x_2$ is either trivial, or $$ x_2 = a_{(2,0)},c_{(2,0)},a_{(2,1)}\\ $$
same as the case above.
Case $\{c_{(1,0)}=1,c_{(1,1)}=1\}$
$$ \begin{align} x_0 & =a_{(0,0)},a_{(0,1)},a_{(0,2)}\\ x_1 & =c_{(1,0)},a_{(1,0)},c_{(1,1)},a_{(1,1)}\\ x_2 &= a_{(2,0)} a_{(2,1)} a_{(2,2)} \end{align} $$
These conditions apply: $$ c_{(1,0)}=c_{(1,1)}=1 \implies a_{(2,0)} = a_{(2,1)}\\ $$
$$ \begin{align} 0 \leq a_{2,\{0,1,2\}} & \leq base-1\\ a_{(0,0)} + a_{(0,1)} & \geq base \\ a_{(0,1)} + a_{(0,2)} & \geq base \\ 1 \leq a_{(0,i)} & \leq base-1 \\ 0 \leq a_{(1,i)} & \leq base-2 \end{align} $$
$$ a_{(2,2)} = c_{(1,1)} + a_{(1,1)} = 1 + (a_{(0,1)} + a_{(0,2)} \pmod{base}) $$
Consider that if $$ a_{(1,0)}=base-2 \iff a_{(0,0)} = a_{(0,1)} = base-1 \\ $$
it follows that:
$$ \begin{align} a_{(1,0)}=base-2 & \implies a_{(2,2)} = 1 + base - 1 + a_{(0,2)} \pmod{base} = a_{(0,2)}\\ & \implies a_{(2,2)} = a_{(0,2)} \forall a_{(0,2)} \in \{1,base-1\} \\ & \implies a_{(2,0)} = a_{(2,1)} = a_{(0,0)} = a_{(0,1)} = base-1 \end{align} $$
In other words, for $a_{(0,0)}=a_{(0,1)}$ and $a_{(0,2)} \geq 1$ it loops with period 2.
Otherwise, it either maps to one of the cases above, or repeats this case, but since $$ \begin{align} a_{(1,0)} \neq base-2 & \implies a_{(1,0)} \lt base-2 \\ a_{(1,0)} \lt base-2 & \implies a_{(1,0)} \leq base-3 \\ & \implies a_{(0,0)} + a_{(0,1)} \leq base - 1 + base - 1 - 1 \pmod{base}\\ & \implies a_{(0,0)} + a_{(0,1)} \leq base-3 \end{align} $$ the upper bound shrinks and the series converges.
$\gt 2$ digit numbers
Bigger numbers can show loops of larger sizes, like $8888$.