For every positive integer the Fibonacci sequence modulo is periodic. The period depends on the value of .This period is called the Pisano period for , often shortened to .
Define as the largest integer such that , and define if there is no such . For example, there are three values of for which equals : . Therefore .