A029881 Möbius transform of Thue-Morse sequence A001285 (when shifted once right).
1, 1, 1, -1, 1, -2, 0, 1, 0, -2, 0, 2, 0, 0, -1, -1, 1, 0, 0, 2, -1, 0, 1, -2, -1, 0, 0, 0, 1, 2, 0, 1, 0, -2, -1, 0, 0, 0, 0, -2, 0, 2, 1, 0, 0, -2, 0, 2, 0, 2, -1, 0, 1, 0, -1, 0, 0, -2, 0, -2, 0, 0, 1, -1, 0, 0, 0, 2, -2, 2, 1, 0, 0, 0, 1, 0, 1, 0, 0, 2, -1, 0, 1, -2, -1, -2, -2, 0, 1, 0, 0, 2, -1, 0, 0, -2, 0, 0, 0, -2, 1
Offset: 1
Keywords
Links
- Antti Karttunen, Table of n, a(n) for n = 1..20000
- N. J. A. Sloane, Transforms
- Index entries for sequences related to binary expansion of n
Programs
-
PARI
A029881(n) = sumdiv(n,d,moebius(n/d)*(1+(hammingweight(d-1)%2))); \\ Antti Karttunen, Dec 15 2024
Formula
Extensions
Starting offset corrected (from 0 to 1), more terms added and definition clarified by Antti Karttunen, Dec 15 2024