A267302 Earliest nonnegative increasing sequence having no 6-term subsequence with constant second differences.
0, 1, 2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 17, 19, 20, 21, 24, 25, 27, 34, 35, 38, 40, 42, 45, 46, 48, 53, 54, 55, 63, 67, 73, 74, 80, 82, 83, 84, 86, 87, 89, 90, 92, 94, 102, 107, 108, 110, 117, 128, 133, 136, 139, 143, 144, 149, 150, 151, 152
Offset: 1
Keywords
Crossrefs
Programs
-
PARI
A267302(n, show=0, L=6, 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