OFFSET
1,1
COMMENTS
A connected (0,1) matrix is one where you can get from any black square, i.e. 1, to any other by chess king moves.
REFERENCES
R. Levy and J. Shapiro, Uniqueness in paint-by-numbers puzzles, preprint, 2000.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (7, -3, 5).
FORMULA
a(n) = 7*a(n-1)-3*a(n-2)+5*a(n-3).
G.f.: (-5*x^2-3)/(5*x^3-3*x^2+7*x-1). - Harvey P. Dale, Nov 23 2011
MATHEMATICA
LinearRecurrence[{7, -3, 5}, {3, 21, 143}, 40] (* Harvey P. Dale, Nov 23 2011 *)
PROG
(Magma) I:=[3, 21, 143]; [n le 3 select I[n] else 7*Self(n-1)-3*Self(n-2)+5*Self(n-3): n in [1..20]]; // Vincenzo Librandi, Feb 14 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 22 2000
EXTENSIONS
More terms from James A. Sellers, May 23 2000
STATUS
approved