Pisano Period Calculator

Find Pisano periods for single or multiple moduli accurately today with confidence. Choose exact scanning, factorization assistance, or mixed verification for certainty and clarity. Batch mode processes ranges, exporting comprehensive tables for analysis and fast reporting. See repeating pairs, first return time, and sequence fragments clearly. Download CSV and PDF reports with one click.

Inputs
Up to 1,000 values; each period computed per selected mode.

Tip: Exact scan runs in O(π(m)) steps. Factorization uses number-theoretic formulas and LCM over prime powers.

Example Data Table

Known small moduli and their Pisano periods.

mπ(m)Notes
23Special power of 2
38Prime, 3 ≡ −2 (mod 5)
46Power of 2
520Base case for powers of 5
624lcm(π(2), π(3))
716Prime, 7 ≡ 2 (mod 5)
812π(2^3) = 3·2^{2}
924π(3^2) = 3·π(3)
1060lcm(π(2), π(5))
1110Prime, 11 ≡ 1 (mod 5)
Formula Used
How to Use
  1. Enter modulus m > 1. Optionally add batch values or ranges.
  2. Select Exact scan for guaranteed results; choose Factorization for speed.
  3. Pick Both to cross‑check and highlight any discrepancies.
  4. Enable sequence display to see the pair cycle up to one period.
  5. Export any table as CSV or PDF using the buttons provided.
FAQs

It is the length of the repeating cycle of Fibonacci numbers taken modulo m, i.e., the smallest k > 0 with (Fk, Fk+1) ≡ (0,1) (mod m).

It leverages known number‑theoretic formulas for primes and prime powers and combines them via least common multiples, typically running much faster than scanning.

Disagreement usually indicates a step limit in scanning or an incomplete factorization for very large m. Increase the limit or use both modes to verify.

Scanning needs O(π(m)) steps, about O(m) on average. Factorization handles larger m, though trial division has limits; moderate sizes work well.

Yes. Toggle sequence display, then use the CSV or PDF buttons beneath the sequence grid to export the shown cycle pairs.

Related Calculators

Modular Exponentiation Fast Power CalculatorReverse Euclidean algorithm calculatorfast modular exponentiation calculatorLarge number modulo calculatormodular congruence solver

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.