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.

A353015 a(n) = Sum_{k=0..floor(n/3)} (n-3*k)^n.

Original entry on oeis.org

1, 1, 4, 27, 257, 3157, 47385, 839928, 17168097, 397517868, 10283523826, 293950435376, 9200707298514, 312972062711525, 11496160809184370, 453507273286873875, 19122193920118268355, 858239308206920523297, 40851073484808464297979
Offset: 0

Views

Author

Seiichi Manyama, Apr 16 2022

Keywords

Crossrefs

Programs

  • Mathematica
    a[0] = 1; a[n_] := Sum[(n-3*k)^n, {k, 0, Floor[n/3]}]; Array[a, 20, 0] (* Amiram Eldar, Apr 16 2022 *)
  • PARI
    a(n) = sum(k=0, n\3, (n-3*k)^n);
    
  • PARI
    my(N=20, x='x+O('x^N)); Vec(sum(k=0, N, (k*x)^k/(1-(k*x)^3)))

Formula

G.f.: Sum_{k>=0} (k * x)^k / (1 - (k * x)^3).

A357147 a(n) = n! * Sum_{k=0..floor(n/3)} (n - 3*k)^(3*k)/(n - 3*k)!.

Original entry on oeis.org

1, 1, 1, 1, 25, 481, 3241, 18481, 1332241, 44198785, 623190961, 15416707681, 1602405014761, 68167258954081, 1598025440555545, 134130467333575441, 14793638741719612321, 730659540435131811841, 34674365632872552887521, 5776415685538277157146305
Offset: 0

Views

Author

Seiichi Manyama, Sep 15 2022

Keywords

Crossrefs

Programs

  • PARI
    a(n) = n!*sum(k=0, n\3, (n-3*k)^(3*k)/(n-3*k)!);
    
  • PARI
    my(N=20, x='x+O('x^N)); Vec(serlaplace(sum(k=0, N, x^k/(k!*(1-(k*x)^3)))))

Formula

E.g.f.: Sum_{k>=0} x^k / (k! * (1 - (k*x)^3)).
Showing 1-2 of 2 results.