OFFSET
2,1
COMMENTS
A generalization of A064421.
LINKS
Robert Israel, Table of n, a(n) for n = 2..10000
MAPLE
N:= 100: V:= Vector(N): count:= 1: x:= 10: V[10]:= 1: Cands:= [$2..9, $11..1000]: nC:= nops(Cands):
for iter from 2 while count < N-1 do
found:= false;
for i from 1 to nC do
if igcd(Cands[i], x) > 1 then
x:= Cands[i];
Cands:= subsop(i=NULL, Cands);
found:= true;
if x <= N then V[x]:= iter; count:= count+1; fi;
break;
fi
od;
if not found then break fi
od:
convert(V[2..N], list); # Robert Israel, Dec 31 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe and N. J. A. Sloane, Jun 02 2010
STATUS
approved