editing
approved
editing
approved
sdQ[n_]:=Module[{d=DivisorSigma[1, n]}, AllTrue[{Sqrt[d], Sqrt[d-n]}, IntegerQ]]; Select[Range[73*10^5], sdQ] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Apr 17 2018 *)
approved
editing
proposed
approved
editing
proposed
(Sage) is_A176996 = lambda n: is_square(sigma(n)) and is_square(sigma(n)-n) # [_D. S. McNeil, _, Dec 9 09 2010]
approved
editing
Intersection[Select[Range[10^5], IntegerQ[Sqrt[-# + Plus@@Divisors[#]]] &], Select[Range[10^5], IntegerQ[Sqrt[Plus@@Divisors[#]]] &]] (* From _Alonso del Arte, _, Dec 08 2010 *)
reviewed
approved
proposed
reviewed
editing
proposed
t = {}; Do[If[And @@ IntegerQ /@ Sqrt[{x = DivisorSigma[1, n], x - n}], AppendTo[t, n]], {n, 10^6}]; t (* Jayanta Basu, Jul 27 2013 *)
approved
editing