OFFSET
1,2
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MathOverflow, A different kind of divisor sums
EXAMPLE
For n = 2 the divisors are 1 and 2, and the a(2) = 3 distinct sums are 1+1=2, 1+2=3, 2+2=4.
MAPLE
T:= proc(n) local D, x, y;
D:= numtheory:-divisors(n);
nops({seq(seq(x+y, x=D), y=D)})
end proc:
seq(T(n), n=1..100);
PROG
(PARI) a(n) = my(v=[], d = divisors(n)); for (i=1, #d, for (j=i, #d, v = concat(v, d[i]+d[j]))); #Set(v); \\ Michel Marcus, Aug 29 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Nov 09 2015
STATUS
approved