https://github.com/void4main/collatz-conjecture
Get to understand the Collatz conjecture
https://github.com/void4main/collatz-conjecture
collatz conjecture simple
Last synced: about 2 months ago
JSON representation
Get to understand the Collatz conjecture
- Host: GitHub
- URL: https://github.com/void4main/collatz-conjecture
- Owner: void4main
- Created: 2020-02-05T20:30:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-06T19:06:09.000Z (over 5 years ago)
- Last Synced: 2025-04-11T18:07:20.690Z (about 2 months ago)
- Topics: collatz, conjecture, simple
- Language: C
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Collatz conjecture / 3n+1 Problem
```js
gcc -O4 -o collatz-conjecture collatz-conjecture.c
```**Example output to console:**
```js
Start: 3 End: 1 Steps: 7
Start: 6 End: 1 Steps: 8
Start: 7 End: 1 Steps: 16
Start: 9 End: 1 Steps: 19
Start: 18 End: 1 Steps: 20
Start: 25 End: 1 Steps: 23
Start: 27 End: 1 Steps: 111
Start: 54 End: 1 Steps: 112
Start: 73 End: 1 Steps: 115
Start: 97 End: 1 Steps: 118
...
Start: 12235060455 End: 1 Steps: 1184
...
```