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
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Oct 25 2003
STATUS
approved