OFFSET
1,2
EXAMPLE
15 follows 10 as (8,10) = 2 so 12 and 14 are ruled out.
MATHEMATICA
a[1] = 1; a[2] = 2;
a[n_] := a[n] = Module[{k}, For[k = a[n-1] + 1, True, k++, If[GCD[a[n-1], a[n-2]] != GCD[k, a[n-1]] && GCD[k, a[n-1]] > 1, Return[k]]]];
Table[a[n], {n, 1, 60}] (* Jean-François Alcover, Oct 25 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Oct 17 2002
EXTENSIONS
More terms from Jean-François Alcover, Oct 25 2023
STATUS
approved