|
| |
|
|
A158678
|
|
Period 18: repeat 0,0,0,3,0,0,0,3,0,-3,0,3,0,-3,0,0,0,-3.
|
|
0
| |
|
|
0, 0, 0, 3, 0, 0, 0, 3, 0, -3, 0, 3, 0, -3, 0, 0, 0, -3, 0, 0, 0, 3, 0, 0, 0, 3, 0, -3, 0, 3, 0, -3, 0, 0, 0, -3, 0, 0, 0, 3, 0, 0, 0, 3, 0, -3, 0, 3, 0, -3, 0, 0, 0, -3
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,4
|
|
|
FORMULA
| a(n) = A158674(n) - A158677(n) = a(n-18).
a(n)=(1/6)*{-(n mod 18)+[(n+1) mod 18]-[(n+4) mod 18]+[(n+5) mod 18]+[(n+6) mod 18]-[(n+7) mod 18]-[(n+8) mod 18]+[(n+9) mod 18]+[(n+10) mod 18]-[(n+11) mod 18]+[(n+14) mod 18]-[(n+15) mod 18]}, with n>=0 [From Paolo P. Lava (paoloplava(AT)gmail.com), Mar 27 2009]
G.f.: 3*(1+x+x^2)*(x^2-x+1)*(x^4-x^2+1)*x^4/((x^6-x^3+1)*(x^6+x^3+1)). - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Apr 08 2009
|
|
|
CROSSREFS
| Sequence in context: A090225 A206705 A200221 * A117980 A065032 A007514
Adjacent sequences: A158675 A158676 A158677 * A158679 A158680 A158681
|
|
|
KEYWORD
| sign,easy
|
|
|
AUTHOR
| Paul Curtz (bpcrtz(AT)free.fr), Mar 24 2009
|
|
|
EXTENSIONS
| Edited by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Apr 08 2009
|
| |
|
|