login
A336386
a(n) = bigomega(sigma(n)) - bigomega(n), where bigomega (A001222) gives the number of prime factors with multiplicity, and sigma (A000203) gives the sum of divisors.
4
0, 0, 1, -1, 1, 1, 2, -1, -1, 1, 2, 0, 1, 2, 2, -3, 2, -1, 2, 0, 3, 2, 3, 0, -1, 1, 1, 1, 2, 2, 4, -2, 3, 2, 3, -2, 1, 2, 2, 0, 2, 3, 2, 1, 0, 3, 4, -2, 0, -1, 3, 0, 3, 1, 3, 1, 3, 2, 3, 1, 1, 4, 1, -5, 2, 3, 2, 1, 4, 3, 4, -2, 1, 1, 0, 1, 4, 2, 4, -2, -2, 2, 3, 2, 3, 2, 3, 1, 3, 0, 3, 2, 5, 4, 3, -1, 2, 0, 1, -2, 2, 3, 3, 0, 4
OFFSET
1,7
FORMULA
a(n) = A058063(n) - A001222(n).
Additive with a(p^e) = A001222(A000203(p^e)) - A001222(p^e) = A001222(1 + p + p^2 + ... + p^e) - e.
PROG
(PARI) A336386(n) = (bigomega(sigma(n)) - bigomega(n));
CROSSREFS
Cf. A336356, A336359 (positions of negative terms), A336360 (of nonnegative terms).
Sequence in context: A056563 A088231 A327954 * A378622 A279126 A210679
KEYWORD
sign
AUTHOR
Antti Karttunen, Jul 20 2020
STATUS
approved