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.

A172278 a(n) = floor(n*(sqrt(13)-sqrt(2))).

Original entry on oeis.org

0, 2, 4, 6, 8, 10, 13, 15, 17, 19, 21, 24, 26, 28, 30, 32, 35, 37, 39, 41, 43, 46, 48, 50, 52, 54, 56, 59, 61, 63, 65, 67, 70, 72, 74, 76, 78, 81, 83, 85, 87, 89, 92, 94, 96, 98, 100, 102, 105, 107, 109, 111, 113, 116, 118, 120, 122, 124, 127, 129, 131, 133, 135, 138, 140
Offset: 0

Views

Author

Vincenzo Librandi, Jan 30 2010

Keywords

Comments

This is the Beatty sequence for the constant 2.19133771309089424431753254326...

Crossrefs

Similar to but strictly different from A276383.

Programs

  • Magma
    [Floor(n*(Sqrt(13)-Sqrt(2))): n in [0..80]]; // Vincenzo Librandi, Aug 02 2013
    
  • Maple
    A172278 := proc(n)
        floor(n*(sqrt(13)-sqrt(2))) ;
    end proc:
    seq(A172278(n),n=0..30) ; # R. J. Mathar, Sep 04 2016
  • Mathematica
    With[{c = Sqrt[13] - Sqrt[2]}, Floor[c Range[0, 80]]] (* Vincenzo Librandi, Aug 02 2013 *)
  • PARI
    for(n=0, 50, print1(floor(n*(sqrt(13)-sqrt(2))), ", ")) \\ G. C. Greubel, Jul 05 2017