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.

A359937 a(n) = Sum_{d|n, d-1 is square} d.

Original entry on oeis.org

1, 3, 1, 3, 6, 3, 1, 3, 1, 18, 1, 3, 1, 3, 6, 3, 18, 3, 1, 18, 1, 3, 1, 3, 6, 29, 1, 3, 1, 18, 1, 3, 1, 20, 6, 3, 38, 3, 1, 18, 1, 3, 1, 3, 6, 3, 1, 3, 1, 68, 18, 29, 1, 3, 6, 3, 1, 3, 1, 18, 1, 3, 1, 3, 71, 3, 1, 20, 1, 18, 1, 3, 1, 40, 6, 3, 1, 29, 1, 18, 1, 85, 1, 3
Offset: 1

Views

Author

Seiichi Manyama, Jan 19 2023

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Sum[If[IntegerQ[Sqrt[d-1]], d, 0], {d, Divisors[n]}], {n, 1, 100}] (* Vaclav Kotesovec, Jan 21 2023 *)
  • PARI
    a(n) = sumdiv(n, d, issquare(d-1)*d);
    
  • PARI
    my(N=100, x='x+O('x^N)); Vec(sum(k=0, sqrtint(N), (k^2+1)*x^(k^2+1)/(1-x^(k^2+1))))

Formula

G.f.: Sum_{k>=0} (k^2+1) * x^(k^2+1)/(1 - x^(k^2+1)).
Sum_{k=1..n} a(k) ~ zeta(3/2)*n^(3/2)/3. - Vaclav Kotesovec, Jan 21 2023

A359966 Expansion of Product_{k>=2} (1 - x^(k^2-1)) in powers of x.

Original entry on oeis.org

1, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 1, -1, 0, -1, 1, 0, 0, 0, 0, 1, 0, 0, -2, 0, 0, 1, 1, 0, 0, -1, 1, 0, 0, -1, -1, -1, 0, 2, 1, 0, -1, 0, 0, 1, 0, -1, 0, 0, 1, -1, 0, 0, 0, 0, -1, 0, 0, 1, 0, 1, 0, -1, -1, 0, 1, 1, 0, -2, -1, 1, 3
Offset: 0

Views

Author

Seiichi Manyama, Jan 20 2023

Keywords

Crossrefs

Programs

  • PARI
    my(N=100, x='x+O('x^N)); Vec(prod(k=2, sqrtint(N+1), 1-x^(k^2-1)))
    
  • PARI
    a_vector(n) = my(v=vector(n+1)); v[1]=1; for(i=1, n, v[i+1]=-sum(j=1, i, sumdiv(j, d, issquare(d+1)*d)*v[i-j+1])/i); v;

Formula

a(0) = 1; a(n) = -(1/n) * Sum_{k=1..n} A359967(k) * a(n-k).
Showing 1-2 of 2 results.