This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A088950 Number of square-subwords in ternary representation of n. 2
 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 2, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 2, 2, 1, 1, 1, 1, 0, 0, 0, 1, 2, 1, 1, 2, 4, 2, 1, 1, 2, 1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 2, 1, 0, 1, 1, 2, 1, 1, 1, 2, 1, 2, 2, 4, 4, 2, 2, 1, 2, 1, 1, 1, 2, 2, 2, 1, 1, 2, 1, 0, 0, 1, 1, 0, 1 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,14 COMMENTS A square-(sub)word consists of two nonempty identical adjacent subwords. LINKS Eric Weisstein's World of Mathematics, Squarefree Word EXAMPLE n=90: a(90)=2 because 90 -> '10100' has 2 square-subwords: 00 and 1010. MATHEMATICA Table[SequenceCount[IntegerDigits[n, 3], {x__, x__}, Overlaps -> All], {n, 0, 100}] (* Vladimir Reshetnikov, May 17 2016 *) CROSSREFS Cf. A007089, A088951, A088952. Sequence in context: A214625 A279278 A015964 * A267113 A083025 A046080 Adjacent sequences:  A088947 A088948 A088949 * A088951 A088952 A088953 KEYWORD nonn,base AUTHOR Reinhard Zumkeller, Oct 25 2003 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified June 15 16:13 EDT 2019. Contains 324142 sequences. (Running on oeis4.)