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.

A083321 a(n) = (-1)^n + (-2)^n - (-3)^n.

Original entry on oeis.org

1, 0, -4, 18, -64, 210, -664, 2058, -6304, 19170, -58024, 175098, -527344, 1586130, -4766584, 14316138, -42981184, 129009090, -387158344, 1161737178, -3485735824, 10458256050, -31376865304, 94134790218, -282412759264, 847255055010, -2541798719464, 7625463267258
Offset: 0

Views

Author

Paul Barry, Apr 25 2003

Keywords

Crossrefs

Cf. A001550 (1^n + 2^n + 3^n).

Programs

Formula

G.f.: (1+6*x+7*x^2)/((1+x)*(1+2*x)*(1+3*x)).
E.g.f.: exp(-x)+exp(-2*x)-exp(-3*x).
a(n) = (-1)^(n-1)*(3^n - 2^n - 1) for n >= 0. - M. F. Hasler, Apr 19 2020