OFFSET
1,3
LINKS
Vincenzo Librandi and T. D. Noe, Table of n, a(n) for n = 1..755 (first 123 terms from Vincenzo Librandi)
MATHEMATICA
t = {0, 1, 2}; Do[s = Table[Append[i, n], {i, Subsets[t, {3}]}]; If[! MemberQ[Flatten[Table[Differences[i, 3], {i, s}]], 0], AppendTo[t, n]], {n, 3, 1000}]; t
PROG
(PARI) A240075(n, show=0, L=4, o=2, v=[0], D=v->v[2..-1]-v[1..-2])={ my(d, m); while( #v<n, show&&print1(v[#v]", "); v=concat(v, v[#v]); while( v[#v]++, forvec( i=vector(L, j, [if(j<L, j, #v), #v]), d=D(vecextract(v, i)); m=o; while(m--&&#Set(d=D(d))>1, ); #Set(d)>1||next(2), 2); break)); v[#v]} \\ M. F. Hasler, Jan 12 2016
CROSSREFS
For the positive sequence, see A240555, which is this sequence plus 1.
Summary of increasing sequences avoiding arithmetic progressions of specified lengths (the second of each pair is obtained by adding 1 to the first):
KEYWORD
nonn
AUTHOR
T. D. Noe, Apr 09 2014
EXTENSIONS
Definition corrected by N. J. A. Sloane and M. F. Hasler, Jan 04 2016.
STATUS
approved