login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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

Table of n, a(n) for n=0..104.

Index entries for linear recurrences with constant coefficients, signature (0,0,1).

FORMULA

a(n) = (1/3)*(11*(n mod 3) + 2*((n+1) mod 3) + 2*((n+2) mod 3)). - Paolo P. Lava, Oct 24 2007

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

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). - Klaus Brockhaus, May 16 2010

Sequence in context: A241292 A248510 A020772 * A220337 A198545 A296430

Adjacent sequences:  A131595 A131596 A131597 * A131599 A131600 A131601

KEYWORD

nonn,easy

AUTHOR

Paul Curtz, Oct 02 2007

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 21 02:02 EDT 2019. Contains 325189 sequences. (Running on oeis4.)