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!)
A361025 a(n) = A007814(sigma(n)) - A007814(n), where A007814(n) gives the 2-adic valuation of n, and sigma is the sum of divisors function. 3
0, -1, 2, -2, 1, 1, 3, -3, 0, 0, 2, 0, 1, 2, 3, -4, 1, -1, 2, -1, 5, 1, 3, -1, 0, 0, 3, 1, 1, 2, 5, -5, 4, 0, 4, -2, 1, 1, 3, -2, 1, 4, 2, 0, 1, 2, 4, -2, 0, -1, 3, -1, 1, 2, 3, 0, 4, 0, 2, 1, 1, 4, 3, -6, 2, 3, 2, -1, 5, 3, 3, -3, 1, 0, 2, 0, 5, 2, 4, -3, 0, 0, 2, 3, 2, 1, 3, -1, 1, 0, 4, 1, 7, 3, 3, -3, 1, -1, 2, -2, 1, 2, 3, -2, 6 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(n) = A336937(n) - A007814(n).
Additive with a(2^e) = -e, and for odd primes p, a(p^2e) = 0, a(p^(2e-1)) = A007814(1+p) + A007814(e). - Antti Karttunen, Nov 23 2023
MATHEMATICA
a[n_] := IntegerExponent[DivisorSigma[1, n], 2] - IntegerExponent[n, 2]; Array[a, 100] (* Amiram Eldar, Mar 03 2023 *)
PROG
(PARI) A361025(n) = (valuation(sigma(n), 2) - valuation(n, 2));
CROSSREFS
Cf. A216780 (positions of 0's), A361024 (their characteristic function), A216781 (positions of terms < 0), A216782 (positions of terms > 0), A324903 (their characteristic function).
Sequence in context: A179541 A057060 A198380 * A152805 A064894 A003638
KEYWORD
sign
AUTHOR
Antti Karttunen, Mar 03 2023
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 1 14:59 EDT 2024. Contains 372174 sequences. (Running on oeis4.)