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!)
A029832 A discrete version of the Mangoldt function: if n is prime then ceiling(log(n)) else 0. 4
0, 1, 2, 0, 2, 0, 2, 0, 0, 0, 3, 0, 3, 0, 0, 0, 3, 0, 3, 0, 0, 0, 4, 0, 0, 0, 0, 0, 4, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 5, 0, 5, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 5, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 5, 0, 5, 0, 0, 0, 5, 0, 5, 0, 0, 0, 5, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
The real Mangoldt function Lambda(n) is equal to log(n) if n is prime else 0.
REFERENCES
T. M. Apostol, Introduction to Analytic Number Theory, Springer-Verlag, 1976, page 32.
P. Ribenboim, Algebraic Numbers, p. 44.
LINKS
MATHEMATICA
Table[If[PrimeQ[n], Ceiling[Log[n]], 0], {n, 120}] (* Harvey P. Dale, Aug 23 2019 *)
PROG
(PARI) A029832(n) = if(!isprime(n), 0, ceil(log(n))); \\ Antti Karttunen, Feb 06 2019
CROSSREFS
Sequence in context: A105118 A245359 A103271 * A361879 A320535 A174479
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Antti Karttunen, Feb 06 2019
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 20 14:08 EDT 2024. Contains 372717 sequences. (Running on oeis4.)