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.

A182766 Beatty sequence for 5 - 2*sqrt(2).

Original entry on oeis.org

2, 4, 6, 8, 10, 13, 15, 17, 19, 21, 23, 26, 28, 30, 32, 34, 36, 39, 41, 43, 45, 47, 49, 52, 54, 56, 58, 60, 62, 65, 67, 69, 71, 73, 76, 78, 80, 82, 84, 86, 89, 91, 93, 95, 97, 99, 102, 104, 106, 108, 110, 112, 115, 117, 119, 121, 123, 125, 128, 130, 132, 134, 136, 138, 141, 143, 145, 147, 149, 152, 154, 156, 158, 160, 162, 165, 167
Offset: 1

Views

Author

Clark Kimberling, Nov 29 2010

Keywords

Comments

Let u=(1+sqrt(2))/2 and v=sqrt(2). Jointly rank {ju} and {kv} as in the first comment at A182760; a(n) is the position of nv. A182766 is the complement of A182765.

Crossrefs

Programs

  • Magma
    [Floor(n*(5-2*Sqrt(2))): n in [1..80]]; // Vincenzo Librandi, Oct 25 2011
    
  • Mathematica
    Table[Floor[n*(5 - 2*Sqrt[2])], {n, 1, 100}] (* G. C. Greubel, Aug 18 2018 *)
  • PARI
    vector(100,n, floor(n*(5-2*sqrt(2)))) \\ G. C. Greubel, Aug 18 2018

Formula

a(n) = floor(s*n), where s = 5 - 2*sqrt(2).