|
| |
|
|
A131719
|
|
Period 6: repeat 0, 1, 1, 1, 1, 0.
|
|
3
| |
|
|
0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,1
|
|
|
LINKS
| Index entries for sequences related to linear recurrences with constant coefficients, signature (1,-1,1,-1,1).
|
|
|
FORMULA
| a(n)=(1/90)*{4*(n mod 6)+19*[(n+1) mod 6]+4*[(n+2) mod 6]+4*[(n+3) mod 6]+4*[(n+4) mod 6]-11*[(n+5) mod 6]}, with n>=0 - Paolo P. Lava (paoloplava(AT)gmail.com), Oct 02 2007
G.f.: -(x^2+1)*x/(x-1)/(x^2+x+1)/(x^2-x+1). - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Nov 14 2007
a(n)= 2/3-cos(Pi*n/3)/2+sqrt(3)*sin(Pi*n/3)/6 -cos(2*Pi*n/3)/6 +sqrt(3)*sin(2*Pi*n/3)/6. - R. J. Mathar, Oct 08 2011
|
|
|
PROG
| (PARI) a(n)=[0, 1, 1, 1, 1, 0][n%6+1] \\ Charles R Greathouse IV, Jun 02 2011
|
|
|
CROSSREFS
| Sequence in context: A102460 A080908 A131720 * A100656 A053867 A069513
Adjacent sequences: A131716 A131717 A131718 * A131720 A131721 A131722
|
|
|
KEYWORD
| nonn,easy,less
|
|
|
AUTHOR
| Paul Curtz (bpcrtz(AT)free.fr), Sep 15 2007
|
| |
|
|