Interval variety: Difference between revisions
m →Facts |
|||
| Line 21: | Line 21: | ||
{{Proof|contents=We prove this by dividing this word into four overlapping noncircular subwords which cover all cases. | {{Proof|contents=We prove this by dividing this word into four overlapping noncircular subwords which cover all cases. | ||
Consider the subwords '''0123'''...('''''n''-2''')('''''n''-1''') and ('''''n''-1''')('''''n''-2''')...'''3210'''. If we treat | Consider the subwords '''0123'''...('''''n''-2''')('''''n''-1''') and ('''''n''-1''')('''''n''-2''')...'''3210'''. If we treat these two words as noncircular, then there are ''n''-''k'' distinct ''k''-letter subwords. | ||
Now consider the ''k''-letter noncircular subword ('''r-1''')('''r-2''')...'''210012'''...('''s-2''')('''s-1'''), where ''r'', ''s'' ≥ 1 | Now consider the ''k''-letter noncircular subword ('''r-1''')('''r-2''')...'''210012'''...('''s-2''')('''s-1'''), where ''r'', ''s'' ≥ 1. Note that interchanging ''r'' and ''s'' yields equivalent subwords. If ''k'' is odd, there are (''k''-1)/2 distinct subwords of this kind; if ''k'' is even, there are ''k''/2 subwords, each corresponding to a solution of ''r'' + ''s'' ≥ ''k''. | ||
A similar thing goes with ('''''n''-''r''-1''')...('''''n''-2''')('''''n''-1''')('''''n''-2''')..('''''n''-''s''-1'''). If ''k'' is odd, there are (''k''+1)/2 distinct subwords of this kind; if ''k'' is even, there are ''k''/2 subwords, each corresponding to a solution of ''r'' + ''s'' - 1 ≥ ''k''. | A similar thing goes with ('''''n''-''r''-1''')...('''''n''-2''')('''''n''-1''')('''''n''-2''')..('''''n''-''s''-1'''). If ''k'' is odd, there are (''k''+1)/2 distinct subwords of this kind; if ''k'' is even, there are ''k''/2 subwords, each corresponding to a solution of ''r'' + ''s'' - 1 ≥ ''k''. | ||