A187794 Sum of the perfect divisors of n.
0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 28, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 28, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 34, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 28, 0, 6
Offset: 1
Keywords
Examples
a(84) = 6+28 = 34 since both 6 and 28 divide 84. - _Timothy L. Tiffin_, Jul 14 2016
Links
- G. C. Greubel, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
a[n_] := DivisorSum[n, If[DivisorSigma[1, #] == 2#, #, 0]&]; Array[a, 114] (* Jean-François Alcover, Dec 18 2015 *)
-
PARI
a(n)=sumdiv(n,d,(sigma(d,-1)==2)*d) \\ Charles R Greathouse IV, Jan 16 2013
Comments