OFFSET
1,1
COMMENTS
Contains all members of A006093 except 1. - Robert Israel, Mar 06 2016
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..1000
MAPLE
N:= 1000: # to get all terms <= N
V:= Vector(N):
a[1]:= 2: finished:= false:
for n from 2 do
for i from a[n-1]+1 do
if i > N then
finished:= true; break
elif V[i] = 0 then break
fi
od:
if finished then break fi;
a[n]:= i;
S:= select(`<=`, [seq(a[j]*i-1, j=1..n-1)], N);
if S <> [] then V[S]:= 1 fi;
od:
seq(a[i], i=1..n-1); # Robert Israel, Mar 06 2016
MATHEMATICA
a = {2, 3}; used = {a[[1]]*a[[2]] - 1}; Do[k = a[[-1]] + 1; While[MemberQ[used, k], k++]; used = Union[used, k*a - 1]; AppendTo[a, k], {n, 3, 60}]; a (* Ivan Neretin, Mar 06 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved