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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A139021 a(0)=2. a(n) = smallest prime > a(n-1) such that (sum{k=0 to n} a(k)) is a power of a prime. 2
2, 3, 11, 13, 227, 307, 461, 463, 2609, 2683, 58757, 58831, 137777, 138007, 17179469033, 17179470433, 240518567327, 240518567479, 19807040628566083882989513161, 19807040628566083882989513433 (list; graph; refs; listen; history; internal format)
OFFSET

0,1

EXAMPLE

The prime powers are 2+3=5^1, 2+3+11=2^4, 2+3+11+13=29^1, etc.

MAPLE

a := [2, 3] ; while true do as := add(i, i=a) ; p := nextprime(op(-1, a)) ; while nops(numtheory[factorset](p+as)) > 1 do p := nextprime(p) ; od; a := [op(a), p] ; print(a) ; od: -R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Apr 28 2008

CROSSREFS

Cf. A139019, A139022.

Sequence in context: A139052 A076491 A105226 * A176038 A145771 A042473

Adjacent sequences:  A139018 A139019 A139020 * A139022 A139023 A139024

KEYWORD

nonn

AUTHOR

Leroy Quet Apr 06 2008

EXTENSIONS

9 more terms from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Apr 28 2008

a(14)-a(19) from Donovan Johnson (donovan.johnson(AT)yahoo.com), Nov 26 2008

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 14 07:45 EST 2012. Contains 205597 sequences.