OFFSET
3,1
LINKS
Terrel Trotter, Perimeter-Magic Polygons, Journal of Recreational Mathematics Vol. 7, No. 1, 1974, pp. 14-20 (see equation 3).
FORMULA
O.g.f.: (x^2 - 3*x^2*y + x*y^2 + 3*x^2*y^2)/((1 - x)^3*(1 - y)^3).
E.g.f.: exp(x+y)*x*(x - x*y + y^2 + x*y^2)/2.
T(k, n) = (n - 1)*k*((n - 1)*k + 1)/2.
EXAMPLE
The array begins:
k\n| 3 4 5 6 7 ...
---+------------------------
3 | 21 45 78 120 171 ...
4 | 36 78 136 210 300 ...
5 | 55 120 210 325 465 ...
6 | 78 171 300 465 666 ...
7 | 105 231 406 630 903 ...
...
MATHEMATICA
T[k_, n_]:=(n-1)k((n-1)k+1)/2; Table[T[k+3-n, n], {k, 3, 12}, {n, 3, k}]//Flatten
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Stefano Spezia, Mar 19 2021
STATUS
approved