OFFSET
1,2
COMMENTS
In A115387 the minimum (a(j)+a(k)) is taken in case of a tie.
EXAMPLE
Sequence begins 1, 1, 2, 4. Now d(1+1) = 2, d(1+2) = 2, d(1+4) = 2, d(2+2) = 3, d(2+4) = 4, d(4+4)=4. So d(2+4) and d(4+4) are tied for the maximum number of divisors of a sum of two earlier terms of the sequence. But we want the maximum sum among these two values. So a(5) = 4+4 = 8.
PROG
(PARI) {print1(a=1, ", "); v=[a]; for(n=2, 35, dsmax=0; smax=0; for(j=1, #v, for(k=j, #v, s=v[j]+v[k]; d=numdiv(s); if(dsmax==d, smax=max(smax, s), if(dsmax<(d), dsmax=d; smax=s)))); print1(smax, ", "); v=concat(v, smax))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, following a suggestion of Leroy Quet, Jan 22 2006
STATUS
approved