This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A267302 #5 Jan 13 2016 00:42:07 %S A267302 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, %T A267302 46,48,53,54,55,63,67,73,74,80,82,83,84,86,87,89,90,92,94,102,107,108, %U A267302 110,117,128,133,136,139,143,144,149,150,151,152 %N A267302 Earliest nonnegative increasing sequence having no 6-term subsequence with constant second differences. %o A267302 (PARI) A267302(n, show=0, L=6, 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 %Y A267302 Cf. A267303 (positive variant: starting with 1). %Y A267302 No 3-term AP: A005836 (>=0), A003278 (>0); %Y A267302 no 4-term AP: A240075 (>=0), A240555 (>0); %Y A267302 no 5-term AP: A020654 (>=0), A020655 (>0); %Y A267302 no 6-term AP: A020656 (>=0), A005838 (>0); %Y A267302 no 7-term AP: A020657 (>=0), A020658 (>0); %Y A267302 no 8-term AP: A020659 (>=0), A020660 (>0); %Y A267302 no 9-term AP: A020661 (>=0), A020662 (>0); %Y A267302 no 10-term AP: A020663 (>=0), A020664 (>0). %Y A267302 Cf. A240075 and A240555 for sequences avoiding 4-term subsequences with constant second differences. %Y A267302 Cf. A267300 and A267301 for sequences avoiding 5-term subsequences with constant second differences. %Y A267302 Cf. A240556 and A240557 for sequences avoiding 5-term subsequences with constant third differences. %K A267302 nonn %O A267302 1,3 %A A267302 _M. F. Hasler_, Jan 12 2016