3.7.37. Border
A constraint that can be related to the notion of border, which we define now. Given a sequence , is a prefix of when is empty, is a suffix of when is empty, is a proper factor of when . A border of a non-empty sequence is a proper factor of , which is both a prefix and a suffix of . We have that the smallest period of a sequence is equal to the size of minus the length of the longest border of .