cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A004540 Expansion of sqrt(2) in base 3.

This page as a plain text file.
%I A004540 #17 Sep 08 2022 08:44:33
%S A004540 1,1,0,2,0,1,1,2,2,1,2,2,2,0,0,1,2,1,2,2,1,2,2,2,0,0,1,1,2,1,0,0,0,1,
%T A004540 0,2,0,0,0,2,2,0,1,2,1,1,1,2,0,2,0,2,2,0,1,2,0,2,1,1,0,2,2,1,0,1,0,0,
%U A004540 0,2,2,1,1,2,1,0,1,1,2,2,1,0,2,0,2,1,2,1,0,0,2,0,2,0,0,2,1,2,0
%N A004540 Expansion of sqrt(2) in base 3.
%H A004540 Vincenzo Librandi, <a href="/A004540/b004540.txt">Table of n, a(n) for n = 1..5000</a>
%H A004540 Jason Kimberley, <a href="/wiki/User:Jason_Kimberley/sqrt_base">Index of expansions of sqrt(d) in base b</a>
%t A004540 RealDigits[Sqrt[2],3,120][[1]] (* _Harvey P. Dale_, Sep 20 2016 *)
%o A004540 (Magma) Prune(Reverse(IntegerToSequence(Isqrt(2*3^200), 3))); // _Vincenzo Librandi_, Jan 07 2018
%Y A004540 Cf. A002193, A004539, A004541.
%Y A004540 Cf. A004549, A004559, A004575.
%K A004540 nonn,base,cons
%O A004540 1,4
%A A004540 _N. J. A. Sloane_