Skip to main content
1 of 5
Titus
  • 14.8k
  • 1
  • 24
  • 41

#PHP, 95 bytes

<?function i(&$n,$i=0){($n[$i]=(1+$n[$i])%10)?:i($n,$i+1);}for($n="1";;i($n))echo strrev($n),_;

or

<?function i($i=0){global$n;($n[$i]=(1+$n[$i])%10)?:i($i+1);}for($n="1";;i())echo strrev($n),_;

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 ... kind of. Uses underscore as separator.

Titus
  • 14.8k
  • 1
  • 24
  • 41