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!)
A065762 a(n) = (sum of first n primes)^2 + sum of (squares of first n primes). 2
8, 38, 138, 376, 992, 2058, 4030, 6956, 11556, 19038, 28958, 43536, 63052, 87218, 118050, 158436, 210356, 271478, 347590, 438328, 542280, 667258, 812342, 983756, 1189396, 1423918, 1684302, 1977696, 2300336, 2660354, 3097234, 3582196, 4126908, 4718214 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = A007504(n)^2 + A024450(n). - Michel Marcus, Oct 12 2015
EXAMPLE
a(4) = 376 because (2 + 3 + 5 + 7)^2 + (2^2 + 3^2 + 5^2 + 7^2) = 17^2 + (4 + 9 + 25 + 49) = 289 + 87 = 376.
MATHEMATICA
nn=50; With[{prs=Prime[Range[nn]]}, Table[Total[Take[prs, n]]^2+ Total[Take[prs, n]^2], {n, nn}]] (* Harvey P. Dale, Aug 20 2011 *)
PROG
(PARI) { s=ss=0; for (n=1, 500, p=prime(n); s+=p; ss+=p^2; write("b065762.txt", n, " ", s^2 + ss) ) } \\ Harry J. Smith, Oct 30 2009
CROSSREFS
Sequence in context: A139798 A359931 A211063 * A034009 A038732 A038799
KEYWORD
easy,nonn
AUTHOR
Terrel Trotter, Jr., Dec 04 2001
EXTENSIONS
More terms from Harvey P. Dale, Aug 20 2011
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 April 24 12:42 EDT 2024. Contains 371938 sequences. (Running on oeis4.)