OFFSET
1,2
COMMENTS
The first two primes in this sequence occur for n = 2 (a(2) = 11) and n = 14 (a(14) = 1709671414851143033) (email from Kurt Foster, Oct 24 2015). - N. J. A. Sloane, Oct 25 2015
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
EXAMPLE
a(9) = (1)(2)(3)(4)(5)(6)(7)(8)(10) = 1234567810_9 = 490328973.
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 *)
PROG
(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
(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
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Patrick De Geest, May 15 1999
EXTENSIONS
More terms from Douglas Latimer, May 10 2012
STATUS
approved