%I #24 Dec 27 2023 00:51:01
%S 9,9,18,9,18,9,18,9,18,9,18,9,18,9,18,9,18,9,18,9,18,9,18,9,18,9,18,9,
%T 18,9,18,9,18,9,18,9,18,9,18,9,18,9,18,9,18,9,18,9,18,9,18,9,18,9,18,
%U 9,18,9,18,9,18,9,18,9,18,9
%N Continued fraction for sqrt(83).
%H Harry J. Smith, <a href="/A040073/b040073.txt">Table of n, a(n) for n = 0..20000</a>
%H G. Xiao, <a href="http://wims.unice.fr/~wims/en_tool~number~contfrac.en.html">Contfrac</a>
%H <a href="/index/Con#confC">Index entries for continued fractions for constants</a>
%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0, 1).
%e 9.1104335791442988819456261... = 9 + 1/(9 + 1/(18 + 1/(9 + 1/(18 + ...)))). - _Harry J. Smith_, Jun 10 2009
%p Digits := 100: convert(evalf(sqrt(N)),confrac,90,'cvgts'):
%t ContinuedFraction[Sqrt[83],300] (* _Vladimir Joseph Stephan Orlovsky_, Mar 09 2011 *)
%t LinearRecurrence[{0,1},{9,9,18},70] (* or *) PadRight[{9},70,{18,9}] (* _Harvey P. Dale_, Jan 25 2018 *)
%o (PARI) { allocatemem(932245000); default(realprecision, 45000); x=contfrac(sqrt(83)); for (n=0, 20000, write("b040073.txt", n, " ", x[n+1])); } \\ _Harry J. Smith_, Jun 10 2009
%Y Cf. A010534 Decimal expansion. - _Harry J. Smith_, Jun 10 2009
%K nonn,cofr,easy
%O 0,1
%A _N. J. A. Sloane_
|