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.

A112420 Leading digits in 3x+1 chain starting with the number 1117065.

Original entry on oeis.org

1, 3, 1, 8, 2, 1, 3, 1, 5, 2, 1, 4, 2, 6, 3, 1, 4, 2, 7, 3, 1, 5, 1, 8, 4, 1, 6, 1, 9, 2, 1, 4, 2, 6, 3, 9, 4, 1, 6, 3, 1, 5, 1, 7, 2, 1, 3, 1, 5, 2, 7, 3, 1, 5, 1, 8, 4, 1, 6, 1, 9, 2, 1, 7, 3, 1, 9, 4, 2, 6, 3, 1, 5, 2, 1, 3, 1, 5, 2, 8, 4, 1, 6, 1, 9, 2, 1, 4, 2, 6, 3, 1, 8, 2, 1, 3, 1, 5, 2, 1, 4, 2, 6, 3, 1
Offset: 1

Views

Author

Lekraj Beedassy, Dec 10 2005

Keywords

Comments

The 3x+1 chain starts 1117065 -> 3351196 -> 1675598 -> 837799 and enters a 4->2->1->4->.. cycle after 527 iterations. The current sequence shows the most significant decimal digit after each iteration. [R. J. Mathar, Jul 26 2010]

Crossrefs

Cf. A033958.

Programs

  • PARI
    lista(nn) = my(c = 1117065); for (n=1, nn, print1(digits(c)[1], ", "); if (c % 2, c = 3*c+1, c = c/2);); \\ Michel Marcus, Nov 05 2016

Extensions

a(103) corrected by Michel Marcus, Nov 05 2016