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.
FORMULA
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
KEYWORD
nonn
AUTHOR
Omar E. Pol, Mar 14 2023
STATUS
approved