A071587 Powers of 9 written backwards.
1, 9, 18, 927, 1656, 94095, 144135, 9692874, 12764034, 984024783, 1044876843, 90695018313, 184635924282, 9238285681452, 16945429767822, 946490231198502, 1481588810203581, 96566699618177661, 121999692536490051, 9802992767171580531, 10882965095456675121
Offset: 0
Links
- Robert Israel, Table of n, a(n) for n = 0..1046
Programs
-
Maple
revdigs:= proc(n) local L; L:= convert(n,base,10); add(L[-i]*10^(i-1),i=1..nops(L)) end proc: seq(revdigs(9^n),n=0..50); # Robert Israel, Jan 21 2020
-
Mathematica
IntegerReverse[9^Range[0,20]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 26 2018 *)
-
PARI
for(i=1,50,n=9^i; s=ceil(log(n)/log(10)); print1(sum(i=0,s,10^(s-i-1)*(floor(n/10^i)-10*floor(n/10^(i+1)))),","))