OFFSET
1,4
EXAMPLE
For n = 6 the middle divisors of 6 are 2 and 3, the product of them is 2*3 = 6, so a(6) = 6.
For n = 7 there are no middle divisors of 7, so a(7) = 0.
For n = 8 there is only one middle divisor of 8, the 2, so a(8) = 2.
For n = 72 the middle divisors of 72 are [6, 8, 9], the product of them is 6*8*9 = 432, so a(72) = 432.
MATHEMATICA
a[n_] := If[(p = Product[If[Sqrt[n/2] <= d < Sqrt[2*n], d, 1], {d, Divisors[n]}]) == 1 && n > 2, 0, p]; Array[a, 100] (* Amiram Eldar, Jun 21 2022 *)
PROG
(PARI) a(n) = my(v=select(x->((x >= sqrt(n/2)) && (x < sqrt(n*2))), divisors(n))); if (#v, vecprod(v), 0); \\ Michel Marcus, Aug 04 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Jun 20 2022
EXTENSIONS
More terms from Amiram Eldar, Jun 21 2022
STATUS
approved