login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A064677 a(n) = sigma(n) - D(n) - pi(n), where D(n)=A001223, pi(n)= A000720. 1
0, 0, 0, 1, 1, 5, 2, 7, 3, 12, 1, 19, 6, 14, 12, 19, 9, 26, 8, 32, 18, 24, 9, 43, 18, 31, 27, 45, 16, 48, 17, 46, 35, 33, 35, 74, 20, 44, 38, 72, 27, 73, 28, 66, 62, 46, 21, 105, 40, 74, 51, 81, 28, 98, 50, 98, 62, 68, 39, 149, 34, 64, 82, 107, 62, 112, 43, 97, 75, 121, 46, 167 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,6

LINKS

Harry J. Smith, Table of n, a(n) for n = 1..1000

PROG

(PARI) pi(x, c) = forprime(p=2, x, c++); c d(n) = prime(n+1)-prime(n) for(n=1, 200, print1(sigma(n)-d(n)-pi(n), " "))

(PARI) { for (n=1, 1000, a=sigma(n) - (prime(n + 1) - prime(n)) - primepi(n); write("b064677.txt", n, " ", a) ) } \\ Harry J. Smith, Sep 21 2009

CROSSREFS

Sequence in context: A127108 A196405 A093606 * A088520 A084340 A065925

Adjacent sequences:  A064674 A064675 A064676 * A064678 A064679 A064680

KEYWORD

easy,nonn

AUTHOR

Jason Earls, Oct 09 2001

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 13 04:54 EDT 2020. Contains 336442 sequences. (Running on oeis4.)