<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msub>
      <mi>C</mi>
      <mrow>
        <mi>i</mi>
        <mo>,</mo>
        <mi>j</mi>
      </mrow>
    </msub>
    <mo>=</mo>
    <mo>{</mo>
    <mtable>
      <mtr>
        <mtd>
          <mfrac>
            <mn>1</mn>
            <mn>2</mn>
          </mfrac>
        </mtd>
        <mtd>
          <mi>i</mi>
          <mi>f</mi>
        </mtd>
        <mtd>
          <mi>i</mi>
          <mo>=</mo>
          <mi>j</mi>
          <mo>=</mo>
          <mn>0</mn>
        </mtd>
      </mtr>
      <mtr>
        <mtd>
          <mn>0</mn>
        </mtd>
        <mtd>
          <mi>i</mi>
          <mi>f</mi>
        </mtd>
        <mtd>
          <mi>j</mi>
          <mo>></mo>
          <mi>i</mi>
        </mtd>
      </mtr>
      <mtr>
        <mtd>
          <mo>&#x2212;</mo>
          <msup>
            <mn>1</mn>
            <mrow>
              <mi>i</mi>
              <mo>&#x2212;</mo>
              <mi>j</mi>
            </mrow>
          </msup>
          <mi>S</mi>
        </mtd>
        <mtd>
          <mspace width="1em"/>
        </mtd>
        <mtd>
          <mi>o</mi>
          <mi>t</mi>
          <mi>h</mi>
          <mi>e</mi>
          <mi>r</mi>
          <mi>w</mi>
          <mi>i</mi>
          <mi>s</mi>
          <mi>e</mi>
        </mtd>
      </mtr>
    </mtable>
    <mspace width="1em"/>
    <mspace width="1em"/>
    <mo>;</mo>
    <mspace width="1em"/>
    <mspace width="1em"/>
    <mi>S</mi>
    <mo>=</mo>
    <mrow>
      <munderover>
        <mo>&#x2211;</mo>
        <mrow>
          <mi>k</mi>
          <mo>=</mo>
          <mn>0</mn>
        </mrow>
        <mi>i</mi>
      </munderover>
      <mfenced>
        <mrow>
          <mtable>
            <mtr>
              <mtd>
                <mn>2</mn>
                <mi>i</mi>
              </mtd>
            </mtr>
            <mtr>
              <mtd>
                <mn>2</mn>
                <mi>k</mi>
              </mtd>
            </mtr>
          </mtable>
        </mrow>
      </mfenced>
      <mfenced>
        <mrow>
          <mtable>
            <mtr>
              <mtd>
                <mi>k</mi>
              </mtd>
            </mtr>
            <mtr>
              <mtd>
                <mi>k</mi>
                <mo>+</mo>
                <mi>j</mi>
                <mo>&#x2212;</mo>
                <mi>i</mi>
              </mtd>
            </mtr>
          </mtable>
        </mrow>
      </mfenced>
    </mrow>
  </mrow>
</math>

