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!)
A345219 Number of divisors of n with an odd number of primes not exceeding them. 1
0, 1, 0, 1, 1, 2, 0, 1, 0, 2, 1, 3, 0, 1, 1, 1, 1, 3, 0, 2, 0, 2, 1, 4, 2, 2, 1, 2, 0, 3, 1, 2, 2, 3, 2, 5, 0, 1, 0, 2, 1, 3, 0, 2, 1, 2, 1, 5, 1, 4, 2, 3, 0, 4, 2, 2, 0, 1, 1, 5, 0, 2, 0, 2, 1, 4, 1, 4, 2, 4, 0, 6, 1, 2, 3, 2, 2, 4, 0, 2, 1, 2, 1, 6, 3, 2, 1, 3, 0, 4, 0, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,6
LINKS
FORMULA
a(n) = Sum_{d|n} (pi(d) mod 2).
EXAMPLE
a(24) = 4; The divisors d of 24 are: 1, 2, 3, 4, 6, 8, 12, 24 and the corresponding values of pi(d) are: 0, 1, 2, 2, 3, 4, 5, 9. There are 4 odd values of pi(d).
MATHEMATICA
Table[Sum[Mod[PrimePi[k], 2] (1 - Ceiling[n/k] + Floor[n/k]), {k, n}], {n, 100}]
PROG
(PARI) a(n) = sumdiv(n, d, primepi(d) % 2); \\ Michel Marcus, Jun 11 2021
CROSSREFS
Sequence in context: A117054 A036579 A139353 * A357705 A363945 A029397
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jun 11 2021
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 23 05:11 EDT 2024. Contains 372758 sequences. (Running on oeis4.)