[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!)
A082934 A082928(1) + A082928(2) + ... + A082928(n). 0
1, 4, 8, 10, 16, 19, 27, 31, 40, 45, 57, 63, 77, 84, 99, 107, 125, 134, 154, 164, 185, 196, 220, 232, 257, 270, 297, 311, 341, 356, 388, 404, 437, 454, 489, 507, 545, 564, 603, 623, 665, 686, 730, 752, 797, 820, 868, 892, 941, 966, 1017, 1043, 1097, 1124, 1179 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
seq = if n even then n/2 else n. seq = if n is prime then n+1. Sumseq = Sumseq + seq for n=1, 2, ...
PROG
(PARI) a(n)={sum(k=1, n, if(isprime(k), k+1, if(k%2, k, k/2)))};
CROSSREFS
Sequence in context: A302338 A311001 A311002 * A311003 A311004 A144570
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, May 26 2003
EXTENSIONS
Edited by Charles R Greathouse IV, Oct 09 2009
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 29 09:16 EDT 2024. Contains 375511 sequences. (Running on oeis4.)