OFFSET
1,2
COMMENTS
The first three primes in this sequence occur for n = 2 (a(2) = 7), n = 113 (a(113) = 7.4484...*10^216), n = 162 (a(162) = 1.5188...*10^346). - Kurt Foster, Oct 24 2015 [Comment added by N. J. A. Sloane, Oct 25 2015]
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
EXAMPLE
a(7) = 1 2 3 4 10 11 12 = 3034532_10.
MATHEMATICA
If[STARTPOINT==1, n={}, n=Flatten[IntegerDigits[Range[STARTPOINT-1], 5]]]; Table[AppendTo[n, IntegerDigits[w, 5]]; n=Flatten[n]; FromDigits[n, 5], {w, STARTPOINT, ENDPOINT}] (* Dylan Hamilton, Aug 11 2010 *)
f[n_]:= FromDigits[Flatten@IntegerDigits[Range@n, 5], 5]; Array[f, 20] (* Vincenzo Librandi, Dec 30 2012 *)
PROG
(Magma) [n eq 1 select 1 else Self(n-1)*5^(1+Ilog(5, n))+n: n in [1..20]]; // Vincenzo Librandi, Dec 30 2012
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Patrick De Geest, May 15 1999
STATUS
approved