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.

A308567 Consider the second least-significant bits of the first n prime numbers: a(n) equals the number of zeros minus the number of ones.

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, Jun 08 2019

Keywords

Crossrefs

Formula

a(n) = Sum_{k = 1..n} (-1)^A100672(n).
a(n) = 0 iff n belongs to A051024.
a(n) = -1-A038698(n).