cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A117378 Expansion of (1-4*x)/(1-x+x^2).

Original entry on oeis.org

1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3, -4, -1, 3, 4, 1, -3
Offset: 0

Views

Author

Paul Barry, Mar 10 2006

Keywords

Comments

Row sums of number triangle A117377.
Period 6: repeat [1, -3, -4, -1, 3, 4]. - Philippe Deléham, Nov 03 2008

Crossrefs

Cf. A117377.

Programs

Formula

G.f.: (1-4*x)/(1-x+x^2).
a(n) = Sum_{k=0..n} (-1)^(n-k) * ( C(k,n-k) + 4*C(k,n-k-1) ).
a(n) = a(n-1) - a(n-2) for n>1. [Philippe Deléham, Nov 03 2008]
a(n) = (1+(-n mod 3))^(n mod 3)*(-1)^floor((n+2)/3). - Wesley Ivan Hurt, Aug 31 2014
a(n) = (3*cos(n*Pi/3) - 7*sqrt(3)*sin(n*Pi/3))/3. - Wesley Ivan Hurt, Jun 23 2016
E.g.f.: (3*cos(sqrt(3)*x/2) - 7*sqrt(3)*sin(sqrt(3)*x/2))*exp(x/2)/3. - Ilya Gutkovskiy, Jun 27 2016