[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A006085 Continued fraction for e/4.
(Formerly M1822)
5
0, 1, 2, 8, 3, 1, 1, 1, 1, 7, 1, 1, 2, 1, 1, 1, 2, 7, 1, 2, 2, 1, 1, 1, 3, 7, 1, 3, 2, 1, 1, 1, 4, 7, 1, 4, 2, 1, 1, 1, 5, 7, 1, 5, 2, 1, 1, 1, 6, 7, 1, 6, 2, 1, 1, 1, 7, 7, 1, 7, 2, 1, 1, 1, 8, 7, 1, 8, 2, 1, 1, 1, 9, 7, 1, 9, 2, 1, 1, 1, 10, 7, 1, 10, 2, 1, 1, 1, 11, 7, 1, 11, 2, 1, 1, 1, 12, 7, 1, 12, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
REFERENCES
D. E. Knuth, The Art of Computer Programming. Addison-Wesley, Reading, MA, Vol. 2, p. 601.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
G. Xiao, Contfrac
Index entries for linear recurrences with constant coefficients, signature (1, -1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, -1, 1, -1).
FORMULA
First seven terms are 0, 1, 2, 8, 3, 1, 1; then a(8k)=1, a(8k+1)=k, a(8k+2)=7, a(8k+3)=1, a(8k+4)=k, a(8k+5)=2, a(8k+6)=1, a(8k+7)=1. - Benoit Cloitre, Apr 08 2003
G.f.: x*(1+x+7*x^2-4*x^3+5*x^4-4*x^5+5*x^6-4*x^7+9*x^8-12*x^9-3*x^10-x^11-x^13-6*x^16+7*x^17+x^18) / ((1-x)^2*(1+x)*(1+x^2)^2*(1+x^4)^2). - Colin Barker, May 16 2016
EXAMPLE
0.679570457114761308840071867... = 0 + 1/(1 + 1/(2 + 1/(8 + 1/(3 + ...)))). - Harry J. Smith, May 10 2009
MATHEMATICA
ContinuedFraction[E/4, 120] (* Harvey P. Dale, Apr 01 2011 *)
Join[{0, 1, 2, 8, 3}, LinearRecurrence[{1, -1, 1, -1, 1, -1, 1, 1, -1, 1, -1, 1, -1, 1, -1}, {1, 1, 1, 1, 7, 1, 1, 2, 1, 1, 1, 2, 7, 1, 2}, 97]] (* Ray Chandler, Sep 03 2015 *)
PROG
(PARI) { allocatemem(932245000); default(realprecision, 40000); x=contfrac(exp(1)/4); for (n=1, 20000, write("b006085.txt", n, " ", x[n])); } \\ Harry J. Smith, May 10 2009
(PARI) concat(0, Vec(x*(1+x+7*x^2-4*x^3+5*x^4-4*x^5+5*x^6-4*x^7+9*x^8-12*x^9-3*x^10-x^11-x^13-6*x^16+7*x^17+x^18)/((1-x)^2*(1+x)*(1+x^2)^2*(1+x^4)^2) + O(x^50))) \\ Colin Barker, May 16 2016
CROSSREFS
Cf. A019741 = Decimal expansion. - Harry J. Smith, May 10 2009
Sequence in context: A085192 A320972 A273692 * A021357 A214072 A016640
KEYWORD
nonn,cofr,easy
AUTHOR
EXTENSIONS
More terms from Antonio G. Astudillo (afg_astudillo(AT)lycos.com), Apr 20 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 29 13:35 EDT 2024. Contains 375517 sequences. (Running on oeis4.)