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!)
A358272 Multiplicative sequence with a(p^e) = (-1)^e * p^(2*floor(e/2)) for prime p and e >= 0. 1
1, -1, -1, 4, -1, 1, -1, -4, 9, 1, -1, -4, -1, 1, 1, 16, -1, -9, -1, -4, 1, 1, -1, 4, 25, 1, -9, -4, -1, -1, -1, -16, 1, 1, 1, 36, -1, 1, 1, 4, -1, -1, -1, -4, -9, 1, -1, -16, 49, -25, 1, -4, -1, 9, 1, 4, 1, 1, -1, 4, -1, 1, -9, 64, 1, -1, -1, -4, 1, -1, -1, -36, -1, 1, -25, -4, 1, -1, -1, -16 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
Signed version of A008833.
LINKS
FORMULA
a(n) = lambda(n) * A008833(n) for n > 0 where lambda(n) = A008836(n).
Dirichlet g.f.: zeta(2*s-2) / zeta(s).
Dirichlet inverse b(n), n > 0, is multiplicative with b(p) = 1 and b(p^e) = 1 - p^2 for prime p and e > 1.
Dirichlet convolution with A034444 equals A008833.
Equals Dirichlet convolution of A000010 and A061019.
Conjecture: a(n) = Sum_{k=1..n} gcd(k, n) * lambda(gcd(k, n)) for n > 0.
MAPLE
A358272 := proc(n)
local a, pe, e, p ;
a := 1;
for pe in ifactors(n)[2] do
e := op(2, pe) ;
p := op(1, pe) ;
a := a*(-1)^e*p^(2*floor(e/2)) ;
end do:
a ;
end proc:
seq(A358272(n), n=1..80) ; # R. J. Mathar, Jan 17 2023
MATHEMATICA
f[p_, e_] := (-1)^e * p^(2*Floor[e/2]); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Nov 07 2022 *)
PROG
(Python)
from math import prod
from sympy import factorint
def A358272(n): return prod(-p**(e&-2) if e&1 else p**(e&-2) for p, e in factorint(n).items()) # Chai Wah Wu, Jan 17 2023
CROSSREFS
Sequence in context: A335324 A366245 A083730 * A008833 A162400 A332012
KEYWORD
sign,easy,mult
AUTHOR
Werner Schulte, Nov 07 2022
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 20 21:47 EDT 2024. Contains 372720 sequences. (Running on oeis4.)