Skip to content

DistinctSubsequenceCount on BinaryWord ​

The distinct subsequences, the empty one included.

On BinaryWord

FindStat's St000518. With d(j) the count for the first j letters, d(j) = 2 d(j - 1) less d(p - 1), where p is the latest earlier position holding the same letter, if any.

Called as CombinatorialStat(x, "DistinctSubsequenceCount"). The head's page has its examples.

Live

Distribution

Over BinaryWords at each size, tallied here in your browser; sizes past 6 are not offered.

FindStat St000518

The number of distinct subsequences in a binary word.

ObjectValue
02
12
003
014
104
113
0004
0016

Data from FindStat, the combinatorial statistic finder; the page at findstat.org/St000518 has the rest.