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.

A195176 a(n) = 3*n - floor(n*sqrt(2)).

Original entry on oeis.org

0, 2, 4, 5, 7, 8, 10, 12, 13, 15, 16, 18, 20, 21, 23, 24, 26, 27, 29, 31, 32, 34, 35, 37, 39, 40, 42, 43, 45, 46, 48, 50, 51, 53, 54, 56, 58, 59, 61, 62, 64, 66, 67, 69, 70, 72, 73, 75, 77, 78, 80, 81, 83, 85, 86, 88, 89, 91, 92, 94, 96, 97, 99, 100, 102, 104, 105
Offset: 0

Views

Author

Clark Kimberling, Sep 10 2011

Keywords

Programs

  • Magma
    [3*n-Floor(n*(Sqrt(2))): n in [0..70]]; // Vincenzo Librandi, Sep 12 2011
    
  • Mathematica
    With[{c = Sqrt[2]},Table[3*n - Floor[c*n],{n,0,50}]] (* G. C. Greubel, Oct 31 2017 *)
  • PARI
    for(n=0,50, print1(3*n - floor(n*sqrt(2)), ", ")) \\ G. C. Greubel, Oct 31 2017