So i have the following sequence:
${1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, ...}$
Where the number $i$ appears $i + 1$ times.
I would like to know the $n$-th term of this sequence. I tried to analise certain patterns within the sequence, but wasn´t able to conclude anything so far.
According to OEIS the general formula is $$ a(n) = \lfloor (\sqrt{1+8n}-1)/2\rfloor. $$