OFFSET
0,2
LINKS
Ivan Neretin, Table of n, a(n) for n = 0..10000
EXAMPLE
For those k where 0 <= k <= 9, gcd(a(3),10) = 5 is the largest value for a gcd(a(k),10). So a(10) = a(9) + 5 = 46.
For those k where 0 <= k <= 11, gcd(a(7),12) = 12 is the largest value for a gcd(a(k),12). So a(12) = a(11) + 12 = 59.
MAPLE
a[0]:=1: for n from 1 to 70 do a[n]:=a[n-1]+max((seq(gcd(a[k], n), k=0..n-1))) od: seq(a[n], n=0..70); # Emeric Deutsch, Apr 11 2007
MATHEMATICA
Fold[Append[#1, #1[[-1]] + Max@GCD[#1, #2]] &, {1}, Range[55]] (* Ivan Neretin, Oct 24 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Apr 07 2007
EXTENSIONS
More terms from Emeric Deutsch, Apr 11 2007
STATUS
approved