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!)
A366889 Dirichlet inverse of the highest power of two that divides the sum of divisors of n. 3
1, -1, -4, 0, -2, 4, -8, 0, 15, 2, -4, 0, -2, 8, 8, 0, -2, -15, -4, 0, 32, 4, -8, 0, 3, 2, -64, 0, -2, -8, -32, 0, 16, 2, 16, 0, -2, 4, 8, 0, -2, -32, -4, 0, -30, 8, -16, 0, 63, -3, 8, 0, -2, 64, 8, 0, 16, 2, -4, 0, -2, 32, -120, 0, 4, -16, -4, 0, 32, -16, -8, 0, -2, 2, -12, 0, 32, -8, -16, 0, 272, 2, -4, 0, 4, 4, 8, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Multiplicative because A082903 is.
LINKS
FORMULA
a(1) = 1, and for n > 1, a(n) = -Sum_{d|n, d<n} A082903(n/d) * a(d).
PROG
(PARI)
A082903(n) = (2^valuation(sigma(n), 2));
memoA366889 = Map();
A366889(n) = if(1==n, 1, my(v); if(mapisdefined(memoA366889, n, &v), v, v = -sumdiv(n, d, if(d<n, A082903(n/d)*A366889(d), 0)); mapput(memoA366889, n, v); (v)));
(Python)
from functools import lru_cache
from sympy import divisor_sigma, divisors
@lru_cache(maxsize=None)
def A366889(n): return 1 if n==1 else -sum((1<<(~(m:=int(divisor_sigma(d))) & m-1).bit_length())*A366889(n//d) for d in divisors(n, generator=True) if d>1) # Chai Wah Wu, Jan 03 2024
CROSSREFS
Cf. A000203, A082903, A336937, A359548, A359549 (parity of terms).
Sequence in context: A279415 A201399 A145894 * A359589 A021881 A021717
KEYWORD
sign,mult
AUTHOR
Antti Karttunen, Jan 03 2024
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 2 21:21 EDT 2024. Contains 372203 sequences. (Running on oeis4.)