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!)
A101565 a(n) = Sum_{k=0..n} (-1)^A010060(n-k)*[(n+1) mod (k+1) = 0], where [] denotes the Iverson bracket. 0
1, 0, 0, 1, 0, 2, 2, 0, 1, 2, 2, 2, 2, 0, 2, 1, 0, 4, 2, 2, 2, 0, 0, 2, 3, 0, 2, 0, 0, 4, 2, 0, 0, 2, 2, 5, 2, 0, 0, 2, 2, 0, 0, 2, 2, 2, 2, 2, 1, 2, 2, 2, 0, 6, 0, -2, 0, 2, 2, 4, 2, 0, 0, 1, 0, 2, 2, 2, 4, 2, 0, 6, 2, 0, 0, 2, 0, 4, 2, 2, 5, 0, 0, 2, 2, 2, 2, 2, 0, 4, 2, 0, 2, 0, 0, 2, 2, -2, 2, 5, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
LINKS
PROG
(PARI) tm(n) = hammingweight(n)%2;
a(n) = sum(k=0, n, if (((n+1) % (k+1))==0, (-1)^tm(n-k))); \\ Michel Marcus, Oct 01 2018
CROSSREFS
Cf. A010060 (Thue-Morse sequence).
Sequence in context: A029368 A108483 A363623 * A292944 A327188 A330270
KEYWORD
easy,sign
AUTHOR
Paul Barry, Dec 07 2004
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 July 31 11:18 EDT 2024. Contains 374781 sequences. (Running on oeis4.)