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.

A201081 Number of -1..1 arrays of n elements with first and second differences also in -1..1.

Original entry on oeis.org

3, 7, 13, 25, 47, 89, 169, 321, 609, 1155, 2191, 4157, 7887, 14963, 28387, 53855, 102173, 193841, 367751, 697689, 1323641, 2511185, 4764169, 9038483, 17147623, 32532117, 61719263, 117092515, 222145507, 421449879, 799566029, 1516920201
Offset: 1

Views

Author

R. H. Hardin, Nov 26 2011

Keywords

Comments

Column 1 of A201088.

Examples

			Some solutions for n=10:
..1....1....1...-1....1....0....0...-1....1....1....1....1....0....0....0...-1
..1....0....0...-1....0....0...-1...-1....0....0....1....0...-1....1....1...-1
..0...-1....0....0....0...-1...-1....0...-1...-1....1...-1...-1....1....1....0
.-1...-1....0....0....1...-1....0....1...-1...-1....0...-1....0....1....1....0
.-1...-1....0....1....1....0....0....1....0...-1....0....0....1....0....1....0
.-1...-1...-1....1....0....0...-1....0....0...-1...-1....0....1...-1....1...-1
..0...-1...-1....1....0....0...-1...-1....0...-1...-1....0....0...-1....1...-1
..0....0...-1....0....0....1...-1...-1....0...-1....0....0....0...-1....1...-1
..0....0....0....0....1....1....0...-1...-1....0....0....0....0...-1....0....0
..1....0....1...-1....1....1....1...-1...-1....1...-1....1...-1...-1....0....0
		

Formula

Empirical: a(n) = 2*a(n-1) -a(n-2) +a(n-3) +a(n-4).
Empirical g.f.: x*(3 + 2*x + x^2)*(1 + 3*x^2 - 2*x^3 + x^4) / ((1 - x)^3*(1 + x + x^2)^2). - Colin Barker, Feb 15 2018