OFFSET
1,3
COMMENTS
The middle divisors of k (see A299761) are the divisors in the half-open interval [sqrt(k/2), sqrt(k*2)), k >= 1.
LINKS
Michel Marcus, Table of n, a(n) for n = 1..6934
Michael De Vlieger, Plot (n,d) at (x,y) for middle divisors d | n and n <= 2^16.
Michael De Vlieger, Plot (n,d) at (x,y) for middle divisors d | n and n <= 345, labeling n, and showing composite prime powers in gold, squarefree composites in green, numbers neither squarefree nor composite in blue, and highlighting products of composite prime powers in large light blue.
Michael De Vlieger, Plot (n,d) at (x,y) for middle divisors d | n and n <= 2^16, with same color function as above so as to show patterns according to prime power decomposition of n.
EXAMPLE
The middle divisor of 1 is 1, so a(1) = 1.
The middle divisor of 2 is 1, so a(2) = 1.
There are no middle divisors of 3.
The middle divisor of 4 is 2, so a(3) = 2.
There are no middle divisors of 5.
The middle divisors of 6 are 2 and 3, so a(4) = 2 and a(5) = 3.
There are no middle divisors of 7.
The middle divisor of 8 is 2, so a(6) = 2.
The middle divisor of 9 is 3, so a(7) = 3.
There are no middle divisors of 10.
There are no middle divisors of 11.
The middle divisors of 12 are 3 and 4, so a(8) = 3 and a(9) = 4.
MATHEMATICA
Table[Select[Divisors@ n, Sqrt[n/2] <= # < Sqrt[2 n] &] /. {} -> Nothing, {n, 135}] // Flatten (* Michael De Vlieger, Jun 14 2018 *)
PROG
(PARI) lista(nn) = {my(list = List()); for (n=1, nn, my(v = select(x->((x >= sqrt(n/2)) && (x < sqrt(n*2))), divisors(n))); for (i=1, #v, listput(list, v[i])); ); Vec(list); } \\ Michel Marcus, Mar 26 2023
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Omar E. Pol, Apr 30 2018
STATUS
approved