The number of length n sequences on {0,1,2} such that there are an equal number of 0's and 1's or there are an equal number of 0's and 2's.

A235320

The number of length n sequences on {0,1,2} such that there are an equal number of 0's and 1's or there are an equal number of 0's and 2's.

Terms

    a(0) =1a(1) =2a(2) =6a(3) =8a(4) =38a(5) =102a(6) =192a(7) =786a(8) =2214a(9) =4598a(10) =17906a(11) =51306a(12) =112928a(13) =425882a(14) =1232454a(15) =2818458a(16) =10393254a(17) =30269862a(18) =71152482a(19) =257993706a(20) =754758738a(21) =1811628498a(22) =6482271054a(23) =19026456246a(24) =46431160992a(25) =164353672602a(26) =483626452302

External references