OFFSET
1,1
EXAMPLE
After 5 the next term is 9 as 2 + 3 + 4 + 5 = 14 and 6, 7 and 8 have common divisors with 14.
MAPLE
a[1]:=2: for m from 2 to 80 do b:=proc(n) if gcd(sum(a[j], j=1..m-1), n)=1 then n else fi end: M:=[seq(b(n), n=a[m-1]+1..200)]: a[m]:=M[1] od:seq(a[n], n=1..80); # Emeric Deutsch, Jul 18 2005
PROG
(PARI) first(n) = my(v = vector(n), s, t); s = v[1] = 2; for(i = 2, n, t=v[i-1]+1; while(gcd(t, s)!=1, t++); v[i]=t; s+=v[i]); v \\ David A. Corneth, Aug 11 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, Jun 19 2001
EXTENSIONS
Corrected and extended by Emeric Deutsch, Jul 18 2005
STATUS
approved