I need to insert into a table cell a formula that requires the summation sign and I apparently do something wrong and the compiler just throws me back errors and I really don't know how to solve this.

```
\begin{tabular}{ c || c c c }
\hline
Linea & Costo & Esecuzioni & Totale \\ \hline
1 & $1$ & $1$ & $1$ \\
2 & $n+1$ & $2$ & $2(n+1)$ \\
3 & \begin{equation} \sum_{n=1}\nolimits' C_n \end{equation} & $2$ & $2(n+1)$ \\
\hline
\end{tabular}
```

## Best Answer

You cannot use

`\begin{equation}...\end{equation}`

inside a table cell. If you want it to look like a displayed equation, you can do this:Here,

`\( ... \)`

is inline math (more-or-less equivalent to`$ ... $`

), and`\displaystyle`

is self-explanatory: it typesets the equation in the style as it was a displayed math.