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!)
A304653 a(n) = (-1)^Omega(n) if n is not a perfect power > 1, and 0 otherwise. 3
1, -1, -1, 0, -1, 1, -1, 0, 0, 1, -1, -1, -1, 1, 1, 0, -1, -1, -1, -1, 1, 1, -1, 1, 0, 1, 0, -1, -1, -1, -1, 0, 1, 1, 1, 0, -1, 1, 1, 1, -1, -1, -1, -1, -1, 1, -1, -1, 0, -1, 1, -1, -1, 1, 1, 1, 1, 1, -1, 1, -1, 1, -1, 0, 1, -1, -1, -1, 1, -1, -1, -1, -1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
COMMENTS
Omega(n) = A001222(n) is the number of prime factors of n counted with multiplicity.
LINKS
EXAMPLE
Agrees with Moebius function A008683 except for numbers like 12, 18, .... Moebius(12) = 0, a(12) = (-1)^3 = -1. - N. J. A. Sloane, May 26 2018
MATHEMATICA
Table[If[GCD @@ FactorInteger[n][[All, 2]] == 1, (-1)^PrimeOmega[n], 0], {n, 100}]
CROSSREFS
An unsigned version is A132350.
Sequence in context: A267708 A167021 A267687 * A132350 A076213 A368907
KEYWORD
sign
AUTHOR
Gus Wiseman, May 18 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 21 17:21 EDT 2024. Contains 372738 sequences. (Running on oeis4.)