|
| |
|
|
A134012
|
|
Period 5: repeat 1, 6, 11, 6, 1.
|
|
0
| |
|
|
1, 6, 11, 6, 1, 1, 6, 11, 6, 1, 1, 6, 11, 6, 1, 1, 6, 11, 6, 1, 1, 6, 11, 6, 1, 1, 6, 11, 6, 1, 1, 6, 11, 6, 1, 1, 6, 11, 6, 1, 1, 6, 11, 6, 1, 1, 6, 11, 6, 1, 1, 6, 11, 6, 1
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,2
|
|
|
LINKS
| Index to sequences with linear recurrences with constant coefficients, signature (0,0,0,0,1).
|
|
|
FORMULA
| a(n)=(1/2)*{(n mod 5)+3*[(n+1) mod 5]+3*[(n+2) mod 5]-[(n+3) mod 5]-[(n+4) mod 5]}, with n>=0 - Paolo P. Lava (paoloplava(AT)gmail.com), Jan 25 2008
G.f. -(x^2+3*x+1)^2 / ( (x-1)*(1+x+x^2+x^3+x^4) ). - R. J. Mathar, Apr 02 2011
|
|
|
PROG
| (PARI) a(n)=11-5*abs(n%5-2) [From Jaume Oliver Lafont (joliverlafont(AT)gmail.com), Aug 28 2009]
|
|
|
CROSSREFS
| Sequence in context: A100129 A009443 A106540 * A103704 A135998 A152089
Adjacent sequences: A134009 A134010 A134011 * A134013 A134014 A134015
|
|
|
KEYWORD
| nonn,easy
|
|
|
AUTHOR
| Paul Curtz (bpcrtz(AT)free.fr), Jan 10 2008
|
| |
|
|