OFFSET
1,1
REFERENCES
Albert H. Beiler, Recreations in the Theory of Numbers, 2nd ed., pages 10, 23. New York: Dover, 1966. ISBN 0-486-21096-0.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
The third composite number is 8. The product of all divisors of 8 is 8*4*2*1 = 64.
Divisors(48) = {1,2,3,4,6,8,12,16,24,48} => product {1,2,3,4,6,8,12,16,24,48} = 254803968.
Divisors(49) = {1,7,49} => product {1,7,49} = 343.
Divisors(50) = {1,2,5,10,25,50} => product {1,2,5,10,25,50} = 125000.
MATHEMATICA
Rest[Times@@Divisors[#]&/@Complement[Range[100], Prime[ Range[ PrimePi[ 100]]]]] (* Harvey P. Dale, Jan 08 2011 *)
pd[n_] := n^(DivisorSigma[0, n]/2); pd /@ Select[Range[100], CompositeQ] (* Amiram Eldar, Sep 07 2019 *)
PROG
(Python)
from math import isqrt
from sympy import divisor_count, composite
def A048740(n): return (lambda m:isqrt(m)**c if (c:=divisor_count(m)) & 1 else m**(c//2))(composite(n)) # Chai Wah Wu, Jun 25 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
EXTENSIONS
Corrected by Neven Juric (neven.juric(AT)apis-it.hr), May 25 2006
STATUS
approved
