<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <semantics>
    <msub>
      <mi>x</mi>
      <mfenced close="" open="">
        <mi>i</mi>
        <msub>
          <mi>j</mi>
          <mfenced close="" open="">
            <mi>n</mi>
            <msub>
              <mi>m</mi>
              <mn>2</mn>
            </msub>
          </mfenced>
        </msub>
      </mfenced>
    </msub>
    <annotation-xml encoding="MathML-Content">
      <ci>
        <msub>
          <mi>x</mi>
          <mfenced close="" open="">
            <mi>i</mi>
            <msub>
              <mi>j</mi>
              <mfenced close="" open="">
                <mi>n</mi>
                <msub>
                  <mi>m</mi>
                  <mn>2</mn>
                </msub>
              </mfenced>
            </msub>
          </mfenced>
        </msub>
      </ci>
    </annotation-xml>
    <annotation encoding="SnuggleTeX">\[ x_{i,j_{n,m_2}} \]</annotation>
    <annotation encoding="LaTeX">\[ x_{i,j_{n,m_2}} \]</annotation>
    <annotation encoding="Maxima">x[i,j[n,m[2]]]</annotation>
  </semantics>
</math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <semantics>
    <msub>
      <mi>x</mi>
      <mrow>
        <mi>i</mi>
        <mo>,</mo>
        <msub>
          <mi>j</mi>
          <mrow>
            <mi>n</mi>
            <mo>,</mo>
            <msub>
              <mi>m</mi>
              <mn>2</mn>
            </msub>
          </mrow>
        </msub>
      </mrow>
    </msub>
    <annotation encoding="SnuggleTeX">\[ x_{i,j_{n,m_2}} \]</annotation>
  </semantics>
</math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <msub>
    <mi>x</mi>
    <mfenced close="" open="">
      <mi>i</mi>
      <msub>
        <mi>j</mi>
        <mfenced close="" open="">
          <mi>n</mi>
          <msub>
            <mi>m</mi>
            <mn>2</mn>
          </msub>
        </mfenced>
      </msub>
    </mfenced>
  </msub>
</math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <ci>
    <msub>
      <mi>x</mi>
      <mfenced close="" open="">
        <mi>i</mi>
        <msub>
          <mi>j</mi>
          <mfenced close="" open="">
            <mi>n</mi>
            <msub>
              <mi>m</mi>
              <mn>2</mn>
            </msub>
          </mfenced>
        </msub>
      </mfenced>
    </msub>
  </ci>
</math>
x[i,j[n,m[2]]]