OFFSET
1,5
FORMULA
T(1, k)=1. For n>1: T(n, k) = ((n+2)^k-n^k)/2 = (n+2)*T(n, k-1)+n^(k-1) = A102728(k, n+1).
EXAMPLE
Rows start:
1, 1, 1, 1, 1, 1, ...;
1, 6, 28, 120, 496, 2016, ...;
1, 8, 49, 272, 1441, 7448, ...;
1, 10, 76, 520, 3376, 21280, ...;
1, 12, 109, 888, 6841, 51012, ...;
etc.
T(5,3)=109 because in a 5 X 5 X 5 cube there are 25 columns, 25 linear rows in one direction, 25 linear rows in another direction, 5 short diagonals in each of 6 directions and 4 long diagonals; and 3*25 + 6*5 + 4 = 109.
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Henry Bottomley, Apr 02 2005
STATUS
approved
