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.

A353164 Expansion of 1/(1 - Sum_{p prime} p * x^p).

Original entry on oeis.org

1, 0, 2, 3, 4, 17, 17, 63, 100, 211, 495, 846, 2057, 3831, 8181, 17078, 33788, 72705, 144801, 303452, 623115, 1274365, 2652052, 5408046, 11207927, 23020231, 47378495, 97774736, 200819019, 414365805, 852285510, 1755453858, 3616014678, 7441523271, 15332278869
Offset: 0

Views

Author

Seiichi Manyama, Apr 28 2022

Keywords

Crossrefs

Programs

  • PARI
    my(N=40, x='x+O('x^N)); Vec(1/(1-sum(k=1, N, isprime(k)*k*x^k)))
    
  • PARI
    a(n) = if(n==0, 1, sum(k=1, n, isprime(k)*k*a(n-k)));

Formula

a(0) = 1; a(n) = Sum_{p<=n, p prime} p * a(n-p).