%I #18 Apr 23 2022 14:41:38
%S 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,
%T 122,364,127,64,35,28,47,124,365,1093,255,128,67,44,55,128,367,1094,
%U 3280,511,256,131,76,71,136,371,1096,3281,9841,1023,512,259,140,103,152,379,1100,3283,9842,29524
%N 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).
%C A tic-tac-toe board in n dimensions consists of 3^n cells. Each cell is central (between others) in k dimensions and extremal (not between others) in n-k dimensions. In standard n=2 tic-tac-toe, k=0 gives a corner, k=2 gives the center, and k=1 gives an edge.
%C A000225 gives the first term in each row: a(n) is the number of three-in-a-rows passing through corner cells in n-dimensional tic-tac-toe = 2^n - 1.
%C A003462 gives the final term in each row: a(n) is the number of three-in-a-rows passing through the center cell in n-dimensional tic-tac-toe = (3^n - 1)/2.
%C A007051 gives the penultimate term in each row: a(n) is the number of three-in-a-rows passing through a cell in n-dimensional tic-tac-toe that is central in n - 1 dimensions and extremal in 1 dimension = (3^(n-1))/2 + 1.
%C A170804 gives the minimum of each row: a(n) is the smallest number of three-in-a-rows passing through any cell in n-dimensional tic-tac-toe.
%C A094374 -1 gives the central values of even rows: a(n) - 1 is the number of three-in-a-rows passing through a cell in 2n-dimensional tic-tac-toe that is central in n dimensions and extremal in n dimensions = (2^n - 1) + (3^n - 1)/2.
%F T(n,k) = (3^k - 1)/2 + 2^(n-k) - 1.
%e Table begins:
%e 0;
%e 1, 1;
%e 3, 2, 4;
%e 7, 4, 5, 13;
%e 15, 8, 7, 14, 40;
%e 31, 16, 11, 16, 41, 121;
%e 63, 32, 19, 20, 43, 122, 364;
%Y Cf. A000225, A003462, A007051, A094374, A170804.
%K nonn,tabl
%O 0,4
%A _Ben Orlin_, Mar 15 2022