OFFSET
1,1
COMMENTS
The divisors must be > 1 and < n.
For the minimum sums see A273227.
EXAMPLE
a(14) = 14 because A002808(14) = 24 = 2*12 = 3*8 = 4*6 and 2+12 = 14 is the maximum sum.
MAPLE
with(numtheory):nn:=100:lst:={}:
for n from 1 to nn do:
it:=0:lst:={}:
d:=divisors(n):n0:=nops(d):
if n0>2 then
for i from 2 to n0-1 do:
p:=d[i]:
for j from i to n0-1 do:
q:=d[j]:
if p*q=n then
lst:=lst union {p+q}:
else
fi:
od:
od:
n0:=nops(lst):printf(`%d, `, lst[n0]):
fi:
od:
MATHEMATICA
Function[n, Max@ Map[Plus[#, n/#] &, Rest@ Take[#, Ceiling[Length[#]/2]]] &@ Divisors@ n] /@ Select[Range@ 120, CompositeQ] (* Michael De Vlieger, May 30 2016 *)
PROG
(PARI) lista(nn) = {forcomposite(n=2, nn, m = 0; fordiv(n, d, if ((d != 1) && (d != n), m = max(m, d+n/d)); ); print1(m, ", "); ); } \\ Michel Marcus, Sep 13 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, May 30 2016
EXTENSIONS
Name edited by Jon E. Schoenfield, Sep 12 2017
STATUS
approved