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.

A004142 a(n) = n*(3^n - 2^n).

Original entry on oeis.org

0, 1, 10, 57, 260, 1055, 3990, 14413, 50440, 172539, 580250, 1926089, 6328140, 20619703, 66732190, 214742085, 687698960, 2193154547, 6968850210, 22073006401, 69714716500, 219623377071, 690291036710
Offset: 0

Views

Author

Keywords

Crossrefs

Equals n * A001047(n).

Programs

  • Mathematica
    Table[n(3^n-2^n),{n,0,30}] (* or *) LinearRecurrence[{10,-37,60,-36},{0,1,10,57},30] (* Harvey P. Dale, Sep 04 2023 *)

Formula

From R. J. Mathar, Feb 10 2022: (Start)
G.f.: -x*(-1+6*x^2) / ( (3*x-1)^2*(2*x-1)^2 ).
a(n) = A036290(n) - A036289(n). (End)