login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A101945 a(n) = 6*2^n - n - 5. 6

%I #21 Feb 06 2022 10:06:37

%S 1,6,17,40,87,182,373,756,1523,3058,6129,12272,24559,49134,98285,

%T 196588,393195,786410,1572841,3145704,6291431,12582886,25165797,

%U 50331620,100663267,201326562,402653153,805306336,1610612703,3221225438

%N a(n) = 6*2^n - n - 5.

%H G. C. Greubel, <a href="/A101945/b101945.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 a(n) = 4*a(n-1) - 5*a(n-2) + 2*a(n-3) for n >= 3.

%F Row sums of triangle A135855. - _Gary W. Adamson_, Dec 01 2007

%F From _G. C. Greubel_, Feb 06 2022: (Start)

%F G.f.: (1 + 2*x - 2*x^2)/((1-x)^2*(1-2*x)).

%F E.g.f.: 6*exp(2*x) - (5+x)*exp(x). (End)

%t a[0]=1; a[1]=6; a[2]=17; a[n_]:= a[n]= 4a[n-1] -5a[n-2] +2a[n-3];

%t Table[a[n], {n, 0, 30}] (* _Robert G. Wilson v_, Jan 12 2005 *)

%o (PARI) a(n)=if(n==1,1,if(n==2,6,if(n==3,17,4*a(n-1)-5*a(n-2)+2*a(n-3)))) \\ (Klasen)

%o (Magma) [6*2^n -n-5: n in [0..40]]; // _G. C. Greubel_, Feb 06 2022

%o (Sage) [3*2^(n+1) -(n+5) for n in (0..40)] # _G. C. Greubel_, Feb 06 2022

%Y Cf. A033484, A101946, A135855.

%K nonn,easy

%O 0,2

%A _Gary W. Adamson_, Dec 22 2004

%E More terms from Lambert Klasen (Lambert.Klasen(AT)gmx.net), Jan 06 2005

%E New definition from _Ralf Stephan_, May 17 2007

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 11:21 EDT 2024. Contains 371936 sequences. (Running on oeis4.)