# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/
Search: id:a005126
Showing 1-1 of 1
%I A005126 M1061 #60 Sep 08 2022 08:44:33
%S A005126 2,4,7,12,21,38,71,136,265,522,1035,2060,4109,8206,16399,32784,65553,
%T A005126 131090,262163,524308,1048597,2097174,4194327,8388632,16777241,
%U A005126 33554458,67108891,134217756,268435485,536870942,1073741855,2147483680,4294967329,8589934626
%N A005126 a(n) = 2^n + n + 1.
%C A005126 Binomial transform of (1, 1, 1, 0, 1, 0, 1, 0, 1, ...). - _Gary W. Adamson_, Jul 20 2007
%C A005126 Binomial transform of a(n) starts: 2, 6, 17, 47, 129, 355, 985, 2763, 7841, 22499, 65193, 190459, ... - _Wesley Ivan Hurt_, Oct 28 2014
%D A005126 N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
%H A005126 Vincenzo Librandi, Table of n, a(n) for n = 0..2000
%H A005126 Simon Plouffe, Approximations de séries génératrices et quelques conjectures, Dissertation, Université du Québec à Montréal, 1992; arXiv:0911.4975 [math.NT], 2009.
%H A005126 Simon Plouffe, 1031 Generating Functions, Appendix to Thesis, Montreal, 1992; arXiv:0911.4975 [math.NT], 2009.
%H A005126 INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 921
%H A005126 Index entries for linear recurrences with constant coefficients, signature (4,-5,2).
%F A005126 G.f.: (2-4*x+x^2)/((1-2*x)*(1-x)^2). - _Simon Plouffe_
%F A005126 E.g.f.: exp(x)*(exp(x)+1+x) = U(0) where U(k) = 1 + x/(2^k - 2^k/(x + 1 - x^2*2^(k+1)/(x*2^(k+1) + (k+1)/U(k+1) )));(continued fraction, 3rd kind, 4-step ). - _Sergei N. Gladkovskii_, Dec 01 2012
%p A005126 A005126:=-(2-4*z+z**2)/(2*z-1)/(z-1)**2; # Conjectured by _Simon Plouffe_ in his 1992 dissertation
%p A005126 g:=z/(1-2*z): gser:=series(g, z=0, 43): seq(coeff(gser, z, n)+n, n=1..34); # _Zerinvary Lajos_, Jan 11 2009
%t A005126 s=2;lst={s};Do[s+=(s-n);AppendTo[lst, Abs[s]], {n, 0, 5!}];lst (* _Vladimir Joseph Stephan Orlovsky_, Oct 10 2008 *)
%t A005126 Table[2^n + n + 1, {n, 0, 30}] (* _Wesley Ivan Hurt_, Oct 28 2014 *)
%t A005126 LinearRecurrence[{4,-5,2},{2,4,7},40] (* _Harvey P. Dale_, Aug 18 2016 *)
%o A005126 (Magma) [2^n+n+1: n in [0..40]]; // _Vincenzo Librandi_, Oct 22 2011
%o A005126 (PARI) a(n)=2^n+n+1 \\ _Charles R Greathouse IV_, Sep 24 2015
%Y A005126 Essentially the same as row sums of A128715.
%Y A005126 Cf. A194455.
%K A005126 nonn,easy
%O A005126 0,1
%A A005126 _Colin Mallows_
%E A005126 More terms from _N. J. A. Sloane_, Sep 28 2007
# Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE