login
Expansion of sqrt(2) in base 5.
1

%I #15 Sep 08 2022 08:44:33

%S 1,2,0,1,3,4,2,0,2,0,4,1,3,0,0,0,0,3,4,2,0,4,2,2,3,2,4,1,3,3,2,3,4,2,

%T 2,3,1,2,0,3,1,0,3,0,3,2,1,0,3,0,4,1,2,4,1,0,4,1,1,4,4,2,1,3,2,1,4,2,

%U 1,1,1,0,3,2,0,2,0,3,2,1,3,4,0,0,1,0,0,2,3,0,1,1,3,1,2,1,3,0,0,0,4,0,3,3,1,2,4,4,3,3,3,2,2,4,1,0,2,0,3,2

%N Expansion of sqrt(2) in base 5.

%H G. C. Greubel, <a href="/A004542/b004542.txt">Table of n, a(n) for n = 1..10000</a>

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

%t RealDigits[Sqrt[2],5,150][[1]] (* _Harvey P. Dale_, Dec 01 2013 *)

%o (Magma) d:= 2; m:=5; Prune(Reverse(IntegerToSequence(Isqrt(d*m^100), m))); // _G. C. Greubel_, Mar 31 2018

%K nonn,base,cons

%O 1,2

%A _N. J. A. Sloane_

%E Corrected by _Harvey P. Dale_, Dec 01 2013