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 A088951 #6 Feb 16 2025 08:32:51 %S A088951 0,0,0,0,1,0,0,0,1,1,0,0,1,1,1,0,0,1,1,0,0,0,1,0,1,1,1,1,1,1,1,1,0,0, %T A088951 0,1,2,1,1,1,2,1,1,1,2,1,0,0,0,1,1,1,1,1,1,1,1,0,1,0,1,0,1,1,0,0,1,1, %U A088951 1,0,1,1,2,1,1,1,2,1,1,1,2,2,1,1,1,2,1,1,1,2,2,2,1,1,1,1,0,0,1,1,0,1 %N A088951 Number of distinct square-subwords in ternary representation of n. %C A088951 a(n) <= A088950(n). %H A088951 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/SquarefreeWord.html">Squarefree Word</a> %e A088951 n=125: a(125)=2 because 125 -> '11122' has 3 square-subwords: 11, 11 and 22 (11---, -11-- and ---22) and two of them are distinct. %Y A088951 Cf. A007089. %K A088951 nonn %O A088951 0,37 %A A088951 _Reinhard Zumkeller_, Oct 25 2003