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:23
%S 3,10,29,72,163,350,729,1492,3023,6090,12229,24512,49083,98230,196529,
%T 393132,786343,1572770,3145629,6291352,12582803,25165710,50331529,
%U 100663172,201326463,402653050,805306229,1610612592,3221225323
%N a(n) = 6*2^(n+1) - 5*(n+1) - 4.
%H Vincenzo Librandi, <a href="/A114958/b114958.txt">Table of n, a(n) for n = 0..1000</a>
%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (4,-5,2).
%F From _Colin Barker_, Apr 30 2019: (Start)
%F G.f.: (3 - 2*x + 4*x^2) / ((1 - x)^2*(1 - 2*x)).
%F a(n) = 4*a(n-1) - 5*a(n-2) + 2*a(n-3) for n>2.
%F (End)
%o (Magma) [6*2^(n+1) - 5*(n+1) - 4: n in [0..30] ]; // _Vincenzo Librandi_, May 18 2011
%o (PARI) Vec((3 - 2*x + 4*x^2) / ((1 - x)^2*(1 - 2*x)) + O(x^40)) \\ _Colin Barker_, Apr 30 2019
%Y Cf. A098011, A042950, A110164, A101229, A058764, A087009, A111286, A007283.
%K easy,nonn
%O 0,1
%A _Creighton Dement_, Feb 21 2006