On Ubuntu:
sudo aptitude install golang libgmp3-dev
mkdir -p ~/src/gopath
echo 'EXPORT GOPATH=~/src/gopath' >> ~/.bashrc
source ~/.bashrc
go get github.com/ncw/gmp
Copy this file to a new directory and run it:
go build lychrel.go
./lychrel > lychrel.log
The program will output the number of iterations to the screen (STDERR) and the number to STDOUT (which we're redirecting to a file).
In another terminal, monitor the length of the numbers with
watch 'tail -1 lychrel.log | wc -c`