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!)
A339823 a(n) = A056239(n) - A000523(n). 3
0, 0, 1, 0, 1, 1, 2, 0, 1, 1, 2, 1, 3, 2, 2, 0, 3, 1, 4, 1, 2, 2, 5, 1, 2, 3, 2, 2, 6, 2, 7, 0, 2, 3, 2, 1, 7, 4, 3, 1, 8, 2, 9, 2, 2, 5, 10, 1, 3, 2, 4, 3, 11, 2, 3, 2, 5, 6, 12, 2, 13, 7, 3, 0, 3, 2, 13, 3, 5, 2, 14, 1, 15, 7, 2, 4, 3, 3, 16, 1, 2, 8, 17, 2, 4, 9, 6, 2, 18, 2, 4, 5, 7, 10, 5, 1, 19, 3, 3, 2, 20, 4, 21, 3, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,7
COMMENTS
a(n) is the difference at n between the value of a PrimePi-based pseudo-logarithmic function (A056239) and log_2 floored down (A000523).
All terms are nonnegative. (Cf. Bertrand's postulate).
LINKS
FORMULA
a(n) = A056239(n) - A000523(n).
PROG
(PARI)
A000523(n) = if( n<1, 0, #binary(n) - 1); \\ From A000523
A056239(n) = { my(f); if(1==n, 0, f=factor(n); sum(i=1, #f~, f[i, 2] * primepi(f[i, 1]))); }
A339823(n) = A056239(n)-A000523(n);
CROSSREFS
Sequence in context: A364334 A048881 A026931 * A127506 A353433 A007968
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 18 2020
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 25 06:14 EDT 2024. Contains 371964 sequences. (Running on oeis4.)