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.

A117630 Complement of A056576.

Original entry on oeis.org

2, 5, 8, 10, 13, 16, 18, 21, 24, 27, 29, 32, 35, 37, 40, 43, 46, 48, 51, 54, 56, 59, 62, 65, 67, 70, 73, 75, 78, 81, 83, 86, 89, 92, 94, 97, 100, 102, 105, 108, 111, 113, 116, 119, 121, 124, 127, 130, 132, 135, 138, 140, 143, 146, 149, 151, 154, 157, 159, 162, 165
Offset: 1

Views

Author

Robert G. Wilson v, Apr 08 2006

Keywords

Comments

A Beatty sequence.

Crossrefs

Cf. A102525 (decimal expansion of log_3(2)).
Cf. A254312 (sequence arises as exponents in array definition).

Programs

  • Magma
    [Floor(n*Log(3)/Log(3/2)): n in [1..80]]; // Vincenzo Librandi, Apr 17 2015
    
  • Maple
    seq(floor(n*log[3/2](3)), n=1..100); # Robert Israel, Nov 09 2015
  • Mathematica
    Table[Floor[n*Log[3/2, 3]], {n, 61}]
  • PARI
    vector(100, n, floor(n*log(3)/log(3/2))) \\ Altug Alkan, Nov 10 2015
    
  • Python
    from operator import sub
    from sympy import integer_log
    def A117630(n):
        def f(x): return n+sub(*integer_log(1<Chai Wah Wu, Oct 09 2024

Formula

a(n) = floor(n*log(3)/log(3/2)).
a(n) = A054414(n) - 1. - Ruud H.G. van Tol, May 10 2024