📌 This repository hosts the computational framework and formal proofs supporting the manuscript: 📝 The Golden Ratio's Footprint in Happy Number Sequences.pdf Our research proves that the behavior of happy and unhappy numbers is not random, but governed by a unified system where digit-sum structural costs (
We modeled the digit-sum engine using custom Python scripts and web-based utilities to analyze 50,000,000 integers. These tools calculate the Total Digit Sum (
- Python Scripts:
happy_number_sum.py,happy_number_step.py - Web Applications:
SumAnalyzer.html,StepAnalyzer.html
Our research identifies the Base-10 number system as a unique Geometric Singularity where the system’s iterative path reaches an algebraic equilibrium of
The individual ratios converge to exact constants defined by the Base-10 structure:
-
Structural Ratio (
$R_S$ ):$R_S \rightarrow 3 - \phi \approx 1.382$ -
Sequential Ratio (
$R_L$ ):$R_L \rightarrow \frac{2}{\phi} \approx 1.236$
The structural metrics are coupled via the Golden Ratio (
We define the Length Factor (
When the math is laid out line-by-line, you can see that the
This explains why
We observe a confluence where the iteration process intersects with the geometric constant
We identify the Base-10 number system as a unique Geometric Singularity. This is proven by the failure of geometric cancellation due to the complex Base-10 structure:
While sequence behaviors in other bases follow general conservation principles, the Base-10 system achieves an algebraic equilibrium where the sum of its structural and sequential ratios is exactly
This repository includes a formal verification suite that bridges empirical observation with mathematical necessity. The file StepAnalyzer_SumAnalyzer.lean is central to this work; it defines in Lean the digit-sum engine and metrics used to verify that the logic in our Lean proofs is consistent with the logic in our Python models and web applications.
-
Verification of Contraction:
basin_is_bounded.leanproves the system is a contraction mapping with a finite attractor basin. -
Attractor Density:
basin_density.leanprovides a formal kernel-verified calculation of the global attractor density (1/7). -
Identity Proof:
unified_system_identity_proof.leanutilizes the Lean 4 tactic engine to close the goal for the identity$R_S + R_L = \phi^2$ , proving these ratios are the unique algebraic equilibrium of the system.
The identity
-
Geometric Factor (
$\lambda_G = 1/\phi$ ): The collapse rate of sequence paths, determined by the Fibonacci recurrence relation dominant in the digit-sum space. -
Arithmetic Density (
$\lambda_A = 2$ ): The compression factor derived from the cycle length ($L=8$ ) and modular filter ($M=4$ ). -
Structural Constant (
$C_A = 3$ ): The minimum mean of the unstable digit set required to overcome base-10 entropy.
Proof of Identity: Substituting these constants:
Using the identity:
This simplifies to:
This confirms the fundamental algebraic signature of the system.
Reed, J. (2026). The Golden Ratio's Footprint in Happy Number Sequences (Version 1.0). Zenodo. https://doi.org/10.5281/zenodo.20450624
Copyright © 2026 Jonathan
