OFFSET
1,2
FORMULA
EXAMPLE
a(6) = 6 * pod(6) = 6 * 36 = 216.
MATHEMATICA
a[n_] := n^(1 + DivisorSigma[0, n]/2); Array[a, 50] (* Amiram Eldar, Nov 03 2020 *)
PROG
(Magma) [n * &*Divisors(n): n in [1..100]]
(PARI) a(n) = n*vecprod(divisors(n)); \\ Michel Marcus, Nov 03 2020
(Python)
from math import isqrt
from sympy import divisor_count
def A338576(n): return (isqrt(n) if (c:=divisor_count(n)) & 1 else 1)*n**(c//2+1) # Chai Wah Wu, Jun 25 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Nov 03 2020
STATUS
approved