a(n) is the number of n X n matrices with entries in {1,2,3} such that all adjacent entries (in the same row or column) differ by 1 or -1.

A146161

a(n) is the number of n X n matrices with entries in {1,2,3} such that all adjacent entries (in the same row or column) differ by 1 or -1.

Terms

    a(0) =3a(1) =8a(2) =48a(3) =512a(4) =12288a(5) =524288a(6) =50331648a(7) =8589934592

External references