|
|
A077898
|
|
Expansion of (1 - x)^(-1)/(1 + x - 2*x^2).
|
|
5
|
|
|
1, 0, 3, -2, 9, -12, 31, -54, 117, -224, 459, -906, 1825, -3636, 7287, -14558, 29133, -58248, 116515, -233010, 466041, -932060, 1864143, -3728262, 7456549, -14913072, 29826171, -59652314, 119304657, -238609284, 477218599, -954437166, 1908874365, -3817748696, 7635497427
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
The generalized (3,-2)-Padovan sequence p(3,-2;n). See the W. Lang link under A000931 with (A,B)=(3,-2). - Wolfdieter Lang, Jun 28 2010
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (1-x)^(-1)/(1+x-2*x^2).
a(n) = Sum_{k=0..n} Sum_{j=0..k} Sum_{i=0..j} binomial(j, i)*(-3)^i. - Paul Barry, Aug 26 2003
a(n) = 3*a(n-2) - 2*a(n-3) for n>2.
a(n) = (5+(-1)^n*2^(2+n)+3*n)/9. (End)
|
|
EXAMPLE
|
(3,-2)-Padovan combinatorics from the (3,2)-Morse code with weights -2 and 3 for 3-lines -- and 2-lines -, respectively (see the W. Lang link under A000931). n=5: two codes - -- and -- - with the weights (3^1)*(-2)^1 and (-2)^1*3^1, respectively, adding up to 2*(3)(-2) = -12 = a(5). - Wolfdieter Lang, Jun 28 2010
|
|
MAPLE
|
|
|
MATHEMATICA
|
CoefficientList[Series[(1 - x)^(-1)/(1 + x - 2*x^2), {x, 0, 40}], x] (* Wesley Ivan Hurt, Apr 21 2016 *)
|
|
PROG
|
(Magma) [(5+(-1)^n*2^(2+n)+3*n)/9 : n in [0..50]]; // Wesley Ivan Hurt, Apr 21 2016
|
|
CROSSREFS
|
|
|
KEYWORD
|
sign,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|