login
A320847
Length of the longest common subsequence of the first n terms of the Thue-Morse sequence (A010060) and its bitwise complement.
0
0, 0, 1, 1, 2, 3, 4, 4, 5, 6, 7, 8, 9, 10, 11, 11, 12, 13, 14, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 25, 26, 27, 28, 29, 30, 31, 32, 32, 33, 34, 35, 36, 37, 38, 39, 39, 40, 41, 42, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 53, 54, 55, 56, 56
OFFSET
0,5
COMMENTS
Here by "subsequence" we mean "not necessarily contiguous subsequence". Recently Joakim Blikstad proved that a(n) = n(1-o(1)).
LINKS
EXAMPLE
a(6) = 4, because a longest common subsequence of 011010 and 100101 is 1010, which is of length 4.
CROSSREFS
Cf. A010060. Sequence A297618 is this sequence at the powers of 2.
Sequence in context: A056847 A268234 A253188 * A105598 A356991 A083058
KEYWORD
nonn
AUTHOR
Jeffrey Shallit, Oct 22 2018
STATUS
approved