This site is supported by donations to The OEIS Foundation.

 Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing. Other ways to donate

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A154127 Period 6: repeat [1, 2, 5, 8, 7, 4]. 4
 1, 2, 5, 8, 7, 4, 1, 2, 5, 8, 7, 4, 1, 2, 5, 8, 7, 4, 1, 2, 5, 8, 7, 4, 1, 2, 5, 8, 7, 4, 1, 2, 5, 8, 7, 4, 1, 2, 5, 8, 7, 4, 1, 2, 5, 8, 7, 4, 1, 2, 5, 8, 7, 4, 1, 2, 5, 8, 7, 4, 1, 2, 5, 8, 7, 4, 1, 2, 5, 8, 7, 4, 1, 2, 5, 8, 7, 4, 1, 2, 5, 8, 7, 4, 1, 2 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 COMMENTS Terms of the simple continued fraction of 933/(sqrt(5071503)-1611). Decimal expansion of 18/143. [Paolo P. Lava, Feb 17 2009] LINKS Index entries for linear recurrences with constant coefficients, signature (1,0,-1,1). FORMULA a(n) = (1/15)*{12*(n mod 6)+12*[(n+1) mod 6]+7*[(n+2) mod 6]-3*[(n+3) mod 6]-3*[(n+4) mod 6]+2*[(n+5) mod 6]}. [Paolo P. Lava, Jan 09 2009] From R. J. Mathar, Feb 25 2009, Mar 09 2009: (Start) a(n) = a(n-1) - a(n-3) + a(n-4) for n>3. G.f.: (1+x+3*x^2+4*x^3)/((1-x)*(1+x)*(x^2-x+1)). (End) a(n) = (27-cos(n*Pi)-20*cos(n*Pi/3)-4*sqrt(3)*sin(n*Pi/3))/6. - Wesley Ivan Hurt, Jun 17 2016 MAPLE A154127:=n->(27-cos(n*Pi)-20*cos(n*Pi/3)-4*sqrt(3)*sin(n*Pi/3))/6: seq(A154127(n), n=0..100); # Wesley Ivan Hurt, Jun 17 2016 MATHEMATICA Flatten[Table[{1, 2, 5, 8, 7, 4}, {20}]] (* Wesley Ivan Hurt, Jun 17 2016 *) PROG (PARI) a(n)=[1, 2, 5, 8, 7, 4][n%6+1] \\ Charles R Greathouse IV, Jun 02 2011 (MAGMA) &cat[[1, 2, 5, 8, 7, 4]: n in [0..20]]; // Wesley Ivan Hurt, Jun 17 2016 CROSSREFS Cf. A020806, A029898, A070366, A141425, A146501, A153130. Sequence in context: A118119 A287013 A057929 * A250206 A138371 A140053 Adjacent sequences:  A154124 A154125 A154126 * A154128 A154129 A154130 KEYWORD nonn,easy,less AUTHOR Paul Curtz, Jan 05 2009 EXTENSIONS Corrected numerator in g.f R. J. Mathar, Mar 09 2009 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 December 8 04:31 EST 2019. Contains 329850 sequences. (Running on oeis4.)