A364823 Triangle read by rows: T(n,k) = number of possible positions for four connected discs in the game "Connect Four" played on a board with n columns and k rows, 4 <= k <= n.
10, 17, 28, 24, 39, 54, 31, 50, 69, 88, 38, 61, 84, 107, 130, 45, 72, 99, 126, 153, 180, 52, 83, 114, 145, 176, 207, 238, 59, 94, 129, 164, 199, 234, 269, 304, 66, 105, 144, 183, 222, 261, 300, 339, 378, 73, 116, 159, 202, 245, 288, 331, 374, 417, 460
Offset: 4
Examples
The triangle T(n,k) begins: n/k 4 5 6 7 8 9 10 ... 4: 10 5: 17 28 6: 24 39 54 7: 31 50 69 88 8: 38 61 84 107 130 9: 45 72 99 126 153 180 10: 52 83 114 145 176 207 238 . . .
Links
- Wikipedia, Connect Four.
Programs
Formula
T(n,k) = 4*k*n - 9*k - 9*n + 18, 4 <= k <= n, comprising k*(n-3) = k*n - 3*k horizontal positions, n*(k-3) = k*n - 3*n vertical positions, and 2*(n-3)*(k-3) = 2*k*n - 6*k - 6*n + 18 diagonal positions.
T(n,n) = 4*n^2 - 18*n + 18 = A059193(n-2).
Comments