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

 


A131598
Period 3: repeat [2, 5, 8].
3
2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8, 2, 5, 8
OFFSET
0,1
COMMENTS
From Klaus Brockhaus, May 16 2010: (Start)
Continued fraction expansion of (85+sqrt(9029))/82.
Decimal expansion of 86/333. (End)
FORMULA
a(n) = 5 - 3*cos(2/3*Pi*n) - 3^(1/2)*sin(2/3*Pi*n). - R. J. Mathar, Nov 15 2007
G.f.: (2+5*x+8*x^2)/(1-x^3). - Jaume Oliver Lafont, Mar 24 2009
a(n) = a(n-3) for n>2. - Wesley Ivan Hurt, Jul 01 2016
a(n) = 3*(n mod 3) + 2, see PARI code. - Bruno Berselli, Jul 25 2018
E.g.f.: 5*exp(x) - exp(-x/2)*(3*cos(sqrt(3)*x/2) + sqrt(3)*sin(sqrt(3)*x/2)). - Stefano Spezia, Sep 11 2022
MAPLE
seq(op([2, 5, 8]), n=0..50); # Wesley Ivan Hurt, Jul 01 2016
MATHEMATICA
PadRight[{}, 120, {2, 5, 8}] (* Harvey P. Dale, Jun 22 2013 *)
Table[3 Mod[n, 3] + 2, {n, 0, 120}] (* or *)
CoefficientList[Series[(2 + 5 x + 8 x^2)/(1 - x^3), {x, 0, 120}], x] (* Michael De Vlieger, Jul 02 2016 *)
PROG
(PARI) a(n)=2+3*(n%3) \\ Jaume Oliver Lafont, Mar 24 2009
(Magma) &cat [[2, 5, 8]^^30]; // Wesley Ivan Hurt, Jul 01 2016
CROSSREFS
Cf. A177972 (decimal expansion of (85+sqrt(9029))/82).
Sequence in context: A362590 A248510 A020772 * A220337 A198545 A296430
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Oct 02 2007
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 September 23 21:13 EDT 2024. Contains 376182 sequences. (Running on oeis4.)