A182777 Beatty sequence for 3-sqrt(3).
1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 17, 19, 20, 21, 22, 24, 25, 26, 27, 29, 30, 31, 32, 34, 35, 36, 38, 39, 40, 41, 43, 44, 45, 46, 48, 49, 50, 51, 53, 54, 55, 57, 58, 59, 60, 62, 63, 64, 65, 67, 68, 69, 71, 72, 73, 74, 76, 77, 78, 79, 81, 82, 83, 84, 86
Offset: 1
Keywords
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Programs
-
Magma
[Floor(n*(3-Sqrt(3))): n in [1..80]]; // Vincenzo Librandi, Oct 25 2011
-
Mathematica
Table[Floor[(3-Sqrt[3]) n], {n, 68}]
-
PARI
vector(80, n, floor(n*(3-sqrt(3)))) \\ G. C. Greubel, Nov 23 2018
-
Sage
[floor(n*(3-sqrt(3))) for n in (1..80)] # G. C. Greubel, Nov 23 2018
Formula
a(n) = floor(n*(3-sqrt(3))).
Extensions
Typo in formula by Vincenzo Librandi, Oct 25 2011
Comments