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.

Showing 1-2 of 2 results.

A087669 The smallest index m such that b(m) is an integer, where b(0)=(2n+1)/n and b(k+1)=b(k)*floor(b(k)) for k>=0.

Original entry on oeis.org

0, 1, 3, 2, 5, 4, 5, 2, 4, 9, 19, 7, 16, 7, 8, 3, 27, 9, 5, 25, 10, 11, 32, 4, 13, 4, 17, 6, 17, 6, 78, 3, 23, 47, 13, 6, 4, 6, 27, 9, 20, 6, 4, 17, 9, 28, 106, 4, 24, 28, 37, 20, 27, 10, 12, 13, 7, 83, 108, 10, 16, 9, 6, 3, 10, 11, 15, 8, 11, 6, 156, 15, 38, 46, 7
Offset: 1

Views

Author

N. J. A. Sloane, Sep 27 2003

Keywords

Comments

It is conjectured that an integer is always reached if the initial value is >= 2.

Crossrefs

The records and their indices are given by A192230 and A192229.
Cf. A087670 (integer reached), A087666.

Programs

  • Maple
    A087669 := proc(n) local b,stps ; stps := 0 ; b := (2*n+1)/n ; while not type(b,'integer') do b := b*floor(b) ; stps := stps+1 ; od ; RETURN(stps) ; end: for n from 1 to 100 do print(n, A087669(n)) ; od ; # R. J. Mathar, Feb 12 2007
  • Python
    def A087669(n):
        c, x = 0, 2*n+1
        a, b = divmod(x,n)
        while b != 0:
            x *= a
            c += 1
            a, b = divmod(x,n)
        return c # Chai Wah Wu, Mar 01 2021

Extensions

More terms from R. J. Mathar, Feb 12 2007
Terms a(23) onward from Max Alekseyev, Jun 25 2011

A192230 Records in A087669.

Original entry on oeis.org

0, 1, 3, 5, 9, 19, 27, 32, 78, 106, 108, 156, 367, 509, 542, 1155, 1158, 1172, 1262, 1268, 1428, 1738, 2497, 2868, 3989, 6018, 6452, 8010, 8178, 10537, 10870, 11434, 13915, 15370, 20685, 20852, 22854, 29415, 32406, 35779, 40456, 43938, 48568, 84406
Offset: 1

Views

Author

Max Alekseyev, Jun 26 2011

Keywords

Crossrefs

Formula

a(n) = A087669(A192229(n))
Showing 1-2 of 2 results.