I came up with this in mind and couldn't find a way to solve it. With this progression: $$ A_0 = 0,\\ A_1 = 1,\\ A_2 = 1,\\ A_3 = 2,\\ A_4 = 2,\\ A_5 = 2,\\ ...\\ A_N $$ for the step $k$ of the sequence, there will be $k$ times the number $k-1$.
(Example for the 4th part of the sequence, there will be $4$ times the number $3$ like this: $3, 3, 3, 3$)
What will be $A_n$ for a given $n$? Why? What are these kind of progressions called?