A318169 Composite numbers k such that sigma_2(k) - 1 is a square, where sigma_2(k) = A001157(k) is the sum of squares of divisors of k.
6, 40, 136, 2696, 3352, 46976, 223736, 5509736, 1915798072
Offset: 1
Programs
-
Magma
[n: n in [2..6*10^6] |not IsPrime(n) and IsSquare(DivisorSigma(2, n)-1)]; // Vincenzo Librandi, Aug 22 2018
-
Mathematica
sQ[n_] := IntegerQ[Sqrt[n]]; aQ[n_] := CompositeQ[n] && sQ[DivisorSigma[2,n]-1]; Select[Range[10000],aQ]
-
PARI
forcomposite(n=2, 1e15, if( issquare(sigma(n,2)-1), print1(n, ", ")))
Comments