login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A065534
a(n) is smallest prime > 10*a(n-1), a(1) = 5.
1
5, 53, 541, 5413, 54133, 541339, 5413391, 54133921, 541339231, 5413392311, 54133923121, 541339231241, 5413392312463, 54133923124643, 541339231246433, 5413392312464369, 54133923124643743, 541339231246437473
OFFSET
1,1
LINKS
MATHEMATICA
NextPrim[n_Integer] := Block[ {k = n + 1}, While[ !PrimeQ[k], k++ ]; Return[k]]; a[1] = 5; a[n_] := NextPrim[ 10*a[n - 1]]; Table[ a[n], {n, 1, 20} ]
PROG
(PARI) { for (n=1, 100, if (n>1, a=nextprime(10*a), a=5); write("b065534.txt", n, " ", a) ) } \\ Harry J. Smith, Oct 21 2009
CROSSREFS
Cf. A065122.
Sequence in context: A293082 A069592 A350995 * A186206 A123788 A333096
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Nov 28 2001
STATUS
approved