OFFSET
1,2
COMMENTS
Column 2 of A183912.
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..200
FORMULA
Empirical: a(n) = (1/2)*n^2 + (7/2)*n - 5 for n>1.
a(n) = Triangular number(A000217)-11.
Conjectures from Colin Barker, Apr 05 2018: (Start)
G.f.: x*(1 + x + x^2 - 2*x^3) / (1 - x)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n>4.
(End)
EXAMPLE
Some solutions for n=4:
..0....0....1....0....1....0....0....0....0....0....0....0....1....0....0....0
..1....0....1....1....1....1....0....0....1....0....0....0....1....0....0....0
..2....0....1....1....1....1....0....0....1....1....1....1....2....0....0....0
..2....1....1....1....2....1....1....0....2....2....1....1....2....1....0....2
..2....2....2....2....2....1....1....1....2....2....1....2....2....1....0....2
..2....2....2....2....2....2....1....1....2....2....2....2....2....2....0....2
MATHEMATICA
Abs[Table[n (n + 1)/2 - 11, {n, 4, 200}]] (* Vladimir Joseph Stephan Orlovsky, Jun 12 2011 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Jan 07 2011
STATUS
approved
