64 Families of Triples of Consecutive Primes: The Compensation Rule for Differences between Adjacent Triples
This paper studies triples of consecutive primes, i.e. sets (p_i, p_{i+1}, p_{i+2}) of three adjacent elements in the list of all primes. It is shown that, apart from the three isolated cases (2,3,5), (3,5,7) and (5,7,11), all such triples fall into exactly 64 families, classified by the last digits of their elements. For each family the first (smallest) triple is found explicitly; the full table of 64 first triples is provided. The main result is a "compensation rule" for the differences between adjacent triples of the same family modulo 30. A two-class lemma is proved: for every last digit d in {1,3,7,9}, among primes p > 5 exactly two residue classes modulo 30 are possible. From this it follows that the differences between adjacent triples of the same family (taken in any of the three positions a, b, c) are positive multiples of 10 and take exactly three values modulo 30: 0, 10, 20. The key part of the rule states that any two adjacent "bad" differences (with residues 10 and 20) always sum to a multiple of 30 — in other words, consecutive bad differences split into pairs and compensate each other. The rule is verified empirically for all 64 families and all three positions (a, b, c) at N = 10^5: 192 out of 192 checks passed. The paper also provides a complete table of the distribution of differences for each family, classifies families by "activity" (total number of bad differences), and includes a universal Python program that, for any triple from the 64 families, constructs the whole subsequent chain, highlights the pairs of bad differences, and verifies the compensation rule directly. The work is positioned as a structural description of triples of consecutive primes modulo 30, together with an open-source tool for further empirical analysis. Open questions are discussed, including possible analogues of the rule for larger moduli (210, 2310), quantitative estimates of frequencies, behavior as N → ∞, and connections with classical prime constellations (twins, cousins, sexy primes).
Authors
- Emma Helmdach (ORCID: https://orcid.org/0009-0005-1856-1281)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-15
- DOI
- https://doi.org/10.5281/zenodo.24248458
- Primary Topic
- Analytic Number Theory Research
- Type
- preprint