Flaxman, A., A. W. Harrow, and G. B. Sorkin. “Strings With Maximally Many Distinct Subsequences and Substrings”. The Electronic Journal of Combinatorics, Vol. 11, no. 1, Jan. 2004, p. R8, doi:10.37236/1761.