

A040020


Continued fraction for sqrt(26).


5



5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

0,1


LINKS

Harry J. Smith, Table of n, a(n) for n = 0..20000
G. Xiao, Contfrac
Index entries for continued fractions for constants
Index entries for linear recurrences with constant coefficients, signature (1).


FORMULA

a(n) = 10  5*(binomial(2*n,n) mod 2), with n>=0.  Paolo P. Lava, Jun 09 2009


EXAMPLE

5.09901951359278483002822... = 5 + 1/(10 + 1/(10 + 1/(10 + 1/(10 + ...)))).  Harry J. Smith, Jun 03 2009


MAPLE

numtheory[cfrac](sqrt(26), 100, 'quotients'); # obsolete code updated by Alois P. Heinz, Feb 24 2018


MATHEMATICA

ContinuedFraction[Sqrt[26], 300] (* Vladimir Joseph Stephan Orlovsky, Mar 05 2011 *)


PROG

(PARI) contfrac(sqrt(26)) \\ Harry J. Smith, Jun 03 2009 [Edited by M. F. Hasler, Feb 24 2018]
(PARI) A040020(n)=if(n, 10, 5) \\ M. F. Hasler, Feb 24 2018


CROSSREFS

Cf. A010481 Decimal expansion.  Harry J. Smith, Jun 03 2009
Sequence in context: A065755 A135912 A200990 * A222181 A282172 A123337
Adjacent sequences: A040017 A040018 A040019 * A040021 A040022 A040023


KEYWORD

nonn,cofr,easy


AUTHOR

N. J. A. Sloane


STATUS

approved



