OFFSET
0,2
EXAMPLE
17 belongs to this sequence as 17 + 1, 17 + 3, 17 + 15 all are divisible by some square.
MATHEMATICA
a[0] = 1; a[n_] := a[n] = Module[{t = Array[a, n, 0], k = a[n - 1] + 1}, While[! SquareFreeQ[k] || AnyTrue[t, SquareFreeQ[k + #] &], k++]; k]; Array[a, 20, 0] (* Amiram Eldar, Aug 21 2023 *)
PROG
(PARI) v=vector(60); v[1]=1; print1("1, "); for(n=2, 60, for(k=1, 10^15, if(issquarefree(k), s=0; for(l=1, n-1, if(issquarefree(k+v[l]), break); s=s+1)); if(s==n-1, print1(k", "); v[n]=k; break)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Nov 03 2002
EXTENSIONS
Edited by Ralf Stephan, Mar 25 2003
More terms from Sam Alexander, Dec 12 2003
a(22) corrected and a(33)-a(35) added by Amiram Eldar, Aug 21 2023
STATUS
approved