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!)
A340885 Sum of subword complexity (number of nonempty distinct subwords) of all binary strings of length n. 2
0, 2, 10, 36, 114, 332, 916, 2428, 6242, 15652, 38460, 92916, 221256, 520332, 1210448, 2789100, 6372498, 14450420, 32547188, 72861376, 162211196, 359318644, 792287340, 1739623672, 3804904316, 8292351960, 18012452664, 39006099616, 84226667004, 181387693028, 389657293304 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
a(n)/(2^n) is the expected subword complexity of a random binary string of length n.
All terms are even.
LINKS
EXAMPLE
For n = 2 there are four possible binary strings: "aa", "ab", "ba", "bb", and their subword complexities are 2, 3, 3 and 2 respectively, and their sum = a(2) = 10.
PROG
(C++) // see link above
CROSSREFS
Cf. A282949 (distinct complexity profiles), A094913 (maximum complexity), A134457 (numbers of strings achieving the maximum complexity).
Sequence in context: A244715 A212573 A100535 * A206622 A266942 A265844
KEYWORD
nonn
AUTHOR
Shiyao Guo, Jan 25 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 24 20:58 EDT 2024. Contains 375417 sequences. (Running on oeis4.)