OFFSET
1,9
LINKS
Wikipedia, Integer Triangle
FORMULA
a(n) = Sum_{k=1..floor((n-1)/3)} Sum_{i=k+1..floor((n-k-1)/2)} sign(floor((i+k)/(n-i-k+1))) * i * k * (n-i-k).
MATHEMATICA
Table[Sum[Sum[i*k*(n - i - k)*Sign[Floor[(i + k)/(n - i - k + 1)]], {i, k + 1, Floor[(n - k - 1)/2]}], {k, Floor[(n - 1)/3]}], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, May 16 2019
STATUS
approved