The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A122515 a(n) = A007504(n) - A046992(n). 1
2, 4, 7, 12, 20, 30, 43, 58, 77, 102, 128, 160, 195, 232, 273, 320, 372, 426, 485, 548, 613, 684, 758, 838, 926, 1018, 1112, 1210, 1309, 1412, 1528, 1648, 1774, 1902, 2040, 2180, 2325, 2476, 2631, 2792, 2958, 3126, 3303, 3482, 3665, 3850, 4046, 4254, 4466 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
Table[Sum[Prime[n], {n, 1, m}] - Sum[PrimePi[n], {n, 1, m}], {m, 1, 50}]
PROG
(Python)
from sympy import prime, primerange
def A122515(n): return -(n+1)*len(p:=list(primerange(n+1)))+(sum(p)<<1)+sum(primerange(n+1, prime(n)+1)) # Chai Wah Wu, Jan 01 2024
CROSSREFS
Sequence in context: A072642 A105856 A010672 * A193840 A036372 A132218
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Sep 16 2006
EXTENSIONS
Edited by N. J. A. Sloane, Sep 17 2006
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 May 31 23:52 EDT 2024. Contains 373008 sequences. (Running on oeis4.)