← New search

Other meanings of Pisano period

NUMBER THEORY

Pisano period

The Pisano period is the period of the Fibonacci sequence modulo a positive integer. For a modulus m, it is the least positive integer k for which the pair of consecutive residues returns to its starting state: Fk ≡ 0 and Fk+1 ≡ 1 (mod m).1

3
π(2)
first nontrivial period
60
π(10)
decimal digit cycle
20
π(5)
period modulo five
1

Definition and existence

The Pisano period exists for every positive modulus because Fibonacci pairs evolve through a finite set of residue pairs and the recurrence is reversible. Write F0 = 0, F1 = 1, and Fn+2 = Fn+1 + Fn. Reducing these values modulo m produces the pair sequence (Fn, Fn+1); its first return to (0, 1) defines π(m).1

The return is not merely a repetition of one residue: the ordered pair is required. This distinction matters because a zero Fibonacci residue can occur before the complete cycle closes. For example, the sequence modulo 2 is 0, 1, 1, 0, 1, 1, so π(2) = 3. The name honors Leonardo Pisano, better known as Fibonacci, whose sequence is the central example of a linear recurrence in modular arithmetic.4

2

Structure and calculation

Chinese remainder decomposition makes coprime moduli especially useful: if gcd(m,n) = 1, then π(mn) is the least common multiple of π(m) and π(n).1 Consequently, factoring the modulus reduces many computations to prime powers. The standard examples are π(2a) = 3·2a−1 for a ≥ 1 and π(5a) = 20·5a−1; hence π(10a) = 15·10a−1.

For a practical calculation, one can iterate pairs, but fast doubling computes Fn in logarithmic time and allows a candidate period to be tested efficiently. The Fibonacci transition matrix [[1,1],[1,0]] also gives a compact method: its powers modulo m encode consecutive Fibonacci numbers. Tables of computed periods, including exceptional small values, are maintained in the On-Line Encyclopedia of Integer Sequences.3

3

Prime moduli and arithmetic patterns

Prime moduli reveal why Pisano periods connect recurrence sequences with finite-field arithmetic. For a prime p other than 2 or 5, the characteristic equation x2 − x − 1 = 0 either splits in the field of p elements or splits in its quadratic extension, according to whether 5 is a quadratic residue modulo p. This distinction constrains the possible period and explains recurring divisibility patterns involving p − 1 and p + 1.1

The period is related to, but different from, the rank of apparition: the latter is the least positive index r for which p divides Fr, whereas the Pisano period requires the full pair (0,1) to return. For composite moduli, prime-power behavior can introduce additional factors, so simply using the period modulo the prime may give an incomplete answer. These relationships place the subject alongside finite fields, quadratic reciprocity, and Lucas sequences.

4

Lesser-known aspects

The most famous unresolved edge case concerns Wall–Sun–Sun primes, hypothetical primes p for which p2 divides Fp−(5/p), where (5/p) is the Legendre symbol. Such primes would signal an unusually strong lift of Fibonacci divisibility from p to p2; none are known.2

Another subtlety is that the period need not be close to the modulus: π(24) = 24, but π(25) = 100 and π(29) is much smaller than several elementary upper bounds. Periods therefore reflect factorization and the order of a matrix modulo m rather than a simple linear rule. The same ideas apply to generalized Fibonacci and Lucas recurrences, where changing the initial values or recurrence coefficients changes the return condition and often the arithmetic classification. Wall’s systematic study established many of the foundational divisibility results for these periods.1

Glossary

Fibonacci sequence
The sequence defined by F0 = 0, F1 = 1, and Fn+2 = Fn+1 + Fn.
Pisano period π(m)
The least positive k such that Fk ≡ 0 and Fk+1 ≡ 1 modulo m.
Rank of apparition
The least positive index r for which a given modulus divides Fr.
Legendre symbol
A number-theoretic symbol indicating whether an integer is a quadratic residue modulo an odd prime.
Wall–Sun–Sun prime
A hypothetical prime satisfying an unusually strong Fibonacci divisibility condition modulo its square.

The notation π(m) denotes the Pisano period for modulus m; it is unrelated to the circle constant π.