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.

A378218 Dirichlet inverse of A345182.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Nov 22 2024

Keywords

Crossrefs

Programs

  • PARI
    memoA345182 = Map();
    A345182(n) = if(n<=2, n%2, my(v); if(mapisdefined(memoA345182,n,&v), v, v = sumdiv(n,d,if(dA345182(d),0)); mapput(memoA345182,n,v); (v)));
    memoA378218 = Map();
    A378218(n) = if(1==n,1,my(v); if(mapisdefined(memoA378218,n,&v), v, v = -sumdiv(n,d,if(dA345182(n/d)*A378218(d),0)); mapput(memoA378218,n,v); (v)));

Formula

a(1) = 1, and for n > 1, a(n) = -Sum_{d|n, dA345182(n/d) * a(d).
Apparently, abs(a(n+1)) = A359508(n).