OFFSET
1,5
COMMENTS
Row sums are {1, 2, 4, 6, 10, 14, 22, 28, 40, 50, ...}.
FORMULA
T(n,m) = 1 - (ceiling((n-1)/m) + ceiling((n-1)/(n-m+1))) + ceiling((n-1)/1) + ceiling((n-1)/(n-1+1)).
EXAMPLE
{1},
{1, 1},
{1, 2, 1},
{1, 2, 2, 1},
{1, 3, 2, 3, 1},
{1, 3, 3, 3, 3, 1},
{1, 4, 4, 4, 4, 4, 1},
{1, 4, 4, 5, 5, 4, 4, 1},
{1, 5, 5, 6, 6, 6, 5, 5, 1},
{1, 5, 6, 6, 7, 7, 6, 6, 5, 1}
MATHEMATICA
t[n_, m_] = 1 - (Ceiling[(n - 1)/m] + Ceiling[(n - 1)/(n - m + 1)]) + Ceiling[(n - 1)/1] + Ceiling[(n - 1)/(n - 1 + 1)];
Table[Table[t[n, m], {m, 1, n}], {n, 1, 10}];
Flatten[%]
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Roger L. Bagula, Apr 26 2010
EXTENSIONS
Offset corrected by Alois P. Heinz, Jul 04 2019
STATUS
approved