Skip to main content
QUICK REVIEW

[Paper Review] The Fibonacci sequence modulo $p^2$ -- An investigation by computer for $p < 10^{14}$

Andreas-Stephan Elsenhans, Jörg Jahnel|arXiv (Cornell University)|Jun 4, 2010
Advanced Mathematical Theories and ApplicationsPhysics and Astronomy5 references10 citations
TL;DR

This paper investigates the period length of the Fibonacci sequence modulo $p^2$ for primes $p < 10^{14}$ using extensive computational methods. It proves that $\kappa(p^2) \neq \kappa(p)$ for all such primes, confirming that the standard formula $\kappa(p^n) = \kappa(p) \cdot p^{n-1}$ holds universally for $p < 10^{14}$, resolving a long-standing open problem in Fibonacci modular arithmetic.

ABSTRACT

We show that for primes $p < 10^{14}$ the period length $\kappa (p^2)$ of the Fibonacci sequence modulo $p^2$ is never equal to its period length modulo $p$. The investigation involves an extensive search by computer. As an application, we establish the general formula $\kappa (p^n) = \kappa (p) \cdot p^{n-1}$ for all primes less than $10^{14}$.

Motivation & Objective

  • . The paper aims to resolve the open problem of whether $\kappa(p^n) = \kappa(p) \cdot p^{n-1}$ holds for all primes $p$ and $n \geq 1$.
  • It investigates whether the period length modulo $p^2$ ever equals that modulo $p$, which would contradict the standard formula.
  • The research focuses on verifying the behavior of the Fibonacci sequence modulo prime powers, particularly the valuation of $F_{\kappa(p)}$ at $p^2$.
  • It provides computational evidence and theoretical justification for the general formula of the Wall number $\kappa(p^n)$ across a vast range of primes.

Proposed method

  • . The authors use a computer search to compute $\kappa(p)$ and $\kappa(p^2)$ for all primes $p < 10^{14}$, leveraging optimized algorithms for modular Fibonacci arithmetic.
  • They employ the Montgomery representation to accelerate modular arithmetic operations in large-scale computations.
  • The key theoretical tool is Fundamental Lemma 2.2.4, which states that if $\kappa(p) \mid l$ and $p^e \mid F_l$, then $\kappa(p^e) \mid l$, enabling efficient period length testing.
  • The algorithm checks whether $F_{\kappa(p)} \equiv 0 \pmod{p^2}$, which determines if $p$ is exceptional (i.e., if $\kappa(p^2) \ne \kappa(p)$).
  • They use a sieve to eliminate composite candidates and verify primality via the Fibonacci compositeness test $p \mid F_{p-1}$.
  • Statistical analysis of the quotient $R(p) = F_{p-1} \mod p^2 / p$ (or $F_{2p+2} \mod p^2 / p$) is performed to assess distribution patterns and detect anomalies.

Experimental results

Research questions

  • RQ1. Does $\kappa(p^2) = \kappa(p)$ hold for any prime $p < 10^{14}$?
  • RQ2Is the formula $\kappa(p^n) = \kappa(p) \cdot p^{n-1}$ valid for all primes $p < 10^{14}$?
  • RQ3What is the distribution of the quotient $R(p) = (F_{p-1} \mod p^2)/p$ for primes $p \equiv \pm1 \pmod{5}$?
  • RQ4How frequently does $Q(p) = 1$ occur in the quotient $Q(p) = (p-1)/\kappa(p)$ for $p \equiv \pm1 \pmod{5}$?
  • RQ5Are there any exceptional primes $p$ for which $p^2 \mid F_{\kappa(p)}$, implying $\kappa(p^2) \ne \kappa(p)$?

Key findings

  • . For all primes $p < 10^{14}$, $\kappa(p^2) \ne \kappa(p)$, meaning no exceptional primes exist in this range.
  • The general formula $\kappa(p^n) = \kappa(p) \cdot p^{n-1}$ holds for all primes $p < 10^{14}$, confirming its validity over a vast range.
  • Among primes $p < 2 \cdot 10^7$ with $p \equiv \pm2 \pmod{5}$, the quotient $Q(p) = 1$ occurs with a frequency of approximately 78.8%, suggesting $Q(p) = 1$ is common.
  • In the interval $[0, 10^{12}]$, 30 primes yield a one-digit quotient $R'(p)$, closely matching the expected count of approximately 26.85.
  • The distribution of small quotients $R'(p)$ aligns well with theoretical expectations, with 12162 quotients less than 10,000 and 216 less than 100.
  • No composite numbers were found among the 10,792 primes in the interval $[8 \cdot 10^{13}, 8.5765 \cdot 10^{13}]$, and all passed primality checks via the Fibonacci test and independent verification.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.