/Wiki/Combinatorics on wordsFine and Wilf's theoremA word with periods p and q and length at least p + q - gcd(p, q) has period gcd(p, q).This page has not been written yet. The summary above comes from the topic index.