StringTools[Period] - compute the period of a word
|
Calling Sequence
|
|
Period( w )
|
|
Description
|
|
•
|
The Period(w) command computes the period of a string (word) w. A positive integer p is said to be a period of a string s if, for all integers i with , one has . The least period of the string s is called the period of s.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
|
|
Download Help Document
Was this information helpful?