OFFSET
1,6
COMMENTS
LINKS
Winston de Greef, Table of n, a(n) for n = 1..10000
Michael De Vlieger, Log log scatterplot of a(n), n = 1..2^16.
Michael De Vlieger, Detail of scalar scatterplot of a(n), n = 1..2^16, a(n) <= 384.
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) = 3.
For n = 15 the middle divisors of 15 are [3, 5]. There are two odd middle divisors of 15 so a(15) = 3 + 5 = 8.
MATHEMATICA
Table[Total@ Select[Divisors[n], And[Sqrt[n/2] <= # < Sqrt[2 n], OddQ[#] ] &], {n, 100}] (* Michael De Vlieger, Mar 27 2023 *)
PROG
(PARI) a(n) = vecsum(select(x->((x >= sqrt(n/2)) && (x < sqrt(n*2)) && x%2), divisors(n))); \\ Michel Marcus, Mar 26 2023
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Omar E. Pol, Mar 25 2023
STATUS
approved