login
Decimal expansion of sqrt(3) rounded to n places.
1

%I #17 Jul 29 2022 20:39:08

%S 2,17,173,1732,17321,173205,1732051,17320508,173205081,1732050808,

%T 17320508076,173205080757,1732050807569,17320508075689,

%U 173205080756888,1732050807568877,17320508075688773,173205080756887729,1732050807568877294,17320508075688772935

%N Decimal expansion of sqrt(3) rounded to n places.

%H Vincenzo Librandi, <a href="/A011550/b011550.txt">Table of n, a(n) for n = 0..200</a>

%t Round[Table[N[Sqrt[3], k]*10^(k - 1), {k, 17}]] (* _Jayanta Basu_, Aug 14 2013 *)

%o (Python)

%o from math import isqrt

%o def A011550(n): return (m:=isqrt(k:=10**(n<<1)*3))+int((k-m*(m+1)<<2)>=1) # _Chai Wah Wu_, Jul 29 2022

%K nonn,base,easy

%O 0,1

%A _N. J. A. Sloane_.