In many proofs of Fermat's Two Squares Theorem, the smallest least residue solution $x_0$ of the quadratic congruence $x^2 \equiv -1 \bmod p$ plays an essential role; here $p$ is prime and $p \equiv 1 \bmod 4$. Such an $x_0$ is called a Størmer number, named after the Norwegian mathematician and astronomer Carl Størmer (1874-1957). In this paper, we establish necessary and sufficient conditions for $x_0 \in \mathbb{N}$ to be a Størmer number of some prime $p \equiv 1 \bmod 4$. Størmer's main interest in his investigations of Størmer numbers stemmed from his study of identities expressing $Ï$ as finite linear combinations of certain values of the Gregory-MacLaurin series for $\arctan(1/x)$. Since less than 600 digits of $Ï$ were known by 1900, approximating $Ï$ was an important topic. One such identity, discovered by Størmer in 1896, was used by Yasumasa Kanada and his team in 2002 to obtain 1.24 trillion digits of $Ï$. We also discuss Størmer's work on connecting these numbers to Gregory numbers and approximations of $Ï$. \u
In many proofs of Fermat's theorem on sums of two squares, the minimal positive residual solution x0 of the quadratic congruence equation x2≡−1modp plays a crucial role, where p is a prime with p≡1mod4. Such an x0 is called a Størmer number, named after Norwegian mathematician and astronomer Carl Størmer (1874-1957). This paper establishes necessary and sufficient conditions for x0∈N to be a Størmer number for some prime p≡1mod4. Størmer's investigation of these numbers originated primarily from his research on identities expressing π as finite linear combinations of certain values of the Gregory-MacLaurin series arctan(1/x). Since fewer than 600 digits of π were known by 1900, approximating π was an important problem. An identity discovered by Størmer in 1896 was used by Kanada and his team in 2002 to compute 1.24 trillion digits of π.
Importance of Fermat's Two-Square Theorem: This theorem, called by G.H. Hardy "one of the most beautiful theorems in arithmetic," states that a prime p can be expressed as the sum of two positive integer squares if and only if p≡1mod4.
Central Role of Quadratic Congruences: Most proofs of Fermat's two-square theorem involve studying the quadratic congruence equation x2≡−1modp. For example, the proof independently given by Hermite and Serret in 1848 assumes the minimal residual solution x0 is known, then uses the Euclidean algorithm to generate an algorithm for solving positive integers a,b satisfying p=a2+b2.
Historical Significance: Although Girard stated the theorem in 1632 and Fermat announced a proof in 1640, the first recorded existence proof was given by Euler in 1749, and the uniqueness proof was completed by Gauss in 1801.
Established complete characterization of Størmer numbers: Provided necessary and sufficient conditions for a positive integer x0 to be a Størmer number of some prime (Theorem 2.3)
Proved injectivity of the Størmer function: Demonstrated that each Størmer number corresponds to a unique prime (Theorem 2.1)
Provided heuristic proof of natural density of Størmer numbers: Supporting the Everest-Harman conjecture that the natural density of Størmer numbers is ln2
Systematically elucidated connections between Størmer numbers and Gregory numbers: Demonstrated Størmer's theory of π approximation and its modern applications
Provided abundant computational examples: Illustrated practical applications of the theory through concrete examples
Input: Positive integer x0Output: Determine whether x0 is a Størmer number for some prime p≡1mod4; if so, find the corresponding prime pConstraints: p must be a prime of the form 4n+1, and 1<x0≤(p−1)/2, x02≡−1modp
Theorem 2.1 (Injectivity): The Størmer function S:P4n+1→N is injective.
Proof Sketch: Assume S(p1)=S(p2) but p1=p2. Without loss of generality, let p1>p2. Since pj∣(x02+1), we have p1p2∣(x02+1), thus:
x02+1≥p1p2
On the other hand, since x0≤(p2−1)/2 and p2≤p1−2, we can derive:
x02+1<p1p2
This produces a contradiction, therefore p1=p2.
Theorem 2.2 (Prime Properties): If x02+1=2rp1r1⋯pmrm, then each pj≡1mod4.
Theorem 2.3 (Necessary and Sufficient Conditions): Let the prime factorization of n=x02+1 be 2rp1r1⋯pmrm, where p1<⋯<pm. Then there exists a prime p such that x0 is its Størmer number if and only if 2x0+1≤pm. If the condition is satisfied, then p=pm and S(pm)=x0.
The paper provides a heuristic proof based on probability theory:
For x0∈N, if x0=S(p), then 2x0+1≤p≤x02+1. Assuming each integer has a "probability" of 2/(p−1) of being a Størmer number, the probability that x0 is a Størmer number is approximately:
Størmer established connections between Størmer numbers and Gregory numbers tx:=arctan(1/x):
Theorem 5.1 (Størmer's Theorem): If x∈N is not a Størmer number, then tx can be uniquely expressed as a finite linear combination of tn, where each n is a Størmer number with n<x.
Størmer's 1896 identity was used by Kanada's team in 2002 to compute 1.24 trillion digits of π, demonstrating the enduring value of classical mathematical theory.
Complete Characterization: Established necessary and sufficient determination conditions for Størmer numbers, resolving a long-standing problem
Theoretical Unification: Unified Størmer numbers, Fermat's two-square theorem, Gregory series, and π approximation within a single theoretical framework
Historical Value: Systematically reviewed Carl Størmer's mathematical contributions and their modern significance
The paper cites 21 important references spanning from classical number theory textbooks to modern computational mathematics, reflecting the depth and breadth of the research. Key references include Andrews' Number Theory, Conway and Guy's The Book of Numbers, and Størmer's original papers.