OFFSET
1,1
PROG
(Perl) ($s, $t, $u)=(0, '1', 1); while($s <= $u*8){print "$u " if $s == $u; ($p, $o)=
(Perl) (1, 0); $q=($t =~ /^(7*)/ && length $1); $r=length($t)+1; ++$o, $p *= 8 while
(Perl) $o+1 <= $q && $p*$r*8 <= abs($u-$s); $u += $p; s/^(7*)(.)?/(0 x length($1))
(Perl) .($2+1)/e, $s += tr/2/2/*$p + $o*$p/8 for substr $t, $o } print "\n"
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
EXTENSIONS
More terms and Perl program from Hugo van der Sanden
Comment from Hugo van der Sanden: Program terminates at n = 2.94239143846251e+56, when 2.37843307942386e+57 2's have been seen; since s > 8n and n > 8^8 at this point, it is not possible for n ever again to catch up with the sum (given s(8^n) = n 8^{n-1}).
STATUS
approved