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.

A198585 The second odd number appearing in the Collatz sequence starting with A198584(n).

Original entry on oeis.org

5, 5, 5, 85, 5, 341, 85, 5, 341, 85, 5, 341, 85, 5461, 5, 341, 21845, 85, 5461, 5, 341, 21845, 85, 5461, 5, 341, 21845, 85, 5461, 349525, 5, 341, 21845, 1398101, 85, 5461, 349525, 5, 341, 21845, 1398101, 85, 5461, 349525, 5, 341, 21845, 1398101, 85, 5461
Offset: 1

Views

Author

T. D. Noe, Oct 28 2011

Keywords

Comments

A198586 has the unique numbers appearing in this sequence.

Crossrefs

Formula

a(n) = A079813(1 + (-1 + b(n))^2 + c(n))*(A198586(2*(1 + c(n))) - A198586(3 - 2*(b(n) - c(n)))) + A198586(3 - 2*(b(n) - c(n))) where b(n) = ceiling(sqrt(n)/sqrt(3)) and c(n) = (-1+n-3*(b(n)-1)^2) mod (2*b(n)-1). - Alan Michael Gómez Calderón, Jan 22 2025