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!)
A014989 a(n) = (1 - (-7)^n)/8. 13
1, -6, 43, -300, 2101, -14706, 102943, -720600, 5044201, -35309406, 247165843, -1730160900, 12111126301, -84777884106, 593445188743, -4154116321200, 29078814248401, -203551699738806, 1424861898171643, -9974033287201500 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
q-integers for q = -7.
LINKS
FORMULA
a(n) = a(n-1) + q^(n-1) = (q^n - 1) / (q - 1).
a(n) = -6*a(n-1) + 7*a(n-2). - Vincenzo Librandi, Oct 22 2012
From G. C. Greubel, May 26 2018: (Start)
G.f.: x/((1-x)*(1+7*x)).
E.g.f.: (exp(x) - exp(-7*x))/8. (End)
MAPLE
a:=n->sum ((-7)^j, j=0..n): seq(a(n), n=0..25); # Zerinvary Lajos, Dec 16 2008
MATHEMATICA
LinearRecurrence[{-6, 7}, {1, -6}, 30] (* Vincenzo Librandi, Oct 22 2012 *)
PROG
(Sage) [gaussian_binomial(n, 1, -7) for n in range(1, 21)] # Zerinvary Lajos, May 28 2009
(Magma) I:=[1, -6]; [n le 2 select I[n] else -6*Self(n-1)+7*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Oct 22 2012
(PARI) x='x+O('x^30); Vec(x/((1-x)*(1+7*x))) \\ G. C. Greubel, May 26 2018
CROSSREFS
Sequence in context: A156676 A256713 A099322 * A015552 A091129 A091128
KEYWORD
sign,easy
AUTHOR
EXTENSIONS
Better name from Ralf Stephan, Jul 14 2013
STATUS
approved

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 20 00:03 EDT 2024. Contains 371798 sequences. (Running on oeis4.)