…the longest path that reaches 1 following the Collatz Conjecture.
This is an attempt to improve on the last post, where an approach was quite quickly found to maximize the number (just a high power of 2). This time we’ve got a challenge which I think is more interesting and hopefully not as easy to exploit.
For the unaware, the Collatz Conjecture works as follows:
def collatz(n):
while n != 1:
if n % 2 == 0: # If even, divide by 2
n /= 2
else: # If odd, multiply by 3 and add 1
n = 3 * n + 1
The actual conjecture is that any positive integer will eventually end up at 1 following those steps.
There are, of course, a few actual requirements to keep this reasonable and interesting:
-
Numbers have to be fully written in the reply and 24 characters or less. The format of the number is up to you, as long as others can reasonably be expected to understand it without additional explanation. This means writing something like “
10^10000” or “The 127th prime” or “27*6+123456789/3” are allowed, assuming the other rules are followed. -
The path cannot have more than 99% of the steps be even ones. Under 1 million, only 19 starting values have paths with more than 99% even steps and I’m sure you can guess which those are.
-
You have to run a program to verify the number reaches 1 in the reported number of steps
-
Path length will include both the starting value and the first time it reaches 1. This means staring with
3would give you a path of[3, 10, 5, 16, 8, 4, 2, 1]which has a length of8(This is also my first submitted value to start us off)
The rules are subject to change if I’ve once again missed an easy workaround or somehow made things too hard.
Since people are going to find workarounds whatever I do, I’m going to make a column specifically marking the ones that felt like they were intentionally doing that (The “Workaround Mark”). You can take it as a badge of honor or a mark of shame. They still need to follow the rules either way, so keep that in mind.
I may as well make a submission here to start things off again, so I’m submitting a starting value of 69^420 which has a path length of 19,214 and about 66.48% even steps.
The Leaderboard
| Placement | Path Length | Starting Value | Poster | Peer Reviewed | Workaround Mark |
|---|---|---|---|---|---|
2,057,797,126,475 |
(2^2^32 - 1) * 4^10^12 |
Gii2000 | |||
514,448,571,769 |
(2^2^30-1)<<(5*10^11) |
ShayHi | |||
48,189,251,001 |
2^46843576932*(2^10^8-1) |
Gii2000 | |||
4th |
7,639,603,701 |
2^7410423559*3^20000000 |
Gii2000 | ||
5th |
1,276,807,624 |
8^9^9*3^10^7 |
Kuggo | ||
6th |
177,725,668 |
10 ^ 10,000,000 |
Gii2000 | ||
7th |
126,888,562 |
2^(10^8)*(2^(2*10^6)-1) |
FoxNerdSaysMoo | ||
8th |
35,634,191 |
2^34680486+2^34526886 |
FEARLESS_Z | ||
9th |
17,805,058 |
10^1000000 |
Imated | ||
10th |
120,353 |
10^4000-1 |
Amelium | ||
11th |
39,596 |
6969^420 |
Imated | ||
12th |
19,214 |
69^420 |
Amelium |
I’ll update this section with any submissions that I feel meet all the rules. I encourage verifying other replies and stating that you’ve done so to keep us all more confident in the leaderboard. Submissions which have been verified by at least one other person will get the “Peer Reviewed” check mark.