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.

A346213 Number of iterations of A000688 needed to reach 1 starting at n (n is counted).

Original entry on oeis.org

1, 2, 2, 3, 2, 2, 2, 3, 3, 2, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 2, 2, 2, 3, 3, 2, 3, 3, 2, 2, 2, 3, 2, 2, 2, 4, 2, 2, 2, 3, 2, 2, 2, 3, 3, 2, 2, 3, 3, 3, 2, 3, 2, 3, 2, 3, 2, 2, 2, 3, 2, 2, 3, 3, 2, 2, 2, 3, 2, 2, 2, 3, 2, 2, 3, 3, 2, 2, 2, 3, 3, 2, 2, 3, 2, 2, 2
Offset: 1

Views

Author

Amiram Eldar, Jul 10 2021

Keywords

Comments

The least value of n such that a(n) = 1, 2, ..., 5 is 1, 2, 4, 36 and 264600.

Examples

			a(4) = 3 since the trajectory of n = 4, {n, A000688(n), A000688(A000688(n))} = {4, 2, 1}, has the length 3.
		

Crossrefs

Programs

  • Mathematica
    a[n_] := -1 + Length @ FixedPointList[FiniteAbelianGroupCount, n]; Array[a, 100]

Formula

Sum_{k<=x} a(k) ~ c*x + O(x^(1/2 + eps)), where c > 1 is a constant (Erdős and Ivić, 1989).