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!)
A099033 a(n) = Sum_{k=1..n} (-1)^A000120(3*k). 3
1, 2, 3, 4, 5, 6, 5, 6, 7, 8, 9, 10, 11, 10, 11, 12, 13, 14, 15, 16, 17, 18, 17, 18, 19, 20, 19, 18, 17, 18, 17, 18, 19, 20, 21, 22, 23, 24, 23, 24, 25, 26, 27, 28, 29, 28, 29, 30, 31, 32, 33, 34, 35, 34, 35, 34, 33, 32, 33, 34, 35, 34, 35, 36, 37, 38, 39, 40, 41, 42, 41, 42 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) is of order n^log4(3).
LINKS
P. J. Grabner, A note on the parity of the sum-of-digits function, Séminaire Lotharingien de Combinatoire, B30e (1993), 8 pp.
MATHEMATICA
A036555 := Total /@ IntegerDigits[3 Range[1, 130], 2]; Table[Sum[ (-1)^A036555[[k]], {k, 1, n}], {n, 1, 50}] (* G. C. Greubel, Jan 01 2017 *)
PROG
(PARI) a(n) = sum(k=1, n, (-1)^hammingweight(3*k)); \\ Michel Marcus, Dec 03 2016
CROSSREFS
Sequence in context: A308973 A309279 A245352 * A187786 A002330 A374211
KEYWORD
nonn
AUTHOR
Ralf Stephan, Sep 27 2004
EXTENSIONS
Typo in name corrected by Michel Marcus, Dec 03 2016
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 15 14:48 EDT 2024. Contains 374333 sequences. (Running on oeis4.)