The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A247920 Expansion of 1 / (1 + x + x^2 - x^5) in powers of x. 1
 1, -1, 0, 1, -1, 1, -1, 0, 2, -3, 2, 0, -2, 4, -5, 3, 2, -7, 9, -7, 1, 8, -16, 17, -8, -8, 24, -32, 25, -1, -32, 57, -57, 25, 31, -88, 114, -83, -6, 120, -202, 196, -77, -125, 322, -399, 273, 49, -447, 720, -672, 225, 496, -1168, 1392, -896, -271, 1663, -2560 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,9 LINKS Vincenzo Librandi, Table of n, a(n) for n = 0..1000 Eunmi Choi, Yuna Oh, Diagonal sums in negative trinomial table, Korean J. Math (2019) Vol. 27, No. 3, 723-734. Index entries for linear recurrences with constant coefficients, signature (-1,-1,0,0,1). FORMULA G.f.: 1 / ((1 + x^2) * (1 + x - x^3)). a(n) = A017818(-5-n) for all n in Z. 0 = a(n) - a(n+3) - a(n+4) - a(n+5) for all n in Z. 0 = a(n) - a(n+2) - a(n+3) + (-1)^floor(n/2) * mod(n,2) for all n in Z. EXAMPLE G.f. = 1 - x + x^3 - x^4 + x^5 - x^6 + 2*x^8 - 3*x^9 + 2*x^10 - 2*x^12 + ... MAPLE seq(coeff(series(1/(1+x+x^2-x^5), x, n+1), x, n), n = 0..60); # G. C. Greubel, Dec 29 2019 MATHEMATICA CoefficientList[Series[1/(1+x+x^2-x^5), {x, 0, 60}], x] (* Vincenzo Librandi, Sep 27 2014 *) PROG (PARI) {a(n) = if( n<0, n=-5-n; polcoeff( 1 / (1 - x^3 - x^4 - x^5) + x * O(x^n), n), polcoeff( 1 / (1 + x + x^2 - x^5) + x * O(x^n), n))}; (MAGMA) m:=50; R:=PowerSeriesRing(Integers(), m); Coefficients(R!(1 / ((1+x^2)*(1+x-x^3)))); // G. C. Greubel, Aug 04 2018 (Sage) def A247920_list(prec):     P. = PowerSeriesRing(ZZ, prec)     return P( 1/(1+x+x^2-x^5) ).list() A247920_list(60) # G. C. Greubel, Dec 29 2019 (GAP) a:=[1, -1, 0, 1, -1];; for n in [6..60] do a[n]:=-(a[n-1]+a[n-2]-a[n-5]); od; a; # G. C. Greubel, Dec 29 2019 CROSSREFS Cf. A017818. Sequence in context: A334358 A226556 A007325 * A269735 A187038 A332260 Adjacent sequences:  A247917 A247918 A247919 * A247921 A247922 A247923 KEYWORD sign,easy AUTHOR Michael Somos, Sep 26 2014 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified January 26 12:38 EST 2022. Contains 350598 sequences. (Running on oeis4.)