OFFSET
1,3
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..250
EXAMPLE
a(5)=2*3*4=24, a(6)=4*5=20.
MATHEMATICA
Table[Apply[Times, Complement[Range[n], Divisors[n]]], {n, 1, 20}] (* Geoffrey Critzer, Dec 13 2014 *)
a[n_] := n!/n^(DivisorSigma[0, n]/2); Array[a, 25] (* Amiram Eldar, Jun 26 2022 *)
PROG
(Haskell)
a055067 n = product [k | k <- [1..n], mod n k /= 0]
-- Reinhard Zumkeller, Feb 06 2012
(PARI) a(n) = n!/vecprod(divisors(n)); \\ Michel Marcus, Dec 26 2021
(Python)
from math import factorial, isqrt
from sympy import divisor_count
def A055067(n): return factorial(n)//(isqrt(n)**c if (c:=divisor_count(n)) & 1 else n**(c//2)) # Chai Wah Wu, Jun 25 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Henry Bottomley, Jun 12 2000
EXTENSIONS
More terms from David Wasserman, Mar 15 2002
STATUS
approved