#PHP, 95 74 64 bytes
PHP, 95 74 64 bytes
<?for($n=_;;print strrev($n))for($i=0;!$n[$i]=($n[++$i]+1)%10;);
or
<?for($n=_;;print strrev($n))while($i*=!$n[$i]=($n[++$i]+1)%10);
http://php.net/bc_installation: These functions are only available if PHP was configured with --enable-bcmath
.
http://php.net/gmp_installation: In order to have these functions available, PHP must be compiled with GMP support by using the --with-gmp option
.
So I just implemented bcadd
... sort of. Uses underscore as separator.