Ghost Writer II
Fix positive integers and with and . Suppose an alphabet has distinct letters . A is any non-empty string of characters in the alphabet, and a of length is a collection of words separated by any amount of spaces that does not start nor end with a space. How many distinct sentences of length can be made by using every letter in the alphabet exactly once and exactly spaces? Two sentences are considered non-distinct if the following conditions are met: Both sentences have the same number of words, say . The th word in the first sentence is the same as the th word in the second sentence and has the same number of spaces trailing it for all . Report the answer when and .
Answer format: enter an integer.
Sign in to answer questions and track your progress
Sign In