a2=a1+1=1+1
a3=a2+2=1+1+2
a4=a3+3=1+1+2+3
...
an=an-1+n-1=1+1+2+3+..+(n-1)=1+(n-1)n/2
a100=1+100*99/2=4951