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!)
A304362 a(n) = Sum_{d|n, d = 1 or not a perfect power} mu(n/d). 11
1, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, -1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 0, 1, 1, -1, 0, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
COMMENTS
The Moebius function mu is defined by mu(n) = (-1)^k if n is a product of k distinct primes and mu(n) = 0 otherwise.
Up to n = 10^7 this sequence only takes values in {-2, -1, 0, 1, 2}. Is this true in general?
LINKS
FORMULA
a(n) = mu(n) + Sum_{d * e = n, d in A007916, e in A005117} (-1)^omega(e), where mu = A008683 and omega = A001221.
MATHEMATICA
Table[Sum[If[GCD@@FactorInteger[d][[All, 2]]===1, MoebiusMu[n/d], 0], {d, Divisors[n]}], {n, 100}]
PROG
(PARI) A304362(n) = sumdiv(n, d, if(!ispower(d), moebius(n/d), 0)); \\ Antti Karttunen, Jul 29 2018
CROSSREFS
Sequence in context: A353800 A353374 A326072 * A368997 A330682 A230135
KEYWORD
sign
AUTHOR
Gus Wiseman, May 11 2018
EXTENSIONS
More terms from Antti Karttunen, Jul 29 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 18 04:34 EDT 2024. Contains 372618 sequences. (Running on oeis4.)