OFFSET
1,3
COMMENTS
The period of a word w is the least positive integer p such that w[i] = w[i+p] over all i for which this indexing is defined. The "most general word" is over an arbitrary alphabet that can be taken to be {1,2,...,m}. For example, the "most general word" of length 10 with periods {6,9,10} is 1231451231.
EXAMPLE
For n = 5 the four possible sets of periods are {m-5}, {m-1,m-4}, {m-2,m-3}, and {m-1,m-2,m-3}. The corresponding "most general words" are 123...(m-5)12345, 1231456...(m-5)1231, 1112345...(m-5)111, 1112345...(m-5)111, all of which have largest element m-5.
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Jeffrey Shallit, Mar 15 2017
STATUS
approved