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 A336264 #15 Jul 19 2020 04:07:01 %S A336264 0,1,-1,2,3,-2,-3,-4,4,5,-5,-6,-7,6,7,8,9,-8,-9,-10,-11,10,11,12,13, %T A336264 14,-12,-13,-14,-15,-16,15,16,17,18,19,20,-17,-18,-19,-20,-21,-22,-23, %U A336264 21,22,23,24,25,26,-24,-25,-26,-27,-28,-29,-30,27,28,29,30,31 %N A336264 a(0) = 0, and then the sequence alternates runs of distinct numbers with the same sign, the n-th run having abs(a(n)) terms; all positive numbers appear, in increasing order; all negative numbers appear, in decreasing order; a(1) = 1. %C A336264 This sequence has similarities with Golomb's sequence (A001462) and A113138. %C A336264 Every integer appears once in this sequence. %H A336264 Rémy Sigrist, <a href="/A336264/b336264.txt">Table of n, a(n) for n = 0..10000</a> %H A336264 Rémy Sigrist, <a href="/A336264/a336264.gp.txt">PARI program for A336264</a> %e A336264 a(0) = 0 and a(1) = 1 by definition. %e A336264 So the first run of positive terms has abs(a(1)) = 1 term. %e A336264 a(2) starts the first run of negative terms: a(2) = -1; this run has abs(a(2)) = 1 term. %e A336264 a(3) starts the second run of positive terms: a(3) = 2; this run has abs(a(3)) = 2 terms, so a(4) = 3. %e A336264 a(5) starts the second run of negative terms and has abs(a(4)) = 3 terms: a(5) = -2, a(6) = -3, a(7) = -4. %o A336264 (PARI) See Links section. %Y A336264 Cf. A001462, A113138. %K A336264 sign %O A336264 0,4 %A A336264 _Rémy Sigrist_, Jul 15 2020