|
COMMENTS
|
The a(n) represent the number of n-move routes of a fairy chess piece starting in the corner and side squares (m = 1, 3, 7, 9; 2, 4, 6, 8) on a 3 X 3 chessboard. This fairy chess piece behaves like a white queen on the eight side and corner squares but on the central square the queen explodes with fury and turns into a red queen, see A180032.
The sequence above corresponds to 28 red queen vectors, i.e. A[5] vector, with decimal values between 3 and 384. The central squares lead for these vectors to A180038.
For n>=1, a(n) equals the numbers of words of length n-1 on alphabet {0,1,2,3,4,5} containing no subwords 00, 11, 22 and 33. - Milan Janjic, Jan 31 2015, Oct 05 2016
a(n) equals the number of sequences over {0,1,2,3,4,5} of length n where no two consecutive terms differ by 4. - David Nacin, May 31 2017
|
|
MAPLE
|
with(LinearAlgebra): nmax:=21; m:=1; A[5]:= [0, 0, 0, 0, 0, 0, 0, 1, 1]: A:=Matrix([[0, 1, 1, 1, 1, 0, 1, 0, 1], [1, 0, 1, 1, 1, 1, 0, 1, 0], [1, 1, 0, 0, 1, 1, 1, 0, 1], [1, 1, 0, 0, 1, 1, 1, 1, 0], A[5], [0, 1, 1, 1, 1, 0, 0, 1, 1], [1, 0, 1, 1, 1, 0, 0, 1, 1], [0, 1, 0, 1, 1, 1, 1, 0, 1], [1, 0, 1, 0, 1, 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);
|