A048441 Take the first n numbers written in base 9, concatenate them, then convert from base 9 to base 10.
1, 11, 102, 922, 8303, 74733, 672604, 6053444, 490328973, 39716646823, 3217048392674, 260580919806606, 21107054504335099, 1709671414851143033, 138483384602942585688, 11217154152838349440744, 908589486379906304700281, 73595748396772410680722779
Offset: 1
Examples
a(9) = (1)(2)(3)(4)(5)(6)(7)(8)(10) = 1234567810_9 = 490328973.
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..200
Crossrefs
Programs
-
Magma
[n eq 1 select 1 else Self(n-1)*9^(1+Ilog(9, n))+n: n in [1..20]]; // Vincenzo Librandi, Dec 30 2012
-
Mathematica
If[STARTPOINT==1, n={}, n=Flatten[IntegerDigits[Range[STARTPOINT-1], 9]]]; Table[AppendTo[n, IntegerDigits[w, 9]]; n=Flatten[n]; FromDigits[n, 9], {w, STARTPOINT, ENDPOINT}] (* Dylan Hamilton, Aug 11 2010 *) f[n_]:= FromDigits[Flatten@IntegerDigits[Range@n, 9], 9]; Array[f, 20] (* Vincenzo Librandi, Dec 30 2012 *)
-
PARI
{ cuo=0; for(ixp=1, 18, casi = ixp; cvst=0; while(casi != 0, cvd = casi%9; cvst=10*cvst + cvd + 1; casi = (casi - cvd) / 9 ); while(cvst !=0, ptch = cvst%10; cuo=cuo*9+ptch-1; cvst = (cvst - ptch) / 10 ); print1(cuo, ", "))} \\ Douglas Latimer, Apr 27 2012
Extensions
More terms from Douglas Latimer, May 10 2012
Comments