OFFSET
1,4
COMMENTS
a(n) = 0 iff n is 1 or a prime (A008578).
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
For n = 12 the divisors of 12 are 1, 2, 3, 4, 6, 12. The central divisors of 12 are both 3 and 4, therefore the noncentral divisors are 1, 2, 6, 12, and the sum of them is 1 + 2 + 6 + 12 = 21, so a(12) = 21.
For n = 16 the divisors of 16 are 1, 2, 4, 8, 16. The central divisor of 16 is 4, therefore the noncentral divisors of 16 are 1, 2, 8, 16, and the sum of them is 1 + 2 + 8 + 16 = 27, so a(16) = 27.
MATHEMATICA
sncd[n_]:=Module[{d=Divisors[n], len}, len=Length[d]; If[EvenQ[len], Total[ Drop[ d, {len/2, len/2+1}]], Total[Drop[d, {(len+1)/2}]]]]; Array[sncd, 70] (* Harvey P. Dale, Apr 13 2019 *)
CROSSREFS
KEYWORD
AUTHOR
Omar E. Pol, Feb 25 2019
STATUS
approved