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.

Showing 1-3 of 3 results.

A077939 Expansion of 1/(1 - 2*x - x^2 - x^3).

Original entry on oeis.org

1, 2, 5, 13, 33, 84, 214, 545, 1388, 3535, 9003, 22929, 58396, 148724, 378773, 964666, 2456829, 6257097, 15935689, 40585304, 103363394, 263247781, 670444260, 1707499695, 4348691431, 11075326817, 28206844760, 71837707768, 182957587113, 465959726754
Offset: 0

Views

Author

N. J. A. Sloane, Nov 17 2002

Keywords

Comments

These coefficients are called the Tripell numbers by Bravo et al. - Rigoberto Florez, Jan 23 2020

Programs

  • GAP
    a:=[1,2,5];; for n in [4..30] do a[n]:=2*a[n-1]+a[n-2]+a[n-3]; od; a; # G. C. Greubel, Feb 05 2020
  • Magma
    I:=[1,2,5]; [n le 3 select I[n] else 2*Self(n-1) +Self(n-2) +Self(n-3): n in [1..30]]; // G. C. Greubel, Feb 05 2020
    
  • Maple
    m:=30; S:=series(1/(1-2*x-x^2-x^3), x, m+1): seq(coeff(S, x, j), j=0..m); # G. C. Greubel, Feb 05 2020
  • Mathematica
    CoefficientList[Series[1/(1-2*x-x^2-x^3),{x,0,40}],x] (* or *) LinearRecurrence[{2,1,1},{1,2,5},40] (* Vladimir Joseph Stephan Orlovsky, Jan 30 2012 *)
    a[n_]:=a[n]=2a[n-1]+a[n-2]+a[n-3]; a[0]=0; a[1]=1; a[2]=2; Table[a[n], {n,30}] (* Rigoberto Florez, Jan 23 2020 *)
  • Maxima
    a(n):=sum(sum((sum(binomial(j,n-m-3*k+2*j+1)*binomial(k,j),j,0,k))* binomial(m+k-1,m-1),k,0,n-m+1),m,1,n+1); /* Vladimir Kruchinin, Oct 11 2011 */
    
  • PARI
    Vec(1/(1-2*x-x^2-x^3)+O(x^99)) \\ Charles R Greathouse IV, Sep 23 2012
    
  • Sage
    def A077939_list(prec):
        P. = PowerSeriesRing(ZZ, prec)
        return (1/(1-2*x-x^2-x^3)).list()
    A077939_list(30) # G. C. Greubel, Feb 05 2020
    

Formula

a(n) = abs(A077986(n)) = A077849(n) - A077849(n-1) = |A077922(n)| + |A077922(n-1)| = Sum_{k=0..n} A077997(k). - Ralf Stephan, Feb 02 2004
a(n) = Sum_{m=1..n+1} Sum_{k=0..n-m+1} (Sum_{j=0..k} binomial(j,n-m-3*k+2*j+1) *binomial(k,j))*binomial(m+k-1,m-1). - Vladimir Kruchinin, Oct 11 2011
G.f. for sequence with 1 prepended: 1/(1 - Sum_{k>=0} x*(x+x^2+x^3)^k). - Joerg Arndt, Sep 30 2012
G.f.: Q(0)/2, where Q(k) = 1 + 1/(1- x*(4*k+2 + x+x^2)/(x*(4*k+4 + x+x^2) + 1/Q(k+1))); (continued fraction). - Sergei N. Gladkovskii, Oct 04 2013
a(n) = 2*a(n-1) + a(n-2) + a(n-3), where a(0) = 0, a(1)=1, a(2)=2. - Rigoberto Florez, Jan 23 2020

Extensions

Deleted certain dangerous or potentially dangerous links. - N. J. A. Sloane, Jan 30 2021

A077922 Expansion of (1-x)^(-1)/(1+2*x-x^2+x^3).

Original entry on oeis.org

1, -1, 4, -9, 24, -60, 154, -391, 997, -2538, 6465, -16464, 41932, -106792, 271981, -692685, 1764144, -4492953, 11442736, -29142568, 74220826, -189026955, 481417305, -1226082390, 3122609041, -7952717776, 20254126984, -51583580784, 131374006329, -334585720425, 852129027964
Offset: 0

Views

Author

N. J. A. Sloane, Nov 17 2002

Keywords

Crossrefs

Cf. A010907.

Programs

  • Maple
    A077986 := proc(n) if n < 0 then 0; else coeftayl( 1/(1+2*x-x^2+x^3),x=0,n) ; end if; end proc:
    A077922 := proc(n) (1+2*A077986(n)+A077986(n-2))/3 ; end proc:
    seq(A077922(n),n=0..20) ; # R. J. Mathar, Mar 24 2011
  • Mathematica
    CoefficientList[Series[1/((1 + 2*x - x^2 + x^3)(1 - x)), {x, 0, 30}], x]
    LinearRecurrence[{-1,3,-2,1},{1,-1,4,-9},40] (* Harvey P. Dale, Feb 10 2024 *)
  • PARI
    Vec((1-x)^(-1)/(1+2*x-x^2+x^3)+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012

Formula

a(n) = (1 + 2*A077986(n) + A077986(n-2))/3. - R. J. Mathar

A078058 Expansion of (1-x)/(1+2*x-x^2+x^3).

Original entry on oeis.org

1, -3, 7, -18, 46, -117, 298, -759, 1933, -4923, 12538, -31932, 81325, -207120, 527497, -1343439, 3421495, -8713926, 22192786, -56520993, 143948698, -366611175, 933692041, -2377943955, 6056191126, -15424018248, 39282171577, -100044552528, 254795294881, -648917313867
Offset: 0

Views

Author

N. J. A. Sloane, Nov 17 2002

Keywords

Comments

a(n) is the upper left entry of the n-th power of the 3 X 3 matrix M = [-3, -3, 1; 1, 1, 0; 1, 0, 0]; a(n) = M^n [1, 1]. - Philippe Deléham, Apr 19 2023

Programs

  • Mathematica
    CoefficientList[Series[(1-x)/(1+2x-x^2+x^3),{x,0,30}],x] (* or *) LinearRecurrence[{-2,1,-1},{1,-3,7},31] (* Harvey P. Dale, Oct 22 2011 *)
  • PARI
    Vec((1-x)/(1+2*x-x^2+x^3)+O(x^99)) \\ Charles R Greathouse IV, Sep 27 2012

Formula

a(n) = -2*a(n-1) + a(n-2) - a(n-3) for n > 2; a(0) = 1, a(1) = -3, a(2) = 7. - Harvey P. Dale, Oct 22 2011
a(n) = Sum_{k = 0..n} A188316(n, k)*(-3)^k. - Philippe Deléham, Apr 19 2023
a(n) = A077986(n)-A077986(n-1) . - R. J. Mathar, Mar 19 2025
Showing 1-3 of 3 results.