login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
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 A057362 A214046
KEYWORD
nonn
AUTHOR
J. Lowell, Jul 23 2014
EXTENSIONS
More terms from Michel Marcus, Jul 23 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 18:22 EDT 2024. Contains 371750 sequences. (Running on oeis4.)