5,337
edits
Line 33: | Line 33: | ||
Thus the number of elements in columns <math>0, ..., x-1</math> is <math>(x)(x+1)/2</math>. | Thus the number of elements in columns <math>0, ..., x-1</math> is <math>(x)(x+1)/2</math>. | ||
Thus our formula is | Thus our formula is | ||
<math display="block">z = \frac{x(x+1)}{2} + y</math> | <math display="block"> | ||
\begin{equation} | |||
z = \frac{x(x+1)}{2} + y | |||
\end{equation} | |||
</math> | |||
To calculate the inverse formula: | To calculate the inverse formula: |