login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A131716 Period 6: repeat [0, 1, 2, 5, 8, 9]. 1
0, 1, 2, 5, 8, 9, 0, 1, 2, 5, 8, 9, 0, 1, 2, 5, 8, 9, 0, 1, 2, 5, 8, 9, 0, 1, 2, 5, 8, 9, 0, 1, 2, 5, 8, 9, 0, 1, 2, 5, 8, 9, 0, 1, 2, 5, 8, 9, 0, 1, 2, 5, 8, 9, 0, 1, 2, 5, 8, 9, 0, 1, 2, 5, 8, 9, 0, 1, 2, 5, 8, 9, 0, 1, 2, 5, 8, 9, 0, 1, 2, 5, 8, 9, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

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

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

FORMULA

a(n) = (1/9)*{16*(n mod 6)+[(n+1) mod 6]-2*[(n+2) mod 6]-2*[(n+3) mod 6]+[(n+4) mod 6]+[(n+5) mod 6]}. - Paolo P. Lava, Oct 02 2007

From Wesley Ivan Hurt, Jun 19 2016: (Start)

G.f.: x*(1+2*x+5*x^2+8*x^3+9*x^4)/(1-x^6).

a(n) = a(n-6) for n>5.

a(n) = (25 - 5*cos(n*Pi) - 10*cos(n*Pi/3) - 10*cos(2*n*Pi/3) - 14*sqrt(3)*sin(n*Pi/3) - 2*sqrt(3)*sin(2*n*Pi/3))/6. (End)

MAPLE

A131716:=n->[0, 1, 2, 5, 8, 9][(n mod 6)+1]: seq(A131716(n), n=0..100); # Wesley Ivan Hurt, Jun 19 2016

MATHEMATICA

PadRight[{}, 200, {0, 1, 2, 5, 8, 9}] (* Wesley Ivan Hurt, Jun 19 2016 *)

PROG

(MAGMA) &cat[[0, 1, 2, 5, 8, 9]^^20]; // Wesley Ivan Hurt, Jun 19 2016

CROSSREFS

Cf. A131711.

Sequence in context: A046825 A250320 A250561 * A011279 A185094 A071099

Adjacent sequences:  A131713 A131714 A131715 * A131717 A131718 A131719

KEYWORD

nonn,easy

AUTHOR

Paul Curtz, Sep 14 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 September 28 13:24 EDT 2020. Contains 337393 sequences. (Running on oeis4.)