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.

A358679 Dirichlet inverse of the characteristic function of A061345, odd prime powers.

Original entry on oeis.org

1, 0, -1, 0, -1, 0, -1, 0, 0, 0, -1, 0, -1, 0, 2, 0, -1, 0, -1, 0, 2, 0, -1, 0, 0, 0, 0, 0, -1, 0, -1, 0, 2, 0, 2, 0, -1, 0, 2, 0, -1, 0, -1, 0, -1, 0, -1, 0, 0, 0, 2, 0, -1, 0, 2, 0, 2, 0, -1, 0, -1, 0, -1, 0, 2, 0, -1, 0, 2, 0, -1, 0, -1, 0, -1, 0, 2, 0, -1, 0, 0, 0, -1, 0, 2, 0, 2, 0, -1, 0, 2, 0, 2, 0, 2, 0, -1, 0, -1, 0, -1, 0, -1, 0, -6
Offset: 1

Views

Author

Antti Karttunen, Dec 23 2022

Keywords

Crossrefs

Programs

  • PARI
    A174275(n) = ((n%2)&&isprimepower(n));
    memoA358679 = Map();
    A358679(n) = if(1==n,1,my(v); if(mapisdefined(memoA358679,n,&v), v, v = -sumdiv(n,d,if(dA174275(n/d)*A358679(d),0)); mapput(memoA358679,n,v); (v)));

Formula

a(1) = 1, and for n > 1, a(n) = -Sum_{d|n, dA174275(n/d) * a(d).