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!)
A154282 Dirichlet inverse of A154281. 4
1, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Sequence is positive as often as negative.
Multiplicative because A154281 is. - Andrew Howroyd, Aug 05 2018
LINKS
FORMULA
Multiplicative with a(2^e) = (-1)^(e/2) if e is even and 0 is e is odd, and a(p^e) = 0 if p is an odd prime. - Amiram Eldar, Aug 27 2023
MATHEMATICA
nn = 95; a = PadRight[{1, 0, 0, 1}, nn, 0]; Inverse[Table[Table[If[Mod[n, k] == 0, a[[n/k]], 0], {k, 1, nn}], {n, 1, nn}]][[All, 1]] (* Mats Granvik, Jul 23 2017 *)
PROG
(PARI) a(n) = {my(e=valuation(n, 2)); if(e%2 == 0 && n == 1<<e, (-1)^(e/2), 0)} \\ Andrew Howroyd, Aug 05 2018
CROSSREFS
Sequence in context: A246500 A185114 A154281 * A359552 A224877 A178600
KEYWORD
sign,easy,mult
AUTHOR
Mats Granvik, Jan 06 2009
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 23 03:43 EDT 2024. Contains 372758 sequences. (Running on oeis4.)