A267305 Earliest positive increasing sequence having no 7-term subsequence with constant second differences.
1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 22, 25, 27, 29, 30, 32, 34, 36, 39, 41, 42, 44, 50, 51, 53, 54, 59, 60, 63, 64, 65, 70, 71, 73, 74, 78, 82, 83
Offset: 1
Crossrefs
Cf. A267304 (nonnegative variant: starting with 0).
Cf. A240075 and A240555 for sequences avoiding 4-term subsequences with constant second differences.
Cf. A267300 and A267301 for sequences avoiding 5-term subsequences with constant second differences.
Programs
-
PARI
A267305(n, show=0, L=7, o=2, v=[1], 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