OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Harry J. Smith)
EXAMPLE
75 is a term because the sum of the aliquot divisors of 75 = 1 + 3 + 5 + 15 + 25 = 49 = 7^2 and the product of the aliquot divisors of 75 = 1*3*5*15*25 = 75^2.
MATHEMATICA
Do[d = Delete[ Divisors[n], -1]; If[ !PrimeQ[n] && IntegerQ[ Sqrt[ Apply[ Plus, d]]] && IntegerQ[ Sqrt[ Apply[ Times, d]]], Print[n]], {n, 2, 10^4} ]
spsQ[n_]:=Module[{d=Most[Divisors[n]]}, CompositeQ[n]&&AllTrue[{Sqrt[ Total[ d]], Sqrt[Times@@d]}, IntegerQ]]; Select[Range[5100], spsQ] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Feb 14 2018 *)
PROG
(PARI) isok(k) = { my(s=sigma(k) - k); s>1 && issquare(s) && issquare(vecprod(divisors(k)[1..-2])) } \\ Harry J. Smith, Sep 07 2009
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Shyam Sunder Gupta, Sep 09 2001
EXTENSIONS
More terms from Robert G. Wilson v, Oct 05 2001
STATUS
approved