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!)
A364691 Pentagonal numbers which are the sum of the first k primes, for some k >= 0. 5
0, 5, 13490, 3299391550, 22042432252064127, 2387505511919644051, 680588297594638712735 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
Wikipedia, Pentagonal number.
EXAMPLE
5 is a term because it's both a pentagonal number and the sum of the first two primes (2 + 3).
MATHEMATICA
A364691list[kmax_]:=Module[{p=0}, Join[{0}, Table[If[IntegerQ[(Sqrt[24(p+=Prime[k])+1]+1)/6], p, Nothing], {k, kmax}]]]; A364691list[25000] (* Paolo Xausa, Oct 06 2023 *)
PROG
(PARI) ispenta(n) = my(s); issquare(24*n+1, &s)&&s%6==5;
my(S=0); forprime (p=2, oo, S+=p; if (ispenta(S), print1(S, ", "))) \\ Hugo Pfoertner, Aug 03 2023
CROSSREFS
Intersection of A000326 with A007504.
Sequence in context: A058051 A242772 A368067 * A367943 A089989 A219011
KEYWORD
nonn,hard,more
AUTHOR
Paolo Xausa, Aug 03 2023
EXTENSIONS
a(5)-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 12 15:11 EDT 2024. Contains 375113 sequences. (Running on oeis4.)