[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A364696 Nonnegative integers k such that the sum of the first k primes is a pentagonal number. 5
0, 2, 77, 24587, 48070640, 471412484, 7471587112 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
Wikipedia, Pentagonal number.
EXAMPLE
2 is a term because the sum of the first 2 primes (2 + 3 = 5) is a pentagonal number.
MATHEMATICA
A364696list[kmax_]:=Module[{p=0}, Join[{0}, Table[If[IntegerQ[(Sqrt[24(p+=Prime[k])+1]+1)/6], k, Nothing], {k, kmax}]]]; A364696list[25000] (* Paolo Xausa, Oct 06 2023 *)
CROSSREFS
Sequence in context: A048358 A124456 A338588 * A308373 A183578 A184965
KEYWORD
nonn,hard,more
AUTHOR
Paolo Xausa, Aug 03 2023
EXTENSIONS
a(5) from Michel Marcus, Aug 04 2023
a(6)-a(7) from Hugo Pfoertner, Aug 04 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 30 02:56 EDT 2024. Contains 375521 sequences. (Running on oeis4.)