|
|
A004142
|
|
a(n) = n*(3^n - 2^n).
|
|
0
|
|
|
0, 1, 10, 57, 260, 1055, 3990, 14413, 50440, 172539, 580250, 1926089, 6328140, 20619703, 66732190, 214742085, 687698960, 2193154547, 6968850210, 22073006401, 69714716500, 219623377071, 690291036710
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
G.f.: -x*(-1+6*x^2) / ( (3*x-1)^2*(2*x-1)^2 ).
|
|
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 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|