Counting the Number of Non-Simply Bordered Partial Words Enter the number of holes in the partial word (0 or 1), h, the number of letters in the alphabet, k, and the length of the word, n.
Implementations and web pages by Jonathan T. Britton and Yuan Kong.