Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A104842
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A104842 Position of first n-digit prime in decimal expansion of Pi. +0
2
1, 1, 8, 3, 2, 1, 4, 34, 30, 5, 15, 2, 6, 17, 36, 82, 12, 87, 26, 12, 25, 133, 35, 18, 17, 3, 41, 17, 234, 17, 167, 92, 251, 15, 9, 12, 31, 1, 57, 290, 4, 99, 98, 502, 48, 164, 198, 201, 128, 7, 363, 143, 11, 138, 196, 32, 230, 82, 292, 515, 334, 186, 176, 223, 57, 135, 35 (list; graph; listen)
OFFSET

1,3

COMMENT

Corresponding n-digit primes A104841.

EXAMPLE

a(1)=1 since the first single digit prime found, 3, is at first place, hence a(1)=1,

a(2)=1 since the first two digit prime found, 31, is at first place, hence a(2)=1,

a(3)=8 since the first three digit prime found, 653, is at 8th place, hence a(3)=8,...

MATHEMATICA

pi = RealDigits[Pi, 10, 100][[1]]; f[n_] := Block[{k = 1}, While[ !PrimeQ[ FromDigits[ Take[pi, {k, k + n - 1}]]], k++ ]; k]; Table[ f[n], {n, 67}] (from Robert G. Wilson v Mar 29 2005)

CROSSREFS

Cf. A104819 - A104841.

Adjacent sequences: A104839 A104840 A104841 this_sequence A104843 A104844 A104845

Sequence in context: A088453 A019782 A056030 this_sequence A119277 A063568 A100668

KEYWORD

nonn,base

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com), Mar 27 2005

EXTENSIONS

More terms from a(33) onward from Robert G. Wilson v (rgwv(AT)rgwv.com), Mar 29 2005

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified October 11 13:47 EDT 2008. Contains 144830 sequences.


AT&T Labs Research