| Title: | The convergence of SHA-256 digit-sum orbits to fixed-point attractors |
| Author: | Vincenzo Manto |
| Date: | |
| Keywords: | mathDynamical SystemsCryptography |
The convergence of SHA-256 digit-sum orbits to fixed-point attractors
An analysis of discrete dynamical systems generated by iterating the composition of the SHA-256 cryptographic hash function and the base-10 digit-sum function, demonstrating empirical convergence toward fixed-point attractors.
The convergence of SHA-256 digit-sum orbits to fixed-point attractors
Abstract
This paper examines the behavior of a discrete dynamical system generated by iterating a composite function consisting of the SHA-256 cryptographic hash algorithm and a base-10 arithmetic digit-sum reduction.
Empirical observations reveal that despite the pseudo-random distribution of cryptographic hash outputs, the state space quickly collapses into a highly restricted interval. This collapse drives the system toward specific fixed points—primarily 340 and 341—acting as gravitational sinks or “numerical black holes” for almost all positive integer seed values.
1. Mathematical formulation
Let be a function that maps an integer to its SHA-256 hash representation, interpreted as a large base-10 integer:
Let denote the standard digit-sum function in base 10, which computes the sum of the individual digits of a given integer. We define the iterated map as the composition:
The trajectory (or orbit) of any initial seed is defined by the sequence:
A value is classified as a fixed point (or attractor) of the system if:
2. Statistical drivers
The rapid collapse of the infinite state space into a finite, predictable set of attractors is governed by the Central Limit Theorem and the architectural constraints of the SHA-256 protocol.
2.1 Bound restrictions on the state space
An output of the SHA-256 function yields a 256-bit integer. When converted to base-10 text notation, the resulting integer possesses a bounded length:
Consequently, the theoretical maximum value for the first iteration occurs when an hash output yields 78 consecutive 9 digits:
Therefore, regardless of how large the initial seed is, the second term in the orbit is strictly bounded such that . This represents an immediate, massive reduction of the system’s operational phase space.
2.2 Probability density and expected value
Because SHA-256 satisfies robust avalanche criteria and acts as a cryptographically strong pseudo-random function, each digit in the base-10 string appears with uniform probability .
The expected value of a single random digit is:
Assuming a typical hash length of 77 or 78 digits, the expected value of the total digit sum clusters precisely around the mean of a normal Gaussian distribution:
- For a 77-digit integer:
- For a 78-digit integer:
As a result, virtually all trajectories are forced into the high-density peak of this bell curve during the first few steps.
3. Fixed points
Once a trajectory enters the localized region , it tests specific integer values until it encounters a stable fixed point. Computational verification confirms that 340 and 341 satisfy the exact criteria for algebraic attractors:
Any orbit hitting these values ceases to change, establishing an asymptotic terminal state.