cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A340885 Sum of subword complexity (number of nonempty distinct subwords) of all binary strings of length n.

This page as a plain text file.
%I A340885 #35 Mar 21 2024 08:35:05
%S A340885 0,2,10,36,114,332,916,2428,6242,15652,38460,92916,221256,520332,
%T A340885 1210448,2789100,6372498,14450420,32547188,72861376,162211196,
%U A340885 359318644,792287340,1739623672,3804904316,8292351960,18012452664,39006099616,84226667004,181387693028,389657293304
%N A340885 Sum of subword complexity (number of nonempty distinct subwords) of all binary strings of length n.
%C A340885 a(n)/(2^n) is the expected subword complexity of a random binary string of length n.
%C A340885 All terms are even.
%H A340885 Shiyao Guo, <a href="/A340885/b340885.txt">Table of n, a(n) for n = 0..60</a>
%H A340885 Shiyao Guo, <a href="https://gist.github.com/Mivik/15fd4b903007fc25a9cd866e27337ca3">C++ program used to compute values for n up to 60</a>
%e A340885 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.
%o A340885 (C++) // see link above
%Y A340885 Cf. A282949 (distinct complexity profiles), A094913 (maximum complexity), A134457 (numbers of strings achieving the maximum complexity).
%K A340885 nonn
%O A340885 0,2
%A A340885 _Shiyao Guo_, Jan 25 2021