A004558 Expansion of sqrt(5) in base 5.
2, 1, 0, 4, 2, 2, 3, 2, 4, 0, 1, 1, 3, 2, 4, 1, 0, 4, 0, 0, 1, 3, 4, 4, 1, 2, 3, 3, 0, 4, 1, 3, 0, 4, 2, 4, 2, 2, 2, 1, 2, 1, 3, 2, 1, 1, 3, 0, 1, 3, 1, 0, 3, 2, 1, 0, 0, 1, 0, 2, 2, 1, 4, 2, 3, 4, 4, 4, 3, 4, 3, 4, 2, 4, 2, 3, 4, 4, 1, 4, 4, 4, 2, 1, 1, 3, 0, 3, 2, 1, 4, 0, 1, 3, 0, 3, 2, 2, 1
Offset: 1
Links
- G. C. Greubel, Table of n, a(n) for n = 1..10000 (terms 1.2000 from Vincenzo Librandi)
- Jason Kimberley, Index of expansions of sqrt(d) in base b
Crossrefs
Cf. A002163.
Programs
-
Magma
Prune(Reverse(IntegerToSequence(Isqrt(5*5^200), 5))); // Vincenzo Librandi, Apr 29 2017
-
Mathematica
RealDigits[Sqrt[5], 5, 100][[1]] (* Vincenzo Librandi, Apr 29 2017 *)
Extensions
Updated by Alois P. Heinz at the suggestion of Kevin Ryde, Feb 19 2012