https://github.com/grandmoff100/collatzconjecturetesting
Testing lots of numbers to verify the collatz conjecture
https://github.com/grandmoff100/collatzconjecturetesting
Last synced: 7 months ago
JSON representation
Testing lots of numbers to verify the collatz conjecture
- Host: GitHub
- URL: https://github.com/grandmoff100/collatzconjecturetesting
- Owner: GrandMoff100
- Created: 2021-06-08T20:23:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-08T21:23:49.000Z (over 4 years ago)
- Last Synced: 2025-01-23T12:15:31.724Z (9 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Collatz Conjecture Testing
[Source Idea from Wikipedia](https://en.m.wikipedia.org/wiki/Collatz_conjecture)
# Rule
If the previous number in the sequence is odd the next term is three times the previous term plus one.If the previous number in the sequence is even then the next term is the previous term divided by two.
If the previous term is one then the sequence is complete.
# Theory
A sequence following the Rule starting with any natural number will end in one.# Testing
Clone or download the repository.
Run main.py with `python main.py`
It will start to endlessly list numbers and the length of their corresponding sequences.# Contributing
If you have an idea for an optimization or feature to add fork the repository, add your idea and submit a pull request.# Show Your Support
If you find the idea of this project interesting please ⭐️ the repo and share it! :)