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)
LINKS
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
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Oct 02 2007
STATUS
approved