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!)
A100111 a(n) = Sum_{k >= 0} prime(n-4k). 1
2, 3, 5, 7, 13, 16, 22, 26, 36, 45, 53, 63, 77, 88, 100, 116, 136, 149, 167, 187, 209, 228, 250, 276, 306, 329, 353, 383, 415, 442, 480, 514, 552, 581, 629, 665, 709, 744, 796, 838, 888, 925, 987, 1031, 1085, 1124, 1198, 1254, 1312, 1353 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(5) = prime(5) + prime(1) = 11 + 2 = 13.
MATHEMATICA
Table[Total[Prime[Range[n, 1, -4]]], {n, 50}] (* Harvey P. Dale, Jun 27 2021 *)
PROG
(PARI) a(n) = if (n<4 || n%4, sum(k=0, n\4, prime(n - 4*k)), sum(k=0, n\4 - 1, prime(n - 4*k))) \\ Michel Marcus, Jun 30 2013
CROSSREFS
Sequence in context: A173105 A024783 A092855 * A092878 A126059 A126058
KEYWORD
nonn
AUTHOR
Jorge Coveiro, Dec 26 2004
EXTENSIONS
More terms from Michel Marcus, Jun 30 2013
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 11:49 EDT 2024. Contains 371936 sequences. (Running on oeis4.)