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.

A114285 Expansion of g.f. (1 - 3*x)/((1 - x)*(1 - x^2)).

Original entry on oeis.org

1, -2, -1, -4, -3, -6, -5, -8, -7, -10, -9, -12, -11, -14, -13, -16, -15, -18, -17, -20, -19, -22, -21, -24, -23, -26, -25, -28, -27, -30, -29, -32, -31, -34, -33, -36, -35, -38, -37, -40, -39, -42, -41, -44, -43, -46, -45, -48, -47, -50, -49, -52, -51, -54, -53, -56, -55, -58, -57, -60, -59, -62, -61
Offset: 0

Views

Author

Paul Barry, Nov 20 2005

Keywords

Comments

Diagonal sums of A114284.

Crossrefs

Programs

Formula

a(n) = Sum_{k=0..floor(n/2)} 3*0^(n-2k) - 2.
a(n) = 3*(1 + (-1)^n)/2 - 2*floor((n+2)/2).
a(n) = - A103889(n). - R. J. Mathar, Apr 06 2008
From Wesley Ivan Hurt, Sep 06 2015: (Start)
a(n) = a(n-1) + a(n-2) - a(n-3), n > 2.
a(n) = (-1)^n - n. (End)
E.g.f.: exp(-x) - x*exp(x). - Stefano Spezia, May 03 2023