OFFSET
1,4
LINKS
Michel Marcus, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = 1 if n=1 or n is prime; a(n) = n if n=1 or n is semiprime (A001358).
From Wesley Ivan Hurt, Jun 08 2020: (Start)
a(n) = Product_{d|n, d nonprime} d.
If n is squarefree, then a(n) = n^(d(n)/2-1), where d(n) is the number of divisors of n (A000005). (End)
a(p^e) = p^((e^2+e-2)/2) for p prime, e > 0. - Bernard Schott, Jun 08 2020
EXAMPLE
n=12: nonprime divisors = {4,6,12}: a(12) = 4*6*12 = 288.
PROG
(PARI) a(n) = my(p=1); fordiv(n, d, if (!isprime(d), p*=d)); p; \\ Michel Marcus, Aug 05 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Sep 25 2003
STATUS
approved