A352419 Triangle read by rows T(n,k): number of three-in-a-rows in n-dimensional tic-tac-toe through a cell that is central in k dimensions (for k=0..n).
0, 1, 1, 3, 2, 4, 7, 4, 5, 13, 15, 8, 7, 14, 40, 31, 16, 11, 16, 41, 121, 63, 32, 19, 20, 43, 122, 364, 127, 64, 35, 28, 47, 124, 365, 1093, 255, 128, 67, 44, 55, 128, 367, 1094, 3280, 511, 256, 131, 76, 71, 136, 371, 1096, 3281, 9841, 1023, 512, 259, 140, 103, 152, 379, 1100, 3283, 9842, 29524
Offset: 0
Examples
Table begins: 0; 1, 1; 3, 2, 4; 7, 4, 5, 13; 15, 8, 7, 14, 40; 31, 16, 11, 16, 41, 121; 63, 32, 19, 20, 43, 122, 364;
Formula
T(n,k) = (3^k - 1)/2 + 2^(n-k) - 1.
Comments