Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A073698
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A073698 a(n) is smallest prime not already in the sequence such that the sum of the first n terms is an n-th power. +0
4
2, 7, 503, 113, 7151, 109873, 162287, 2251875110689, 1423309560546093919, 1831931738588396657, 266306005917953213327, 13573982207668041076860262513, 4485809513902758532742979512207 (list; graph; listen)
OFFSET

1,1

EXAMPLE

Sum of two terms 2+7 = 9 = 3^2. Sum of three terms 2+7+503 = 512 = 8^3.

MATHEMATICA

a[n_] := a[n]=Module[{sm, i}, sm=Sum[a[i], {i, 1, n-1}]; For[k=Ceiling[(sm+2)^(1/n)], !ProvablePrimeQ[k^n-sm]||MemberQ[a/@Range[n-1], k^n-sm], k++, Null]; k^n-sm] (* First do <<NumberTheory`PrimeQ` *)

CROSSREFS

Cf. A093927, A093928, A093929, A093355.

Sequence in context: A081505 A110386 A027732 this_sequence A073860 A093926 A095304

Adjacent sequences: A073695 A073696 A073697 this_sequence A073699 A073700 A073701

KEYWORD

nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Aug 12 2002

EXTENSIONS

Edited by Dean Hickerson (dean.hickerson(AT)yahoo.com), Dec 02 2002

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 17 23:40 EST 2009. Contains 171025 sequences.


AT&T Labs Research