Goodstein Sequence Calculator
To complement my earlier post on Goodstein sequences, I wrote a Python script to calculate them.
The source code is available on GitHub.
Usage
The python script takes two arguments:
INITIAL_VALUE
, the initial value of the Goodstein sequenceSEQUENCE_LENGTH
, the number of terms in the sequence to print
The optional flag --colorize
adds colour to the terminal output,
making it easier to read.
Examples
A quickly terminating sequence
The Goodstein calculator started from 3 returns just 6 values before the sequence hits zero.
A fast-growing sequence
The Goodstein sequence started from 4 reaches a million in the first one thousand terms.
A very fast-growing sequence
The Goodstein sequence started from 10 quickly reaches numbers which are so large they are difficult to read.