PROJECT EULER · #0396
Weak Goodstein Sequence
For any positive integer
-
- for
, is obtained by writing in base , interpreting it as a base number, and subtracting .
For example, the
-
. -
since , , and . -
since , , and . -
since , , and .
It can be shown that every weak Goodstein sequence terminates.
Let
It can be verified that
It can also be verified that
Find the last
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.