This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A076840 a(1) = a(2) = 1; a(n) = (a(n-1) + 1)/a(n-2) (for n>2, n odd), (a(n-1)^2 + 1)/a(n-2) (for n>2, n even). 4
 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2, 5, 3, 2, 1, 1, 2 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,3 COMMENTS Any sequence a(1),a(2),a(3),... defined by the recurrence a(n) = (a(n-1)+1)/a(n-2) (for n>2, n odd), (a(n-1)^2+1)/a(n-2) (for n>2, n even) has period 6. The theory of cluster algebras currently being developed by Fomin and Zelevinsky gives a context for these facts, but it doesn't really explain them in an elementary way. - James Propp, Nov 20 2002 Terms of the simple continued fraction of 43/[3*sqrt(434)-37]. Decimal expansion of 16076/142857. - Paolo P. Lava, Aug 05 2009 LINKS Sergey Fomin and Andrei Zelevinsky, Cluster algebras II: Finite type classification, arXiv:math/0208229 [math.RA], 2002-2003. Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,1). FORMULA a(n) = 1/90*{29*(n mod 6)+29*[(n+1) mod 6]+44*[(n+2) mod 6]-31*[(n+3) mod 6]-[(n+4) mod 6]+14*[(n+5) mod 6]} with n>=0. - Paolo P. Lava, Nov 27 2006 MAPLE a := 1; b := 1; f := proc(n) option remember; global a, b; if n=1 then RETURN(a); fi; if n=2 then RETURN(b); fi; if n mod 2 = 1 then RETURN((f(n-1)+1)/f(n-2)); fi; RETURN((f(n-1)^2+1)/f(n-2)); end; MATHEMATICA LinearRecurrence[{0, 0, 0, 0, 0, 1}, {1, 1, 2, 5, 3, 2}, 105] (* Jean-François Alcover, Nov 22 2017 *) CROSSREFS Cf. A076839, A076841, A076844. Sequence in context: A242292 A159897 A019709 * A188923 A078375 A065261 Adjacent sequences:  A076837 A076838 A076839 * A076841 A076842 A076843 KEYWORD nonn,easy AUTHOR N. J. A. Sloane, Nov 21 2002 STATUS approved

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

Last modified October 19 04:40 EDT 2019. Contains 328211 sequences. (Running on oeis4.)