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 A330023 #15 Dec 18 2019 00:13:56 %S A330023 0,0,0,1,0,0,0,1,0,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0, %T A330023 0,0,1,2,0,0,0,1,0,0,0,1,0,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0, %U A330023 0,0,1,0,0,0,1,2,0,0,0,1,0,0,0,1,0,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1 %N A330023 a(n) counts the cube-words immediately before a(n), with a(1) = 0. %C A330023 Only the cube-words are counted, not the higher powers. The segment 1,1,1,1 will thus be followed by 0, and the same 0 will follow the segment 0,1,0,1,0,1,0,1,0,1,0,1 (because the pattern 0,1 is present six times instead of the required three, and because we don't accept to split 0,1,0,1,0,1,0,1,0,1,0,1 in order to form three 0,1,0,1 substrings). %C A330023 Overlaps are admitted: the term "2" in the segment 1,0,0,0,1,0,0,0,1,0,0,0,2 counts the cube 000 and the cube 100010001000. %C A330023 Needs a large b-file! - _N. J. A. Sloane_, Dec 18 2019 %e A330023 S = 0, ... We start with a(1) = 0 as this 0 means: "I don't see any cube on my immediate left"; %e A330023 S = 0,0, ... We extend S with a(2) = 0 as this 0 says the same as above: "I don't see any cube on my immediate left". %e A330023 S = 0,0,0, ... Same as above - note that no other integer would fit without contradiction [a(3) = 1, for instance, would say that there is one cube on the immediate left of "1", which would not the case because 00 is a square, not a cube]. %e A330023 S = 0,0,0,1, ... As we now see the cube 000, S is extended with a(4) = 1. %e A330023 S = 0,0,0,1,0, ... No cube in sight, we thus extend S with a(5) = 0 [the word "immediate" is important: "There is no cube on the immediate left of a(5) = 0" - indeed the first cube 000 is separated from a(5) by a(4) = 1]; %e A330023 S = 0,0,0,1,0,0, ... No visible cube again, so a(6) = 0; %e A330023 S = 0,0,0,1,0,0,0, ... No visible cube again, so a(7) = 0; %e A330023 S = 0,0,0,1,0,0,0,1 ... a(8) = 1 as this "1" is immediately after the cube {000}; etc. %Y A330023 Cf. A090822, A329447. The sequence A330005 does the same with squares. %K A330023 base,nonn %O A330023 1,25 %A A330023 _Eric Angelini_ and _Jean-Marc Falcoz_, Nov 28 2019