A180143 Eight rooks and one berserker on a 3 X 3 chessboard. G.f.: (1 + x^2)/(1 - 4*x + x^2 + 2*x^3).
1, 4, 16, 58, 208, 742, 2644, 9418, 33544, 119470, 425500, 1515442, 5397328, 19222870, 68463268, 243835546, 868433176, 3092970622, 11015778220, 39233275906, 139731384160, 497660704294, 1772444881204, 6312656052202
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (4, -1, -2).
Programs
-
Maple
with(LinearAlgebra): nmax:=23; m:=1; A[5]:=[0,0,0,0,1,0,0,0,0]: A:= Matrix([[0,1,1,1,0,0,1,0,0], [1,0,1,0,1,0,0,1,0], [1,1,0,0,0,1,0,0,1], [1,0,0,0,1,1,1,0,0], A[5], [0,0,1,1,1,0,0,0,1], [1,0,0,1,0,0,0,1,1], [0,1,0,0,1,0,1,0,1], [0,0,1,0,0,1,1,1,0]]): for n from 0 to nmax do B(n):=A^n: a(n):= add(B(n)[m,k],k=1..9): od: seq(a(n), n=0..nmax);
Formula
G.f.: (1+x^2)/(1 - 4*x + x^2 + 2*x^3).
a(n) = 4*a(n-1) - 1*a(n-2) - 2*a(n-3) with a(0)=1, a(1)=4 and a(2)=16.
a(n) = -1/2 + (9+12*A)*A^(-n-1)/34 + (9+12*B)*B^(-n-1)/34 with A=(-3+sqrt(17))/4 and B=(-3-sqrt(17))/4.
Comments