Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A058938
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A058938 Sum of first n digits of decimal expansion of pi is prime. +0
2
1, 6, 8, 13, 20, 21, 34, 36, 48, 56, 63, 87, 89, 92, 94, 104, 106, 107, 111, 116, 117, 118, 120, 130, 132, 133, 141, 146, 147, 162, 170, 173, 179, 183, 185, 186, 198, 202, 203, 206, 215, 217, 219, 220, 225, 242, 248, 249, 258, 264, 265, 270, 271, 285, 290, 291 (list; graph; listen)
OFFSET

1,2

EXAMPLE

a(2) = 6 because 3 + 1 + 4 + 1 + 5 + 9 = 23, which is prime.

MAPLE

Digits := 2000: it := evalf(Pi, 2000): for i from 1 to 2000 do a[i] := floor(it): it := 10*(it-floor(it)): od: s := 0: for i from 1 to 2000 do s := s+a[i]: if isprime(s) then printf(`%d, `, i) fi: od:

MATHEMATICA

a = First[ RealDigits[ N[ Pi, 300]]]; Do[ If[ PrimeQ[Plus @@ Take[a, n]], Print[n]], {n, 1, 300}]

CROSSREFS

Cf. A000796, A071117.

Sequence in context: A027706 A047336 A063188 this_sequence A101729 A047451 A101123

Adjacent sequences: A058935 A058936 A058937 this_sequence A058939 A058940 A058941

KEYWORD

easy,nonn,base

AUTHOR

G. L. Honaker, Jr. (honak3r(AT)gmail.com), Jan 11 2001

EXTENSIONS

More terms from James A. Sellers (sellersj(AT)math.psu.edu), Jan 14 2001

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 December 19 12:50 EST 2009. Contains 171053 sequences.


AT&T Labs Research