Find out the law of 1,3,6,10,15,21,28,36 and the law of 0,1,3,6,10,15,21

Find out the law of 1,3,6,10,15,21,28,36 and the law of 0,1,3,6,10,15,21

1,3,6,10,15,21,28,36
The nth number of the rule is equal to adding 1 to n
1=1
3=1+2
6=1+2+3
10=1+2+3+4
……
X=(N+1)*N/2
0,1,3,6,10,15,21
The nth number of the rule is equal to the number from 0 to n-1
0=0(N-1=0)
1=0+1(N-1=1)
3=0+1+2(N-1=2)
6=0+1+2+3(N-1=3)
X=(N-1)*N/2