|
|
A022838
|
|
Beatty sequence for sqrt(3); complement of A054406.
|
|
63
|
|
|
1, 3, 5, 6, 8, 10, 12, 13, 15, 17, 19, 20, 22, 24, 25, 27, 29, 31, 32, 34, 36, 38, 39, 41, 43, 45, 46, 48, 50, 51, 53, 55, 57, 58, 60, 62, 64, 65, 67, 69, 71, 72, 74, 76, 77, 79, 81, 83, 84, 86, 88, 90, 91, 93, 95, 96, 98, 100, 102, 103, 105, 107, 109, 110, 112
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 2 * floor(n * (sqrt(3) - 1)) + floor(n * (2 - sqrt(3))) + 1. - Miko Labalan, Dec 03 2016
|
|
MAPLE
|
floor(n*sqrt(3)) ;
|
|
MATHEMATICA
|
|
|
PROG
|
(Haskell)
a022838 = floor . (* sqrt 3) . fromIntegral
(PARI) vector(60, n, floor(n*sqrt(3))) \\ G. C. Greubel, Sep 28 2018
(Magma) [Floor(n*Sqrt(3)): n in [1..60]]; // G. C. Greubel, Sep 28 2018
(Python)
from math import isqrt
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|