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!)
A014990 a(n) = (1 - (-8)^n)/9. 10

%I #40 Feb 10 2024 11:34:54

%S 1,-7,57,-455,3641,-29127,233017,-1864135,14913081,-119304647,

%T 954437177,-7635497415,61083979321,-488671834567,3909374676537,

%U -31274997412295,250199979298361,-2001599834386887,16012798675095097

%N a(n) = (1 - (-8)^n)/9.

%C q-integers for q=-8.

%H Vincenzo Librandi, <a href="/A014990/b014990.txt">Table of n, a(n) for n = 1..1000</a>

%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (-7,8).

%F a(n) = a(n-1) + q^{(n-1)} = {(q^n - 1) / (q - 1)}

%F From _Philippe Deléham_, Feb 13 2007: (Start)

%F a(1)=1, a(2)=-7, a(n) = -7*a(n-1) + 8*a(n-2) for n > 2.

%F a(n) = (-1)^(n+1)*A015565(n).

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

%F E.g.f.: (exp(x) - exp(-8*x))/9. - _G. C. Greubel_, May 26 2018

%p a:=n->sum ((-8)^j, j=0..n): seq(a(n), n=0..25); # _Zerinvary Lajos_, Dec 16 2008

%t QBinomial[Range[20],1,-8] (* or *) LinearRecurrence[{-7,8},{1,-7},20] (* _Harvey P. Dale_, Dec 19 2011 *)

%o (Sage) [gaussian_binomial(n,1,-8) for n in range(1,20)] # _Zerinvary Lajos_, May 28 2009

%o (Magma) I:=[1, -7]; [n le 2 select I[n] else -7*Self(n-1) +8*Self(n-2): n in [1..30]]; // _Vincenzo Librandi_, Oct 22 2012

%o (PARI) a(n)=(1-(-8)^n)/9 \\ _Charles R Greathouse IV_, Oct 07 2015

%Y Cf. A015565, A077925, A014983, A014985, A014986, A014987, A014989, A014991, A014992, A014993, A014994.

%K sign,easy

%O 1,2

%A _Olivier Gérard_

%E Better name from _Ralf Stephan_, Jul 14 2013

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 19 08:39 EDT 2024. Contains 371782 sequences. (Running on oeis4.)