Is there a formula to get the row/column based on a number in the following sequence?
$$ \begin{matrix} 0 \\ 1 & 2 \\ 3 & 4 & 5 \\ 6 & 7 & 8 & 9 \\ \end{matrix} $$
For example,
-------------------
| N | Row | Col |
-------------------
| 0 | 0 | 0 |
-------------------
| 1 | 1 | 0 |
-------------------
| 2 | 1 | 1 |
-------------------
| 9 | 3 | 3 |
-------------------
| 10 | 4 | 0 |
-------------------