OFFSET
1,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..5000
Eric Weisstein's World of Mathematics, Beatty Sequence
Eric Weisstein's World of Mathematics, Natural Logarithm of 2
FORMULA
a(n) = floor(n*log(2)).
a(n) = A059541(n) - n.
MATHEMATICA
Table[Floor[Log[2] n], {n, 1, 80}]
PROG
(PARI) a(n) = floor(n*log(2)); \\ Altug Alkan, Dec 02 2015
(Magma) [Floor(n*Log(2)): n in [1..100]]; // Vincenzo Librandi, Dec 03 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, Dec 02 2015
STATUS
approved