OFFSET
1,2
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000
EXAMPLE
Term after 33 cannot be 44 because 33 and 44 have a common factor of 11.
MATHEMATICA
a[1]=1; a[2]=2; a[n_]:=a[n]=Module[{d=a[n-1]-a[n-2]+1}, While[!CoprimeQ[a[n-1]+d, a[n-1]], d++]; a[n-1]+d]; a/@Range[70] (* Ivan N. Ianakiev, Apr 23 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
J. Lowell, Apr 22 2021
STATUS
approved