OFFSET
1,3
COMMENTS
Note that if n is prime then a(n) = n - 1.
EXAMPLE
a(10) = 13 because the divisors of 10 are 1, 2, 5, 10; the triangle of absolute differences is
1, 3, 5;
. 2, 2;
. 0;
and the sum of the terms of triangle is 1+3+5+2+2+0 = 13.
MATHEMATICA
Table[Total[Flatten[NestList[Abs[Differences[#]]&, Differences[Divisors[ n]], DivisorSigma[0, n]-1]]], {n, 60}] (* Harvey P. Dale, Aug 10 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Aug 04 2011
STATUS
approved