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.

A214458 Let S_3(n) denote difference between multiples of 3 in interval [0,n) with even and odd binary digit sums. Then a(n)=(-1)^A000120(n)*(S_3(n)-3*S_3(floor(n/4))).

Original entry on oeis.org

0, -1, -1, 1, 1, -1, -1, 0, 0, 0, 1, -1, 1, -2, -2, 2, 0, 0, 0, -1, 1, -1, 0, 0, 0, -1, -1, 1, 1, -1, -1, 0, 0, 0, 1, -1, 1, -2, -2, 2, 0, 0, 0, -1, 1, -1, 0, 0, 0, -1, -1, 1, 1, -1, -1, 0, 0, 0, 1, -1, 1, -2, -2, 2, 0, 0, 0, -1, 1, -1, 0, 0, 0, -1, -1, 1, 1
Offset: 0

Views

Author

Keywords

Comments

In 1969, D. J. Newman (see the reference) proved L. Moser's conjecture that difference between numbers of multiples of 3 with even and odd binary digit sums in interval [0,x] is always positive. This fact is known as Moser-Newman phenomenon.
Theorem: The sequence is periodic with period of length 24.

Crossrefs

Formula

Recursion for evaluation S_3(n): S_3(n)=3*S_3(floor(n/4))+(-1)^A000120(n)*a(n). As a corollary, we have |S_3(n)-3*S_3(n/4)|<=2.