Svoboda | Graniru | BBC Russia | Golosameriki | Facebook
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A343984 a(n) = number of n-digit singular subwords of the Thue-Morse word A010060; see Comments. 2
0, 2, 2, 8, 8, 12, 18, 20, 20, 24, 28, 32, 38, 40, 42, 44, 44, 48, 52, 56, 60, 64, 68, 72, 78, 80, 82, 84, 86, 88, 90, 92, 92, 96, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 148, 152, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
A subword w of A010060 is singular if exactly one of the words w0 and w1 is also a subword.
LINKS
EXAMPLE
The six 3-digit subwords of A010060 are 001, 010, 011, 100, 101, 110. Each, except for 011 and 100, is the initial 3-letter word of two 4-letter subwords. Thus, a(3) = 2.
MATHEMATICA
TM = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {1, 0}}] &, {0}, 12]; (* A010060 *)
t[k_, n_] := t[k, n] = Take[TM, {n, n + k - 1}];
c[k_] := c[k] = Union[Table[t[k, n], {n, 1, Length[TM] - k + 1}]];
s[n_] := s[n] = Select[c[n], ! MemberQ[c[n + 1],
Join[#, {0}]] || !MemberQ[c[n + 1], Join[#, {1}]] &]
Table[s[n], {n, 1, 8}]
u = Table[Length[s[n]], {n, 1, 60}] (* A343984 *)
u/2 (* A343985 *)
CROSSREFS
Sequence in context: A245235 A151924 A346205 * A268342 A058524 A072576
KEYWORD
nonn
AUTHOR
Clark Kimberling, May 06 2021
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 21 12:48 EDT 2024. Contains 375353 sequences. (Running on oeis4.)