Estou tentando escrever esta equação usando látex, mas estou tendo problemas

Estou tentando escrever esta equação usando látex, mas estou tendo problemas

Isso é o que eu gostaria de enviar.

Obs: O texto abaixo é o que encontrei neste site, mas meu projeto está "gritando" comigo. Diga-me que há algo errado.

As coisas importantes são:

  • \undersetque leva dois argumentos, o primeiro é colocado sob o segundo.
  • \mathrmfazermedian parecer vertical e diferenciá-lo de uma multiplicação de 6 variáveis ​​​​denominadas m, e, d, i, a e n.
  • \{e \}precisa de barras invertidas porque {e} fazem parte da linguagem base LaTeX.
  • \cupque é um símbolo melhor para um sindicato.

Meu código:

\documentclass[28pt]{article}

\usepackage{fancyhdr}

\usepackage[includeheadfoot,margin=1.0cm]{geometry} 
\usepackage{amsmath,amsthm,amssymb}
\usepackage{enumitem}
\usepackage{mathtools}
\usepackage{framed}
\usepackage{chessfss} %chess figure for HW #2
\usepackage[english]{babel} %table for problem A.43
\usepackage{multirow} %table for problem A.43
%\usepackage[table]{xcolor} color certain blocks in a table
%\usepackage[pass,showframe]{geometry}  just to show the margins
\usepackage[makeroom]{cancel}
\usepackage{array}  %BETWEEN TWO 2-DIGIT NUMBERS

\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\thedate}{\today}

\newtheoremstyle{case}{}{}{}{}{}{:}{ }{}
\theoremstyle{case}
\newtheorem{case}{Case}


\newenvironment{theorem}[2][Theorem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{lemma}[2][Lemma]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{exercise}[2][Exercise]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{problem}[2][Problem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{question}[2][Question]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{corollary}[2][Corollary]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}

\begin{document}
\begin{problem}{C.35}
\textit{Use the formula $T(m,n)=\underset{row n of Pascal's triangle}{\mathrm{\left(1,n,\binom{n}{2},\dotsc,1 \right)}} \cdot \underset{m^{th} powers with alternating signs}{\mathrm{n^{m},-(n-1)^{m},(n-2)^{m}}}$ to calculate T$(10,3)$ and T$(10,4)$.}
\begin{flushleft}

\end{flushleft}
\end{problem}

\end{document}

Responder1

Aqui usei pilhas para o subconjunto e apresentei a equação em estilo de exibição.

\documentclass[28pt]{article}

\usepackage{fancyhdr}

\usepackage[includeheadfoot,margin=1.0cm]{geometry} 
\usepackage{amsmath,amsthm,amssymb}
\usepackage{enumitem}
\usepackage{mathtools}
\usepackage{framed}
\usepackage{chessfss} %chess figure for HW #2
\usepackage[english]{babel} %table for problem A.43
\usepackage{multirow} %table for problem A.43
%\usepackage[table]{xcolor} color certain blocks in a table
%\usepackage[pass,showframe]{geometry}  just to show the margins
\usepackage[makeroom]{cancel}
\usepackage{array}  %BETWEEN TWO 2-DIGIT NUMBERS
\usepackage{stackengine}
\stackMath
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\thedate}{\today}

\newtheoremstyle{case}{}{}{}{}{}{:}{ }{}
\theoremstyle{case}
\newtheorem{case}{Case}


\newenvironment{theorem}[2][Theorem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{lemma}[2][Lemma]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{exercise}[2][Exercise]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{problem}[2][Problem]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{question}[2][Question]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}
\newenvironment{corollary}[2][Corollary]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}\hskip \labelsep {\bfseries #2.}]}{\end{trivlist}}

\begin{document}
\begin{problem}{C.35}
\textit{Use the formula 
\[
\renewcommand\stacktype{L}
\renewcommand\useanchorwidth{T}
T(m,n)=\stackunder[1.5\baselineskip]{\mathrm{\left(1,n,\binom{n}{2},\dotsc,1 \right)}}
{\stackunder{\textup{row $n$ of}}{\textup{ Pascal's triangle}}}
 \cdot \stackunder[1.5\baselineskip]{\left(\mathrm{n^{m},-(n-1)^{m},(n-2)^{m}},\dots\right)}
 {\stackunder{\textup{$m^{th}$ powers with}}{\textup{alternating signs}}}
\] 
to calculate T$(10,3)$ and T$(10,4)$.}
\begin{flushleft}

\end{flushleft}
\end{problem}

\end{document}

insira a descrição da imagem aqui

informação relacionada