login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A369258
a(n) = number of odd divisors of n that have an odd number of prime factors with multiplicity.
2
0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 2, 0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 0, 2, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 3, 1, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 2, 1, 1, 2, 1, 1, 3, 0, 2, 2, 1, 1, 2, 2, 1, 1, 1, 1, 3, 1, 2, 2, 1, 1, 2, 1, 1, 2, 2, 1, 2, 1, 1, 3, 2, 1, 2, 1, 2, 1, 1, 1, 3, 1, 1, 2, 1, 1, 4
OFFSET
1,15
LINKS
FORMULA
a(n) = Sum_{d|n} A353558(d).
a(n) = A001227(n) - A369257(n).
EXAMPLE
Of the eight odd divisors of 105, the four divisors 3, 5, 7, 105 all have an odd number of prime factors (A001222(d) is odd), therefore a(105) = 4.
MATHEMATICA
Array[DivisorSum[#, 1 &, And[OddQ[#], OddQ@ PrimeOmega[#]] &] &, 120] (* Michael De Vlieger, Jan 24 2024 *)
PROG
(PARI)
A353558(n) = ((n%2)&&(bigomega(n)%2));
A369258(n) = sumdiv(n, d, A353558(d));
CROSSREFS
Inverse Möbius transform of A353558.
Sequence in context: A368774 A005087 A050332 * A337930 A340691 A216658
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 24 2024
STATUS
approved