login
A245473
Nearest integer to 2^log(n).
1
1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 19, 19, 19, 19
OFFSET
1,2
EXAMPLE
a(2) = 2 because 2^(log 2) = 1.616806672241674663299273071... and this rounds to 2 as an integer.
MAPLE
A245473:=n->round(2^log(n)); seq(A245473(n), n=1..50); # Wesley Ivan Hurt, Jul 24 2014
MATHEMATICA
Table[Round[2^Log[n]], {n, 50}] (* Wesley Ivan Hurt, Jul 24 2014 *)
PROG
(PARI) a(n) = round(2^log(n)); \\ Michel Marcus, Jul 23 2014
CROSSREFS
Sequence in context: A163127 A077113 A143796 * A306904 A371627 A057362
KEYWORD
nonn
AUTHOR
J. Lowell, Jul 23 2014
EXTENSIONS
More terms from Michel Marcus, Jul 23 2014
STATUS
approved