A182766 Beatty sequence for 5 - 2*sqrt(2).
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
Keywords
Links
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).
Comments