login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A346483 Sum of A005171 (characteristic function of nonprimes) and its Dirichlet inverse. 2
2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 4, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 4, 1, 0, 0, 4, 0, 0, 0, 2, 0, 4, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 2, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The first negative term is a(192) = -1.
Positions of nonzero terms are given by A033987, except for positions n = 256, 512, 6561, 16384, 19683, 32768, 390625, 1048576, ..., at which a(n) = 0 also.
LINKS
FORMULA
a(n) = A005171(n) + A346482(n).
For n > 1, a(n) = -Sum_{d|n, 1<d<n} A005171(d) * A346482(n/d).
MATHEMATICA
nn = 87; b = Table[If[PrimeQ[n], 1, 0], {n, nn}]; a = 1 - b; A = Table[Table[If[Mod[n, k] == 0, a[[n/k]], 0], {k, 1, nn}], {n, 1, nn}]; B = Inverse[A]; S = A[[Range[nn]]] + B[[Range[nn]]]; S[[All, 1]]
PROG
(PARI)
up_to = 65537;
DirInverseCorrect(v) = { my(u=vector(#v)); u[1] = (1/v[1]); for(n=2, #v, u[n] = (-u[1]*sumdiv(n, d, if(d<n, v[n/d]*u[d], 0)))); (u) }; \\ Compute the Dirichlet inverse of the sequence given in input vector v.
A005171(n) = (1-isprime(n));
v346482 = DirInverseCorrect(vector(up_to, n, A005171(n)));
A346482(n) = v346482[n];
A346483(n) = (A005171(n)+A346482(n));
CROSSREFS
Sequence in context: A295663 A005926 A353419 * A349378 A331918 A089803
KEYWORD
sign
AUTHOR
Mats Granvik and Antti Karttunen, Aug 17 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 27 05:29 EDT 2024. Contains 375462 sequences. (Running on oeis4.)