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!)
A087987 a(n) is the Mertens function value at the n-th primorial number. 1
0, -1, -3, -1, -1, 16, -25, 278, 3516, -5012, -30431, -234676, -4247453, -6271957 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
Marc Deléglise and Joël Rivat, Computing the summation of the Mobius function, Experiment. Math. 5:4 (1996), pp. 291-295.
FORMULA
a(n) = A002321(A002110(n)).
EXAMPLE
n = 3: 3rd primorial number = 30. A002321(30) = -3.
MATHEMATICA
q[x_] := Apply[Times, Table[Prime[i], {i, 1, x}]] s=0; i=1; Do[While[i<=q[n], s=s+MoebiusMu[i]; i++ ]; Print[s], {n, 0, 8}]//Timing
PROG
(PARI) p=1; s=1; for(n=1, 10, pr=p; p*=prime(n); s+=sum(k=pr+1, p, moebius(k)); print1(s", ")) \\ Herman Jamke (hermanjamke(AT)fastmail.fm), Dec 21 2007
(Perl) use ntheory ":all"; say mertens(pn_primorial($_)) for 1..12; # Dana Jacobsen, May 22 2015
CROSSREFS
Sequence in context: A156690 A228900 A060325 * A290311 A322790 A333560
KEYWORD
more,sign
AUTHOR
Labos Elemer, Oct 02 2003
EXTENSIONS
One more term from Herman Jamke (hermanjamke(AT)fastmail.fm), Dec 21 2007
a(10)-a(11) from Donovan Johnson, Jun 21 2012
a(12)-a(13) from Rikard Nordgren, Nov 11 2012
a(14) from Chai Wah Wu, Apr 24 2021
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 18 03:36 EDT 2024. Contains 372618 sequences. (Running on oeis4.)