OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
Multiplicative with a(p^e) = p^((e+1)/2) if e is odd, 2^(e/2+1) if p=2 and e is even, p^(e/2) if p>2 and e is even. - Vladeta Jovovic, May 15 2003
Sum_{k=1..n} a(k) ~ c * n^2, where c = (13/24)*zeta(3)/zeta(2) = 0.395829... . - Amiram Eldar, Oct 27 2022
MATHEMATICA
Table[k = 1; While[Nand @@ IntegerQ /@ {(n + k)/2, g = Sqrt[n*k]}, k++]; g, {n, 75}] (* Jayanta Basu, Jul 14 2013 *)
f[p_, e_] := If[OddQ[e], p^((e + 1)/2), If[p == 2, 2^(e/2 + 1), p^(e/2)]]; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Sep 09 2020*)
PROG
(PARI) a(n) = {my(f = factor(n)); prod(i = 1, #f~, if(f[i, 2]%2, f[i, 1]^((f[i, 2]+1)/2), if(f[i, 1]==2, 2^(f[i, 2]/2+1), f[i, 1]^(f[i, 2]/2)))); } \\ Amiram Eldar, Oct 27 2022
CROSSREFS
KEYWORD
nonn,easy,mult
AUTHOR
EXTENSIONS
More terms from Vladeta Jovovic, May 15 2003
STATUS
approved