|
|
A267301
|
|
Earliest positive increasing sequence having no 5-term subsequence with constant second differences.
|
|
8
|
|
|
1, 2, 3, 4, 6, 7, 8, 9, 12, 14, 17, 20, 21, 23, 25, 31, 32, 37, 46, 47, 53, 56, 61, 63, 64, 67, 70, 72, 76, 87, 90, 93, 104, 112, 116, 120, 135, 138, 146, 153, 164, 177, 179, 180, 197, 201, 221, 224, 276, 277, 279, 282, 283, 285, 287, 295, 305, 317, 320, 327, 340, 354, 361, 364, 377, 380, 385, 391, 403, 415, 424, 430, 443
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
PROG
|
(PARI) A267301(n, show=0, L=5, o=2, v=[1], 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
|
Cf. A267300 (nonnegative variant: starting with 0).
Cf. A240075 and A240555 for sequences avoiding 4-term subsequences with constant second differences.
Cf. A240556 and A240557 for sequences avoiding 5-term subsequences with constant third differences.
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|