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!)
A293326 The integer k that minimizes |k/2^n - sqrt(3)|. 2
2, 3, 7, 14, 28, 55, 111, 222, 443, 887, 1774, 3547, 7094, 14189, 28378, 56756, 113512, 227023, 454047, 908093, 1816187, 3632374, 7264748, 14529495, 29058991, 58117981, 116235962, 232471924, 464943848, 929887697, 1859775393, 3719550787, 7439101574 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
a(n) = floor(1/2 + r*2^n), where r = sqrt(3).
a(n) = A094386(n) if (fractional part of r*2^n) < 1/2, else a(n) = A293325(n).
MATHEMATICA
z = 120; r = Sqrt[3];
Table[Floor[r*2^n], {n, 0, z}]; (* A094386 *)
Table[Ceiling[r*2^n], {n, 0, z}]; (* A293325 *)
Table[Round[r*2^n], {n, 0, z}]; (* A293326 *)
PROG
(Python)
from math import isqrt
def A293326(n): return (k:=isqrt(m:=3*(1<<(n<<1))))+int((m-k*(k+1)<<2)-1>=0) # Chai Wah Wu, Jul 28 2022
CROSSREFS
Sequence in context: A333342 A078043 A294627 * A308092 A262765 A340163
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Oct 09 2017
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 19 15:34 EDT 2024. Contains 371794 sequences. (Running on oeis4.)