cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A158879 a(n) = 4^n + n.

This page as a plain text file.
%I A158879 #26 Sep 08 2022 08:45:43
%S A158879 1,5,18,67,260,1029,4102,16391,65544,262153,1048586,4194315,16777228,
%T A158879 67108877,268435470,1073741839,4294967312,17179869201,68719476754,
%U A158879 274877906963,1099511627796,4398046511125,17592186044438,70368744177687
%N A158879 a(n) = 4^n + n.
%H A158879 Vincenzo Librandi, <a href="/A158879/b158879.txt">Table of n, a(n) for n = 0..300</a>
%H A158879 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (6,-9,4).
%F A158879 G.f.: (1 - x - 3*x^2)/((1-4*x)*(1-x)^2). - _R. J. Mathar_, Mar 29 2009
%F A158879 a(n) = 6*a(n-1) -9*a(n-2) +4*a(n-3). - _R. J. Mathar_, Mar 29 2009
%F A158879 E.g.f.: x*exp(x) + exp(4*x). - _G. C. Greubel_, Mar 04 2020
%e A158879 a(0)=4^0+0 = 1, a(1)=4^1+1 = 5, a(2)=4^2+2 = 18, a(3)=4^3+3 = 67, ...
%p A158879 seq( 4^n+n, n=0..30); # _G. C. Greubel_, Mar 04 2020
%t A158879 Table[4^n+n,{n,0,40}] (* _Vladimir Joseph Stephan Orlovsky_, May 19 2011 *)
%t A158879 CoefficientList[Series[(1-x-3x^2)/((1-4x)(1-x)^2), {x, 0, 30}], x] (* _Vincenzo Librandi_, Jun 16 2013 *)
%t A158879 LinearRecurrence[{6,-9,4},{1,5,18},30] (* _Harvey P. Dale_, Jun 02 2016 *)
%o A158879 (Magma) [4^n+n: n in [0..30]]; // _Vincenzo Librandi_, Jun 16 2013
%o A158879 (PARI) a(n)=4^n+n \\ _Charles R Greathouse IV_, Oct 07 2015
%o A158879 (Sage) [n+4^n for n in (0..30)] # _G. C. Greubel_, Mar 04 2020
%o A158879 (GAP) List([0..30], n-> n+4^n); # _G. C. Greubel_, Mar 04 2020
%Y A158879 Cf. A006127, A081552, A104743, A104745.
%K A158879 nonn,easy
%O A158879 0,2
%A A158879 _Philippe Deléham_, Mar 28 2009
%E A158879 Corrected typo in a(22) from _R. J. Mathar_, Mar 29 2009