Longest Collatz Sequence

Problem Statement

The following iterative sequence is defined for the set of positive integers:

  • $n \to n/2$ ($n$ is even)
  • $n \to 3n + 1$ ($n$ is odd)

Using the rule above and starting with $13$, we generate the following sequence: $$13 \to 40 \to 20 \to 10 \to 5 \to 16 \to 8 \to 4 \to 2 \to 1.$$

It can be seen that this sequence (starting at $13$ and finishing at $1$) contains $10$ terms. Although it has not been proved yet (Collatz Problem), it is thought that all starting numbers finish at $1$.

Which starting number, under $10^6 \times 2^N$, produces the longest chain? If there are several, enter the smallest one.

NOTE: Once the chain starts the terms are allowed to go above the bound.

Submit Answers

You need to submit in the format: "N:problem(N)", possibly with multiple values at once, separated by commas, with $N$ between $1$ and $50$.

Top Users

🥇 shs10978
43.96 (44)
🥈 liuguangxi
43.96 (44)
🥉 masktroopuh
43.96 (44)
4 icy
42.96 (43)
5 hacatu
42.96 (43)
6 dottedcalculator
42.96 (43)
7 abcvuitunggio
42.96 (43)
8 SeptaCube
42.96 (43)
9 LeDoubleR
12.97 (13)
10 squenson
10.97 (11)
11 ricbit
9.97 (10)
12 disturbed_
7.01 (10)
13 mmtg
6.99 (7)
14 knatti
6.01 (32)
15 VA80
4.01 (6)

Data

Stats

Your submissions will appear here

Recent Submissions

1
liuguangxi
$g(44)$, $20$ digits 2 weeks, 3 days ago
2
shs10978
$g(44)$, $20$ digits 1 month ago
3
shs10978
$g(43)$, $19$ digits 1 month ago
4
shs10978
$g(42)$, $19$ digits 1 month ago
5
shs10978
$g(41)$, $19$ digits 1 month ago