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.

A360536 Analog of Rudin-Shapiro sum sequence A020990, based on counting patterns 00 instead of 11.

Original entry on oeis.org

1, 0, 1, 0, -1, -2, -1, -2, -1, 0, 1, 0, -1, -2, -1, -2, -3, -4, -5, -4, -5, -6, -5, -6, -5, -4, -3, -4, -5, -6, -5, -6, -5, -4, -3, -4, -3, -2, -3, -2, -1, 0, 1, 0, -1, -2, -1, -2, -3, -4, -5, -4, -5, -6, -5, -6, -5, -4, -3, -4, -5, -6, -5, -6, -7, -8, -9
Offset: 0

Views

Author

Jeffrey Shallit, Feb 10 2023

Keywords

Comments

a(n) = Sum_{i=0..n} (-1)^(i+e(i)), where e(i) counts the (possibly overlapping) occurrences of 00 in the base-2 representation of n. Note that e(0) = 0. This is the analog of A020990, which is the same sum, but with e(n) replaced by the function that counts the (possibly overlapping) occurrences of 11 in the base-2 representation of n.

Crossrefs