Problem Archive

For any positive integer $n$, the $n$th weak Goodstein sequence $\{g_1, g_2, g_3, \dots\}$ is defined as:

The sequence terminates when $g_k$ becomes $0$.

For example, the $6$th weak Goodstein sequence is $\{6, 11, 17, 25, \dots\}$:

and so on.

It can be shown that every weak Goodstein sequence terminates.

Let $G(n)$ be the number of nonzero elements in the $n$th weak Goodstein sequence.
It can be verified that $G(2) = 3$, $G(4) = 21$ and $G(6) = 381$.
It can also be verified that $\sum G(n) = 2517$ for $1 \le n \lt 8$.

Find the last $9$ digits of $\sum G(n)$ for $1 \le n \lt 16$.

Solution
No solution yet. Write yours at solutions/s396.md.
Problems sourced from Project Euler · Non-commercial & educational use only · CC BY-NC-SA 4.0