OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
From Wesley Ivan Hurt, Jun 08 2020: (Start)
a(n) = Product_{d|n, d even} d.
If n is odd or an even squarefree number, then a(n) = floor((2*n)^(1 - ceiling(n/2) + floor(n/2)) * (d(n)/4)). (End)
MATHEMATICA
Table[Times@@Select[Divisors[n], EvenQ], {n, 70}] (* Harvey P. Dale, Jul 06 2017 *)
a[n_] := Module[{e = IntegerExponent[n, 2], o, d}, o = n/2^e; d = DivisorSigma[0, o]; n^(d*(e+1)/2)/o^(d/2)]; Array[a, 100] (* Amiram Eldar, Jun 26 2022 *)
PROG
(PARI) a(n) = my(d=divisors(n)); prod(k=1, #d, if (!(d[k]%2), d[k], 1)); \\ Michel Marcus, Jun 08 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jul 14 2008
STATUS
approved