cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A384327 Minimal Trips Around The Collatz Galaxy: a(n) is the minimal cycle length containing n. Each step in the cycle must be either to the next larger integer or follow a Collatz trajectory: k -> 3k+1 if k is odd or k -> k/2 if k is even.

Original entry on oeis.org

2, 2, 3, 3, 4, 4, 5, 4, 5, 4, 5, 5, 6, 5, 6, 4, 6, 6, 7, 6, 7, 5, 6, 6, 8, 7, 8, 5, 7, 7, 8, 8, 9, 6, 7, 7, 9, 9, 10, 6, 8, 8, 9, 9, 11, 7, 8, 8, 10, 10, 11, 7, 9, 9, 10, 10, 12, 8, 9, 9, 11, 11, 12, 8, 10, 10, 11, 11, 13, 9, 10, 10, 12, 12, 13, 9, 11, 11, 12
Offset: 1

Views

Author

Gordon Hamilton, May 26 2025

Keywords

Comments

Excellent puzzle to get elementary students engaged in arithmetic. Recommended for use after the Collatz conjecture (3x+1 conjecture) is introduced side-by-side with its 3x-1 cousin.
In a tree of possible choices from n every positive integer occurs at most once which allows for lots of cutting in the search space. - David A. Corneth, May 26 2025

Examples

			a(25) is 8 because the shortest cycle containing 25 has 8 elements: 25 => 26 => 13 => 14 => 15 => 46 => 23 => 24 => 25.
		

Crossrefs

Cf. A006370.

Programs

  • PARI
    \\ See Corneth link

Extensions

More terms from Alois P. Heinz, May 26 2025