A Novel Approach to the Collatz Conjecture with Petri Nets
Abstract
1. Introduction
- A formal Petri net construction is proposed that encodes inverse Collatz dynamics;
- A graphical visualisation of the branching structure converging to 1 is shown;
- An exploratory framework for analysing reachability and structural properties (boundedness and liveness) in the Collatz process is proposed.
2. Theory Background
2.1. Related Work
2.2. Petri Nets
2.3. Suitability of Petri Nets for Modelling the Collatz Conjecture
- Natural encoding of rules: Petri nets map integer states to places and iteration rules to transitions, preserving the logical structure of the Collatz process.
- Petri nets offer both graphical insights (branching structure and depth) and algebraic tools (with formal verification methods) that can be exploited for structural reasoning.
- Reachability-based reformulation—the conjecture becomes a reachability property: place is reachable from any , enabling the use of established Petri net reachability theory.
- Reformulation of the conjecture: T-invariant study.
- Parametric generalisation (an + b) allowing comparative structural analysis.
- Extending the study by reformulating the Collatz problem in Petri net terms creates a bridge between number theory, system modelling, and computer science, thereby broadening its interdisciplinary relevance.
- Petri nets are, by construction, bipartite directed graphs where places and transitions alternate. This structure aligns closely with directed graph representations of the Collatz problem, such as those explored by Olgac [31], while adding formal semantics for token flow, concurrency, and state change. This dual nature allows the Petri net to inherit the visual clarity of graph-based models while enabling algebraic analysis through incidence matrices and invariants.
3. Inverse Collatz Modelling in the Petri Net Framework
3.1. Modelling Principle
Algorithm 1 Build Inverse Collatz Petri Net |
()
|
3.2. Computational Complexity and Feasibility
4. The Proposed Inverse Approach with Petri Nets
4.1. Construction of the Inverse Collatz Petri Net
- For each integer i, create a place (unless it already exists).
- If i is even:
- -
- Create the place if it does not exist.
- -
- Add a transition labeled Div2 from to .
- If and is an odd integer:
- -
- Create the place if it does not exist.
- -
- Add a transition labeled 3n + 1 from to .
4.2. Visualisation of the Inverse Collatz Petri Net (Up to )
4.3. Reordering the Graph by Transition Types
4.4. Limitations of the Petri Net-Based Inverse Construction
4.5. Description of Used Tools
5. Discussion
5.1. Reformulating the Collatz Conjecture in Petri Nets Terms
For any place , the place is reachable via a finite sequence of transition firings.
5.2. Structural Properties: Reachability and Liveness
5.3. Interpretation of Apparent Ascending Paths
5.4. A Structural Reordering of the Integers
5.5. Structure Induced by Inverse Collatz Dynamics
5.6. Analysis of T-Invariants and P-Invariants
6. Conclusions
- Inductive reasoning over the Petri net structure. Instead of reasoning on individual trajectories, it may be possible to attempt structural induction over the net itself. For instance, proving that if all immediate predecessors of a place lead to , then does as well. Such a recursive propagation of reachability could, in principle, generalise the conjecture beyond finite bounds.
- Recurrence-based formalisms. The Collatz process lends itself to recursive formulations of stopping times or path lengths. In the inverse Petri net, it may be possible to model the depth of a place as a function of the depths of its predecessors, enabling symbolic analysis of convergence or complexity.
- Parametrised generalisations of the transition rules. By extending the transition set beyond the standard and , it becomes possible to study a wider class of integer mappings. A parametrised Petri net could capture variations such as rules, offering a comparative view and potentially tractable analogues of the original conjecture.
- Ordering the integers based on transition sequences. The topological structure of the Petri net defines a new partial ordering of the integers, no longer based on magnitude but on their functional ancestry within the graph. Future work could explore this ordering formally, for example by defining a “transition-depth” metric that weights red and blue transitions differently (e.g., assigning greater cost to 3n+1 arcs). This would provide a transition-aware hierarchy of integers, potentially revealing new stratifications of complexity or path redundancy across the net.
- Studying transition-induced depth metrics. Building on the above, one could define for each place a vector representing the number of blue and red transitions required to reach . This bi-dimensional metric may help detect families of integers with similar structural positions and perhaps inform conjectural bounds on stopping times or convergence rates.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Lagarias, J.C. The Ultimate Challenge: The 3x + 1 Problem; American Mathematical Society: Providence, RI, USA, 2023. [Google Scholar]
- Allouche, J.P. T. Tao and the Syracuse conjecture. Eur. Math. Soc. Mag. 2022, 123, 12–16. [Google Scholar] [CrossRef]
- Andrei, Ş.; Masalagiu, C. About the Collatz conjecture. Acta Inform. 1998, 35, 167–179. [Google Scholar] [CrossRef]
- Ren, W. A new approach on proving Collatz conjecture. J. Math. 2019, 2019, 6129836. [Google Scholar] [CrossRef]
- Furuta, M. Proof of Collatz conjecture using division sequence. Adv. Pure Math. 2022, 12, 96–108. [Google Scholar] [CrossRef]
- Chen, C. Proof of the Collatz Conjecture. Acad. J. Math. Sci. 2025, 6, 27–44. [Google Scholar] [CrossRef]
- Getachew, E.S.; Assefa, B.G. Efficient Computation of Collatz Sequence Stopping Times: A Novel Algorithmic Approach. IEEE Access 2025, 13, 41210–41220. [Google Scholar] [CrossRef]
- Al-Hyari, A.; Obimbo, C.; Mua’ad, M.; Al-Taharwa, I. Generating powerful encryption keys for image cryptography with chaotic maps by incorporating collatz conjecture. IEEE Access 2024, 12, 4825–4844. [Google Scholar] [CrossRef]
- Alomari, M.A.; Al-Andoli, M.N.; Ghaleb, M.; Thabit, R.; Alkawsi, G.; Alsayaydeh, J.A.J.; Gaid, A.S.A. Security of Smart Grid: Cybersecurity Issues, Potential Cyberattacks, Major Incidents, and Future Directions. Energies 2025, 18, 141. [Google Scholar] [CrossRef]
- Ballesteros, D.M.; Peña, J.; Renza, D. A novel image encryption scheme based on Collatz conjecture. Entropy 2018, 20, 901. [Google Scholar] [CrossRef] [PubMed]
- Alshannaq, O.; Baharon, M.R.; Alsayaydeh, J.A.J.; Hammouda, M.B.; Hammouda, K.; Nawafleh, M.M.; Rahman, A. Analysis of the Lowest Memory Consumption (Memory Usage) Through Running Different Cryptography Techniques for Different Types of Images. In Proceedings of the Journal of Physics: Conference Series; IOP Publishing: Bristol, UK, 2022; Volume 2319, p. 012027. [Google Scholar]
- Xu, D.; Tamir, D.E. Pseudo-random number generators based on the Collatz conjecture. Int. J. Inf. Technol. 2019, 11, 453–459. [Google Scholar] [CrossRef]
- Baygin, M.; Yaman, O.; Tuncer, T.; Dogan, S.; Barua, P.D.; Acharya, U.R. Automated accurate schizophrenia detection system using Collatz pattern technique with EEG signals. Biomed. Signal Process. Control 2021, 70, 102936. [Google Scholar] [CrossRef]
- Schneeweiss, W. Tutorial: Petri nets as a graphical description medium for many reliability scenarios. IEEE Trans. Reliab. 2001, 50, 159–164. [Google Scholar] [CrossRef]
- Girault, C.; Valk, R. Petri Nets for Systems Engineering: A Guide to Modeling, Verification, and Applications; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2013. [Google Scholar]
- van der Aalst, W.M. Business process management as the “Killer App” for Petri nets. Softw. Syst. Model. 2015, 14, 685–691. [Google Scholar] [CrossRef]
- Grobelna, I.; Wiśniewski, R.; Wojnakowski, M. Specification of Cyber-Physical Systems with the Application of Interpreted Nets. In Proceedings of the IECON 2019–45th Annual Conference of the IEEE Industrial Electronics Society, Lisbon, Portugal, 14–17 October 2019; Volume 1, pp. 5887–5891. [Google Scholar] [CrossRef]
- Cavone, G.; Dotoli, M.; Seatzu, C. A survey on Petri net models for freight logistics and transportation systems. IEEE Trans. Intell. Transp. Syst. 2017, 19, 1795–1813. [Google Scholar] [CrossRef]
- Juan, M.; Mailland, D.; Fifis, N.; Gregoris, G. Active Antenna Failure Modeling and Architecture Modifications. Techniques de l’Ingenieur. 2021. Available online: http://dx.doi.org/10.51257/a-v1-se1221 (accessed on 10 December 2021).
- Zeinalnezhad, M.; Chofreh, A.G.; Goni, F.A.; Klemeš, J.J.; Sari, E. Simulation and Improvement of Patients’ Workflow in Heart Clinics during COVID-19 Pandemic Using Timed Coloured Petri Nets. Int. J. Environ. Res. Public Health 2020, 17, 8577. [Google Scholar] [CrossRef] [PubMed]
- Grobelna, I.; Karatkevich, A. Challenges in Application of Petri Nets in Manufacturing Systems. Electronics 2021, 10, 2305. [Google Scholar] [CrossRef]
- Grobelna, I.; Szcześniak, P. Interpreted Petri Nets Applied to Autonomous Components within Electric Power Systems. Appl. Sci. 2022, 12, 4772. [Google Scholar] [CrossRef]
- Fischer, K.; Custer, R.; Schubert, M.; Asmolovskiy, N.; Braun, B.; Keil, D.; Faber, M.; Lahorgue, C. New Approaches for Reliability Assessment of Mechanical Systems and Parts (Part 1: Methodology). In Proceedings of the European Safety and Reliability Conference (ESREL), Glasgow, UK, 25–29 September 2016; pp. 2877–2884. [Google Scholar]
- Stérin, T. Binary expression of ancestors in the Collatz graph. In Proceedings of the International Conference on Reachability Problems; Springer: Berlin/Heidelberg, Germany, 2020; pp. 115–130. [Google Scholar]
- Olgac, E. Proof of the Collatz Conjecture by Constructing the Inverse–Collatz Tree. Preprint 2025. [Google Scholar] [CrossRef]
- Ren, W.; Xiao, R. How to Fast Verify Collatz Conjecture by Automata. In Proceedings of the 2019 IEEE 21st International Conference on High Performance Computing and Communications; IEEE 17th International Conference on Smart City; IEEE 5th International Conference on Data Science and Systems (HPCC/SmartCity/DSS), Zhangjiajie, China, 10–12 August 2019; pp. 2720–2729. [Google Scholar] [CrossRef]
- Kari, J. Cellular Automata, the Collatz Conjecture and Powers of 3/2. In Proceedings of the Developments in Language Theory: 16th International Conference, DLT 2012, Taipei, Taiwan, 14–17 August 2012; Proceedings 16. Springer: Berlin/Heidelberg, Germany, 2012; pp. 40–49. [Google Scholar]
- Gutierrez, A. Collatz conjecture revisited: An elementary generalization. Acta Univ. Sapientiae Math 2020, 12, 112–127. [Google Scholar] [CrossRef]
- Wirsching, G.J. Analysis of the Collatz graph. In The Dynamical System Generated by the 3n+ 1 Function; Springer: Berlin/Heidelberg, Germany, 2006; pp. 31–75. [Google Scholar]
- Diedrich, E. A Bidirectional Approach to the Collatz Conjecture. Preprints 2025. [CrossRef]
- Olgac, E. Topology and Structure of Directed Graphs. Preprint 2024. [Google Scholar] [CrossRef]
- Emmert-Streib, F. Structural properties and complexity of a new network class: Collatz step graphs. PLoS ONE 2013, 8, e56461. [Google Scholar] [CrossRef] [PubMed]
- Andaloro, P.J. The 3x + 1 problem and directed graphs. Fibonacci Q. 2002, 40, 43–54. [Google Scholar] [CrossRef]
- Laarhoven, T.; de Weger, B. The Collatz conjecture and De Bruijn graphs. Indag. Math. 2013, 24, 971–983. [Google Scholar] [CrossRef]
- Owada, K. Collatz Trees: A Structural Framework for Understanding the 3x+1 Problem. Preprint 2025. [Google Scholar] [CrossRef]
- Kosobutskyy, P.; Rebot, D. Collatz Conjecture 3n ± 1 as a Newton Binomial Problem. Comput. Des. Syst. Theory Pract. 2023, 5, 137–145. [Google Scholar] [CrossRef]
- Murata, T. Petri nets: Properties, analysis and applications. Proc. IEEE 1989, 77, 541–580. [Google Scholar] [CrossRef]
- David, R.; Alla, H.; David, R.; Alla, H. Discrete, Continuous, and Hybrid Petri Nets; Springer: Berlin/Heidelberg, Germany, 2010. [Google Scholar]
- Reisig, W. Petri nets. In Modeling in Systems Biology: The Petri Net Approach; Springer: Berlin/Heidelberg, Germany, 2016; pp. 37–56. [Google Scholar]
- Pommereau, F. SNAKES: A Flexible High-Level Petri Nets Library (Tool Paper). In Proceedings of the International Conference on Applications and Theory of Petri Nets and Concurrency, Brussels, Belgium, 21–26 June 2015; Springer: Berlin/Heidelberg, Germany, 2015; pp. 254–265. [Google Scholar]
- Wiśniewski, R. Decomposition of Concurrent Control Systems. In Prototyping of Concurrent Control Systems Implemented in FPGA Devices; Springer: Berlin/Heidelberg, Germany, 2016; pp. 77–98. [Google Scholar]
- Maliński, M.; Wojnakowski, M.; Wiśniewski, R.; Obuchowicz, A. Transition Invariants in the Analysis of Concurrent Systems Modelled by Petri Nets. In Proceedings of the Technological Innovation for Human-Centric Systems, Caparica, Portugal, 3–5 July 2024; Camarinha-Matos, L.M., Ferrada, F., Eds.; Springer: Cham, Switzerland, 2024; pp. 269–279. [Google Scholar]
Places | Transitions | Time [s] | Peak mem [KB] | |
---|---|---|---|---|
1000 | 1000 | 667 | 0.0025 | 111.2 |
6667 | 0.0280 | 1446.4 | ||
0.2978 | 13,875.5 | |||
1.5357 | 65,972.4 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Mailland, D.; Grobelna, I. A Novel Approach to the Collatz Conjecture with Petri Nets. Information 2025, 16, 745. https://doi.org/10.3390/info16090745
Mailland D, Grobelna I. A Novel Approach to the Collatz Conjecture with Petri Nets. Information. 2025; 16(9):745. https://doi.org/10.3390/info16090745
Chicago/Turabian StyleMailland, David, and Iwona Grobelna. 2025. "A Novel Approach to the Collatz Conjecture with Petri Nets" Information 16, no. 9: 745. https://doi.org/10.3390/info16090745
APA StyleMailland, D., & Grobelna, I. (2025). A Novel Approach to the Collatz Conjecture with Petri Nets. Information, 16(9), 745. https://doi.org/10.3390/info16090745