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

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

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

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

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

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

%H G. C. Greubel, <a href="/A004555/b004555.txt">Table of n, a(n) for n = 2..10000</a> (terms 2..1000 from Ivan Panchenko)

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

%e 10.0011110001101110111100110111001011111110100101001111100000101011111001110...

%t RealDigits[Sqrt[5],2,120][[1]] (* _Harvey P. Dale_, Apr 08 2015 *)

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

%K nonn,base,cons

%O 2,1

%A _N. J. A. Sloane_