OFFSET
1,4
EXAMPLE
The positive integers which are <= 8 and do not occur among the first 7 terms of the sequence are 2,4,5,6,7,8. a(8) is the largest proper divisor of the sum of these integers. 2+4+5+6+7+8 = 32. So a(8) is the largest proper divisor of 32, which is 16.
MATHEMATICA
a = {1}; For[n = 2, n < 70, n++, AppendTo[a, Divisors[n*(n + 1)/2 - Plus @@ Select[Union[a, a], # < n + 1 &]][[ -2]]]]; a (* Stefan Steinerberger, Nov 21 2007 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, May 30 2007
EXTENSIONS
More terms from Stefan Steinerberger, Nov 21 2007
STATUS
approved