OFFSET
3,1
LINKS
Terrel Trotter, Perimeter-Magic Polygons, Journal of Recreational Mathematics Vol. 7, No. 1, 1974, pp. 14-20 (see equations 6 and 8).
FORMULA
T(k, n) = k*(1 + k*(2n - 3) - (n mod 2)*(1 - (k mod 2)))/2.
T(n, n) = A059270(n-1).
EXAMPLE
The table begins:
k\n| 3 4 5 6 7 ...
---+------------------------
3 | 15 24 33 42 51 ...
4 | 24 42 56 74 88 ...
5 | 40 65 90 115 140 ...
6 | 54 93 126 165 198 ...
7 | 77 126 175 224 273 ...
...
MATHEMATICA
T[k_, n_]:=k(1+k(2n-3)-Mod[n, 2](1-Mod[k, 2]))/2; Table[T[k+3-n, n], {k, 3, 14}, {n, 3, k}]//Flatten
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Stefano Spezia, Apr 03 2021
STATUS
approved