login
Expansion of sqrt(3) in base 3.
3

%I #30 Oct 19 2023 09:07:30

%S 1,2,0,1,2,0,2,1,2,2,2,2,1,2,1,0,2,2,1,2,1,1,2,0,1,0,1,2,2,2,1,0,1,2,

%T 0,1,1,0,0,2,2,2,0,0,0,1,2,1,0,0,2,0,0,0,0,0,2,2,2,2,0,2,1,0,2,1,0,2,

%U 1,1,1,0,0,2,0,0,0,0,2,0,1,0,2,2,0,2,0,2,1,2,0,0,1,2,2,0,0,2,1

%N Expansion of sqrt(3) in base 3.

%H G. C. Greubel, <a href="/A004548/b004548.txt">Table of n, a(n) for n = 1..10000</a> (terms 1..2000 from Vincenzo Librandi)

%H Jason Kimberley, <a href="/wiki/User:Jason_Kimberley/sqrt_base">Index of expansions of sqrt(d) in base b</a>

%t RealDigits[Sqrt[3], 3, 100][[1]] (* _Vincenzo Librandi_, Apr 29 2017 *)

%o (Magma) Prune(Reverse(IntegerToSequence(Isqrt(3*3^200), 3))); // _Vincenzo Librandi_, Apr 29 2017

%Y Cf. A002194.

%K nonn,base,cons

%O 1,2

%A _N. J. A. Sloane_