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 A368795 #16 Jan 07 2024 16:33:39 %S A368795 0,1,1,2,4,2,2,1,1,4,2,4,5,5,9,3,3,5,5,10,5,4,7,3,2,8,6,2,4,2,4,7,2,3, %T A368795 6,5,11,1,7,15,9,6,12,10,13,10,2,13,11,8,17,9,10,13,14,1,10,11,17,15, %U A368795 12,1,1,5,12,11,5,6,1,17,3,15,6,6,7,6,6,17,25 %N A368795 Lexicographically earliest sequence of nonnegative integers such that the doubly-infinite symmetric sequence b defined by b(n) = b(-n) = a(n) for any n >= 0 has no three equidistant terms in arithmetic progression. %C A368795 This sequence is a variant of A229037 and A248625 with similar graphical features. %H A368795 Rémy Sigrist, <a href="/A368795/b368795.txt">Table of n, a(n) for n = 0..10000</a> %H A368795 Rémy Sigrist, <a href="/A368795/a368795.png">Scatterplot of the first 1000000 terms</a> %H A368795 Rémy Sigrist, <a href="/A368795/a368795.txt">C++ program</a> %H A368795 <a href="http://oeis.org/wiki/Index_to_OEIS:_Section_No#non_averaging">Index entries for non-averaging sequences</a> %e A368795 For n = 4: %e A368795 - the first 4 terms of the sequence are: 0, 1, 1, 2, %e A368795 - a(4) cannot equal 0 due to the progression b(-4) = 0, b(0) = 0, b(4) = 0, %e A368795 - a(4) cannot equal 1 due to the progression b(-2) = 1, b(1) = 1, b(4) = 1, %e A368795 - a(4) cannot equal 2 due to the progression b(0) = 0, b(2) = 1, b(4) = 2, %e A368795 - a(4) cannot equal 3 due to the progression b(2) = 1, b(3) = 2, b(4) = 3, %e A368795 - we chose a(4) = 4 as this does not induce arithmetic progressions. %o A368795 (C++) See Links section. %Y A368795 Cf. A229037, A248625, A368797, A368798. %K A368795 nonn,look %O A368795 0,4 %A A368795 _Rémy Sigrist_, Jan 06 2024