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.

A014991 a(n) = (1 - (-9)^n)/10.

This page as a plain text file.
%I A014991 #40 Feb 07 2024 12:29:40
%S A014991 1,-8,73,-656,5905,-53144,478297,-4304672,38742049,-348678440,
%T A014991 3138105961,-28242953648,254186582833,-2287679245496,20589113209465,
%U A014991 -185302018885184,1667718169966657,-15009463529699912
%N A014991 a(n) = (1 - (-9)^n)/10.
%C A014991 q-integers for q = -9.
%H A014991 Vincenzo Librandi, <a href="/A014991/b014991.txt">Table of n, a(n) for n = 1..1000</a>
%H A014991 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (-8,9).
%F A014991 a(n) = a(n-1) + q^(n-1) = (q^n - 1) / (q - 1).
%F A014991 a(0)=1, a(1)=-8, a(n) = -8*a(n-1) + 9*a(n-2). - _Harvey P. Dale_, Aug 08 2011
%F A014991 G.f.: x/((1 - x)*(1 + 9*x)). - _Vincenzo Librandi_, Oct 22 2012
%F A014991 E.g.f.: (exp(x) - exp(-9*x))/10. - _G. C. Greubel_, May 26 2018
%p A014991 a:=n->sum ((-9)^j, j=0..n): seq(a(n), n=0..25); # _Zerinvary Lajos_, Dec 16 2008
%t A014991 ((-9)^Range[30]-1)/-10 (* or *) LinearRecurrence[{-8,9},{1,-8},30] (* _Harvey P. Dale_, Aug 08 2011 *)
%t A014991 CoefficientList[Series[1/((1 - x)*(1 + 9*x)), {x, 0, 30}], x]; (* _Vincenzo Librandi_, Oct 22 2012 *)
%o A014991 (Sage) [gaussian_binomial(n,1,-9) for n in range(1,19)] # _Zerinvary Lajos_, May 28 2009
%o A014991 (Magma) I:=[1,-8]; [n le 2 select I[n] else -8*Self(n-1)+9*Self(n-2): n in [1..30]]; // _Vincenzo Librandi_, Oct 22 2012
%o A014991 (PARI) for(n=1,30, print1((1-(-9)^n)/10, ", ")) \\ _G. C. Greubel_, May 26 2018
%Y A014991 Cf. A077925, A014983, A014985-A014987, A014989-A014994. - _Zerinvary Lajos_, Dec 16 2008
%K A014991 sign,easy
%O A014991 1,2
%A A014991 _Olivier Gérard_
%E A014991 Better name from _Ralf Stephan_, Jul 14 2013