cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A099033 a(n) = Sum_{k=1..n} (-1)^A000120(3*k).

Original entry on oeis.org

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
Offset: 1

Views

Author

Ralf Stephan, Sep 27 2004

Keywords

Comments

a(n) is of order n^log4(3).

Crossrefs

Programs

  • 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 *)
  • PARI
    a(n) = sum(k=1, n, (-1)^hammingweight(3*k)); \\ Michel Marcus, Dec 03 2016

Extensions

Typo in name corrected by Michel Marcus, Dec 03 2016