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.

A352377 Expansion of e.g.f. exp(1 - cos(x) + sin(x)).

Original entry on oeis.org

1, 1, 2, 3, 5, 2, -17, -105, -302, -323, 2735, 21318, 74513, 5345, -1876118, -13036317, -35542499, 183591298, 2771934527, 14515620855, -4104116566, -739297426531, -6244977674825, -14587702161978, 240078040966369, 3207383844181633, 14652985540658834, -87474514259307453, -2013684557381588299
Offset: 0

Views

Author

Seiichi Manyama, Mar 14 2022

Keywords

Crossrefs

Programs

  • PARI
    my(N=40, x='x+O('x^N)); Vec(serlaplace(exp(1-cos(x)+sin(x))))
    
  • PARI
    a(n) = if(n==0, 1, sum(k=1, n, (-1)^((k-1)\2)*binomial(n-1, k-1)*a(n-k)));

Formula

a(0) = 1; a(n) = Sum_{k=1..n} (-1)^floor((k-1)/2) * binomial(n-1,k-1) * a(n-k).