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!)
A029834 A discrete version of the Mangoldt function: if n is prime then floor(log(n)) else 0. 6
0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 2, 0, 2, 0, 0, 0, 2, 0, 2, 0, 0, 0, 3, 0, 0, 0, 0, 0, 3, 0, 3, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 4, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 4, 0, 0, 0, 4, 0, 4, 0, 0, 0, 4, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,11
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.
Paulo Ribenboim, Algebraic Numbers, p. 44.
LINKS
MATHEMATICA
Array[If[PrimeQ[#], Floor[Log[#]], 0] &, 80] (* Harvey P. Dale, Jul 24 2013 *)
PROG
(PARI) v=[]; for(n=1, 150, v=concat(v, if(isprime(n), floor(log(n)), ))); v
(PARI) A029834(n) = if(!isprime(n), 0, floor(log(n))); \\ Antti Karttunen, Feb 06 2019
CROSSREFS
Sequence in context: A198255 A290542 A359300 * A318715 A202385 A029833
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 July 5 08:23 EDT 2024. Contains 374018 sequences. (Running on oeis4.)