Checks for the Collatz conjecture for a given number
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This function checks for the Collatz conjecture for a given number.
It can be customized to check other variants different to 3n+1
Takes a number n. If it’s even, divide by 2. If it’s odd, multiply by 3 and add 1. Repeat. Do all starting numbers lead to 1?
Cite As
Edgar Guevara (2026). collatz (https://github.com/guevaracodina/collatz), GitHub. Retrieved .
General Information
- Version 1.0.1 (19.7 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.1 | updated logo |
||
| 1.0.0 |
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.