- #1
Chris Miller
- 371
- 35
- TL;DR Summary
- Might variations of the Collatz conjecture help me understand how/why it works?
The Collatz problem is perhaps the only unsolved math problem I actually understand. It "feels" like a proof would be trivial, though obviously it isn't. Been playing with different variations in hopes of understanding it better. Is it a set problem (proving there's no intersection between two sets until 1 is added to each)? An algorithmic proof maybe? Probability also seems to play a part.
The following pseudo-code also converges on 1 for every huge random integer I tested, but sometimes quite gradually, with long upwards trends, before dropping to repeat, with 1 always being the lowest.
The following pseudo-code also converges on 1 for every huge random integer I tested, but sometimes quite gradually, with long upwards trends, before dropping to repeat, with 1 always being the lowest.
Code:
t = huge_positive_random_int()
while t>1
if t is even
t=t/2
if t is odd
t=(t+1)/2
endif
else
t=(t*59)+1
endif
endwhile