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.

A081882 Number of steps needed to reach an integer starting with n-1/4 and iterating the map x ->x*ceiling(x).

Original entry on oeis.org

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

Views

Author

Benoit Cloitre, Apr 13 2003

Keywords

Crossrefs

Cf. A068119.

Programs

  • PARI
    a(n)=if(n<0,0,s=n-1/4; c=0; while(frac(s)>0,s=s*ceil(s); c++); c)

Formula

It seems that sum(k=2, n, a(k)) is asymptotic to 3n