Answer:
$I_{(0,t)} = A(t) - A(0) $
We also know that:
$I_{(0,1)} = A(1) - A(0) = 1$
$I_{(1,2)} = A(2) - A(1) = 2$
$I_{(2,3)} = A(3) - A(2) = 3$
...
$I_{(t-2,t-1)} = A(t-1) - A(t-2) = t-1$
$I_{(t-1,t)} = A(t) - A(t-1) = t$
Summing the above, you will see mass cancellation and the sum S reduces to
$S = A(t) - A(0) = I_{(0,t)} = (1+2+3+\cdots|t) = \frac{t(t+1)}{2}\tag{1}$
In a similar reasoning:
$I_{(0,n)} = A(n) - A(0) $
We also know that:
$I_{(0,1)} = A(1) - A(0) = 1$
$I_{(1,2)} = A(2) - A(1) = 2$
$I_{(2,3)} = A(3) - A(2) = 3$
...
$I_{(n-2,n-1)} = A(n-1) - A(n-2) = n-1$
$I_{(n-1,n)} = A(n) - A(n-1) = n$
Summing the above, you will see mass cancellation and the sum S'reduces to
$S' = A(n) - A(0) = I_{(0,n)} = (1+2+3+\cdots|n) = \frac{n(n+1)}{2}\tag{2}$
Subtract (2) - (1) (i.e S'-S)
We get
$A(n) - A(t) = I_{(t,n)} = \frac{n(n+1)}{2} - \frac{t(t+1)}{2}$
$$ = \frac{1}{2}(n^2+n - t^2 - t)$$