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.

A352647 Expansion of e.g.f. 1/(1 - 3 * x * cos(x)).

Original entry on oeis.org

1, 3, 18, 153, 1728, 24315, 410400, 8079729, 181786752, 4601232243, 129402385920, 4003157532297, 135098815002624, 4939266681129963, 194472450526169088, 8203835046344538465, 369151362125290045440, 17649035213360472293091, 893431062200523039178752
Offset: 0

Views

Author

Seiichi Manyama, Mar 25 2022

Keywords

Crossrefs

Programs

  • Mathematica
    With[{m = 18}, Range[0, m]! * CoefficientList[Series[1/(1 - 3*x*Cos[x]), {x, 0, m}], x]] (* Amiram Eldar, Mar 26 2022 *)
  • PARI
    my(N=20, x='x+O('x^N)); Vec(serlaplace(1/(1-3*x*cos(x))))
    
  • PARI
    a(n) = if(n==0, 1, 3*sum(k=0, (n-1)\2, (-1)^k*(2*k+1)*binomial(n, 2*k+1)*a(n-2*k-1)));

Formula

a(0) = 1; a(n) = 3 * Sum_{k=0..floor((n-1)/2)} (-1)^k * (2*k+1) * binomial(n,2*k+1) * a(n-2*k-1).
a(n) = Sum_{k=0..n} 3^k * k! * i^(n-k) * A185951(n,k), where i is the imaginary unit. - Seiichi Manyama, Jun 25 2025