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!)
A318995 Totally additive with a(prime(n)) = n - 1. 8
0, 0, 1, 0, 2, 1, 3, 0, 2, 2, 4, 1, 5, 3, 3, 0, 6, 2, 7, 2, 4, 4, 8, 1, 4, 5, 3, 3, 9, 3, 10, 0, 5, 6, 5, 2, 11, 7, 6, 2, 12, 4, 13, 4, 4, 8, 14, 1, 6, 4, 7, 5, 15, 3, 6, 3, 8, 9, 16, 3, 17, 10, 5, 0, 7, 5, 18, 6, 9, 5, 19, 2, 20, 11, 5, 7, 7, 6, 21, 2, 4, 12 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,5

LINKS

Andrew Howroyd, Table of n, a(n) for n = 1..10000

MAPLE

a:= n-> add((-1+numtheory[pi](i[1]))*i[2], i=ifactors(n)[2]):

seq(a(n), n=1..100);  # Alois P. Heinz, Sep 07 2018

MATHEMATICA

Table[Cases[If[n==1, {}, FactorInteger[n]], {p_, k_}:>(PrimePi[p]-1)*k]//Total, {n, 200}]

PROG

(PARI) a(n)={my(f=factor(n)); sum(i=1, #f~, my([p, e]=f[i, ]); (primepi(p)-1)*e)} \\ Andrew Howroyd, Sep 07 2018

CROSSREFS

Cf. A000040, A001222, A003963, A056239, A275024, A299757, A302242, A302243, A318994.

Sequence in context: A131848 A287873 A035157 * A217176 A334312 A087469

Adjacent sequences:  A318992 A318993 A318994 * A318996 A318997 A318998

KEYWORD

nonn

AUTHOR

Gus Wiseman, Sep 07 2018

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 September 20 10:24 EDT 2020. Contains 337264 sequences. (Running on oeis4.)