login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A065582 Smallest prime ending in exactly n 9's. 10
19, 199, 1999, 49999, 199999, 2999999, 19999999, 799999999, 10999999999, 59999999999, 1099999999999, 34999999999999, 59999999999999, 499999999999999, 14999999999999999, 139999999999999999 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

LINKS

Harry J. Smith, Table of n, a(n) for n=1,...,100

MATHEMATICA

Do[a = Table[9, {n} ]; k = 0; While[ b = FromDigits[ Join[ IntegerDigits[k], a]]; Mod[k, 10] == 9 || !PrimeQ[b], k++ ]; Print[b], {n, 1, 17} ]

PROG

(PARI) { for (n=1, 100, t=10^n; b=t - 1; d=0; while(!isprime(b + t*d), d++; if (d%10==9, d++)); write("b065582.txt", n, " ", b + t*d) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Oct 23 2009]

CROSSREFS

Cf. A037071, A065592, A065821, A065580, A065581.

Sequence in context: A185687 A067272 A037071 * A055558 A160452 A113596

Adjacent sequences:  A065579 A065580 A065581 * A065583 A065584 A065585

KEYWORD

nonn,base

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Nov 28 2001

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 07:30 EST 2012. Contains 205998 sequences.