login
A181587
If n is even, a(n) = 0, if n is odd, a(n) = A002321(n), where A002321 is Mertens's function.
1
1, 0, -1, 0, -2, 0, -2, 0, -2, 0, -2, 0, -3, 0, -1, 0, -2, 0, -3, 0, -2, 0, -2, 0, -2, 0, -1, 0, -2, 0, -4, 0, -3, 0, -1, 0, -2, 0, 0, 0, -1, 0, -3, 0, -3, 0, -3, 0, -3, 0, -2, 0, -3, 0, -2, 0, -1, 0, -1, 0, -2, 0, -1, 0, 0, 0, -2, 0, -1, 0, -3, 0, -4, 0, -3, 0, -2, 0, -4, 0, -4, 0, -4, 0, -3, 0, -1, 0, -2, 0, -1, 0, 0, 0, 2
OFFSET
1,5
LINKS
FORMULA
a(n) = A000035(n)*A002321(n).
PROG
(PARI) A181587(n) = if(n%2, sum(k=1, n, moebius(k)), 0); \\ Antti Karttunen, Sep 30 2018
CROSSREFS
Sequence in context: A036664 A045843 A363885 * A096158 A264782 A053471
KEYWORD
sign,look
AUTHOR
Mats Granvik, Oct 31 2010
EXTENSIONS
Definition corrected and more terms by Antti Karttunen, Sep 30 2018
Incorrect g.f. removed by Georg Fischer, Nov 09 2022
STATUS
approved