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.

A065506 Number of (binary) bit strings of length n having an even length block of 0's followed by an odd length block of 1's.

Original entry on oeis.org

1, 2, 7, 15, 39, 84, 196, 419, 928, 1965, 4227, 8871, 18742, 39032, 81481, 168606, 349011, 718371, 1477783, 3028412, 6200296, 12660171, 25823604, 52569417, 106908199, 217086287, 440402878, 892384788, 1806730377, 3654428154
Offset: 3

Views

Author

Len Smiley, Nov 26 2001

Keywords

Crossrefs

Cf. A065455.

Formula

G.f.: x^3/((1-2*x)*(1-3*x^2-x^3)).
a(n) = 2^n - A065455(n).