Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #14 Sep 08 2022 08:45:09
%S 1,5,-7,29,-79,245,-727,2189,-6559,19685,-59047,177149,-531439,
%T 1594325,-4782967,14348909,-43046719,129140165,-387420487,1162261469,
%U -3486784399,10460353205,-31381059607,94143178829,-282429536479,847288609445,-2541865828327,7625597484989
%N 2-(-3)^n.
%C Binomial transform of A081629. Inverse binomial transform of A081631.
%H Vincenzo Librandi, <a href="/A081630/b081630.txt">Table of n, a(n) for n = 0..1000</a>
%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (-2,3).
%F G.f.: (1+7*x)/((1-x)*(1+3*x)).
%F E.g.f. 2*exp(x)-exp(-3*x)
%t LinearRecurrence[{-2, 3}, {1, 5}, 30] (* _Harvey P. Dale_, Mar 25 2013 *)
%t CoefficientList[Series[(1 + 7 x) / ((1 - x) (1 + 3 x)), {x, 0, 40}], x] (* _Vincenzo Librandi_, Aug 09 2013 *)
%o (Magma) [2-(-3)^n: n in [0..30]]; // _Vincenzo Librandi_ Aug 09 2013
%K easy,sign
%O 0,2
%A _Paul Barry_, Mar 26 2003