A267300 Earliest positive increasing sequence having no 5-term subsequence with constant second differences.
0, 1, 2, 3, 5, 6, 7, 8, 11, 13, 16, 19, 20, 22, 24, 30, 31, 36, 45, 46, 52, 55, 60, 62, 63, 66, 69, 71, 75, 86, 89, 92, 103, 111, 115, 119, 134, 137, 145, 152, 163, 176, 178, 179, 196, 200, 220, 223, 275, 276, 278, 281, 282, 284, 286, 294, 304, 316, 319, 326, 339, 353, 360, 363, 376, 379, 384, 390, 402, 414, 423, 429, 442
Offset: 1
Keywords
Crossrefs
Programs
-
PARI
A267300(n, show=0, L=5, o=2, v=[0], D=v->v[2..-1]-v[1..-2])={ my(d, m); while( #v
1, ); #Set(d)>1||next(2), 2); break)); v[#v]} \\ M. F. Hasler, Jan 12 2016