Flaxman, A., Harrow, A. W., & Sorkin, G. B. (2004). Strings with Maximally Many Distinct Subsequences and Substrings. The Electronic Journal of Combinatorics, 11(1), R8. https://doi.org/10.37236/1761