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!)
A358434 Number of odd middle divisors of n, where "middle divisor" means a divisor in the half-open interval [sqrt(n/2), sqrt(n*2)). 3
1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 1, 0, 0, 2, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 2, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,15
COMMENTS
Number of odd divisors of n in the half-open interval [sqrt(n/2), sqrt(n*2)).
Also number of odd numbers in the n-th row of A299761.
LINKS
FORMULA
a(n) = A067742(n) - A361561(n). - Omar E. Pol, Mar 31 2023
EXAMPLE
For n = 8 the middle divisor of 8 is [2]. There are no odd middle divisors of 8 so a(8) = 0.
For n = 12 the middle divisors of 12 are [3, 4]. There is only one odd middle divisor of 12 so a(12) = 1.
For n = 15 the middle divisors of 15 are [3, 5]. There are two odd middle divisors of 15 so a(15) = 2.
MATHEMATICA
Table[DivisorSum[n, 1 &, And[OddQ[#], Sqrt[n/2] <= # < Sqrt[2*n]] &], {n, 120}] (* Michael De Vlieger, Mar 31 2023 *)
PROG
(PARI) a(n) = #select(x->((x >= sqrt(n/2)) && (x < sqrt(n*2)) && x%2), divisors(n)); \\ Michel Marcus, Mar 26 2023
CROSSREFS
Sequence in context: A116376 A165766 A102082 * A030199 A320005 A325414
KEYWORD
nonn
AUTHOR
Omar E. Pol, Mar 14 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 17 16:19 EDT 2024. Contains 372603 sequences. (Running on oeis4.)