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.

A369900 a(n) is twice the sum of the first n binary digits of e minus n.

Original entry on oeis.org

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

Views

Author

Alois P. Heinz, Feb 05 2024

Keywords

Comments

Partial differences give A004593, when -1 is replaced by 0.

Crossrefs

Formula

a(0) = 0, a(n) = a(n-1) + 2*A004593(n+1) - 1 for n>=1.