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.

A212405 Number of binary arrays of length 2*n+3 with no more than n ones in any length 2n subsequence (=50% duty cycle).

Original entry on oeis.org

13, 57, 236, 959, 3872, 15586, 62632, 251419, 1008536, 4043582, 16206152, 64933782, 260114976, 1041797124, 4171943056, 16704821779, 66880877896, 267747443494, 1071808583176, 4290243456514, 17172082337536, 68729504287324
Offset: 1

Views

Author

R. H. Hardin May 14 2012

Keywords

Comments

Row 4 of A212402

Examples

			Some solutions for n=3
..1....0....0....1....0....0....1....1....1....0....1....0....1....0....0....0
..0....0....0....1....0....0....0....0....0....0....1....0....0....0....1....1
..1....1....0....1....1....0....1....0....1....1....1....0....0....1....0....0
..1....0....0....0....0....0....0....1....0....0....0....0....0....0....1....1
..0....1....0....0....1....0....0....0....0....1....0....0....1....0....1....0
..0....0....1....0....0....1....1....0....1....1....0....0....0....0....0....1
..0....0....1....0....1....0....1....0....0....0....1....0....0....0....0....0
..1....0....1....1....0....1....0....1....0....0....0....1....1....0....1....0
..1....1....0....1....0....1....1....1....1....1....1....0....0....0....0....0
		

Programs

  • Mathematica
    Flatten[{13,Table[2^(2*n+2)-(3*n+1)/n*Binomial[2*n-2,n-1],{n,2,20}]}] (* Vaclav Kotesovec, Oct 28 2012 *)

Formula

Recurrence (for n>3): n^2*a(n) = 2*(4*n^2-3*n-5)*a(n-1) - 8*(n+1)*(2*n-5)*a(n-2). - Vaclav Kotesovec, Oct 19 2012
a(n) = 2^(2*n+2) - (3*n+1)/n * C(2*n-2,n-1), for n>1. - Vaclav Kotesovec, Oct 28 2012