OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10102
MAPLE
A175306:= proc(n)
local R, last, k, P;
R:= n;
last:= n;
P:= n;
while igcd(last, 6)=1 do
for k from last+1 do
if igcd(k-1, P) = 1 and igcd(k, P) = 1 and igcd(k+1, P) =1 then
R:= R, k; last:= k; P:= P*k; break
fi
od
od;
R
end proc:
map(A175306, [$1..100]); # Robert Israel, Feb 10 2017
MATHEMATICA
row[n_] := Module[{R = {n}, last = n, k, P = n}, While[GCD[last, 6] == 1, For[k = last + 1, True, k++, If[GCD[k - 1, P] == 1 && GCD[k, P] == 1 && GCD[k + 1, P] == 1, AppendTo[R, k]; last = k; P = P k; Break[]]]]; R];
Array[row, 100] // Flatten (* Jean-François Alcover, Jul 25 2020, after Robert Israel *)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Leroy Quet, Mar 26 2010
STATUS
approved