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-2 of 2 results.

A331319 a(n) = [x^n](x - 2*x^3)/(1 - 2*x*(x + 1))^2.

Original entry on oeis.org

0, 1, 4, 14, 48, 156, 496, 1544, 4736, 14352, 43072, 128224, 379136, 1114560, 3260160, 9494656, 27545600, 79642880, 229573632, 659951104, 1892478976, 5414755328, 15461117952, 44064835584, 125371383808, 356137570304, 1010187124736, 2861518086144, 8095486246912
Offset: 0

Views

Author

Peter Luschny, Jan 14 2020

Keywords

Crossrefs

Cf. A322942 (Jacobsthal triangle), A331320, A331321.

Programs

  • Maple
    gf := (x - 2*x^3)/(1 - 2*x*(x + 1))^2: ser := series(gf, x, 32):
    seq(coeff(ser, x, n), n=0..28);
  • Mathematica
    LinearRecurrence[ {4, 0, -8, -4}, {0, 1, 4, 14}, 28]
  • PARI
    concat(0, Vec(x*(1 - 2*x^2) / (1 - 2*x - 2*x^2)^2 + O(x^30))) \\ Colin Barker, Jan 14 2020

Formula

a(n) = Sum_{k=0..n} A322942(n, k)*k.
a(n) = 2*((n^2 - n - 2)*a(n-2) + (n^2 - 2*n - 4)*a(n-1))/(n^2 - 3*n).
a(n) = n! [x^n] (1/9)*exp(x)*(sqrt(3)*(3*x+2)*sinh(sqrt(3)*x)+3*x*cosh(sqrt(3)*x)).
From Colin Barker, Jan 14 2020: (Start)
a(n) = ((1-sqrt(3))^n*(-2*sqrt(3) + 3*n) + (1+sqrt(3))^n*(2*sqrt(3) + 3*n)) / 18.
a(n) = 4*a(n-1) - 8*a(n-3) - 4*a(n-4) for n>3.
(End)

A331321 a(n) = [x^n] ((x^2 - 1)*(x^2 + x - 1))/(x^2 + 2*x - 1)^2.

Original entry on oeis.org

1, 3, 8, 23, 64, 175, 472, 1259, 3328, 8731, 22760, 59007, 152256, 391239, 1001656, 2556115, 6503936, 16505651, 41788616, 105571303, 266181440, 669923039, 1683255448, 4222878651, 10579130112, 26467818315, 66138242984, 165077936207, 411584855488, 1025162759287
Offset: 0

Views

Author

Peter Luschny, Jan 14 2020

Keywords

Crossrefs

Cf. A193737 (Fibonacci (with a(0)=1) triangle), A331319, A331320.

Programs

  • Magma
    R:=PowerSeriesRing(Integers(), 33); Coefficients(R!( (1 - x)*(1 + x)*(1-x-x^2) / (1-2*x-x^2)^2 )); // Marius A. Burtea, Jan 15 2020
  • Maple
    gf := ((x^2 - 1)*(x^2 + x - 1))/(x^2 + 2*x - 1)^2:
    ser := series(gf, x, 32): seq(coeff(ser, x, n), n=0..29);
  • Mathematica
    LinearRecurrence[{4,-2,-4,-1},{1,3,8,23,64},40] (* Harvey P. Dale, Feb 01 2022 *)
  • PARI
    Vec((1 - x)*(1 + x)*(1 - x - x^2) / (1 - 2*x - x^2)^2 + O(x^30)) \\ Colin Barker, Jan 14 2020
    

Formula

a(n) = Sum_{k=0..n} A193737(n, k)*(1 + k).
Let h(k) = (1 + k)*exp((1 + k)*x)*(2*x + 10 - 5*k)/8 then
a(n) = n!*[x^n](h(sqrt(2)) + h(-sqrt(2)) + 1).
From Colin Barker, Jan 14 2020: (Start)
a(n) = 4*a(n-1) - 2*a(n-2) - 4*a(n-3) - a(n-4) for n>4.
a(n) = (-5*sqrt(2)*((1-sqrt(2))^n - (1+sqrt(2))^n) + 2*((1-sqrt(2))^n + (1+sqrt(2))^n)*n) / 8 for n>0.
(End)
Showing 1-2 of 2 results.