[Tex/LaTex] Missing brackets on equations

bracketserrorssharelatex

I'm writing a couple of equations in LaTex (it's my first time using it) and, although I'm finding the general usage pretty straight forward I keep getting a missing brackets warning from ShareLatex that I can't fix, it doesn't tell me where it's missing just the line in which it is missing. Could anyone help me figure out where's the missing bracket in these?

Eq.1

\left\lfloor\frac{n}{\log_2 (n/2)}+n^\left(\frac{1}{6}\right)\right\rfloor \leq \Omega(n\wr) \leq \left\lfloor\frac{n}{\log_2(n/2}+n^\left(\frac{1}{2}\right)\right\rfloor

Eq.2

\begin{align*}
T_{prod}F(n\wr)&\simeq\beta n\log\log(n)\sum_{1\leq i\leq \lfloor lg\hspace{2pt}n\rfloor} \log\left(\alpha n2^\left(-i\right)\right)\\
&\simeq \frac{\alpha}{\beta}n(\log n)^2 \log\log n \\
\end{align*}

Best Answer

You forgot to put some of your exponents between brackets, so that ^ is followed by \left(. I took the opportunity to slighly improve your formula with the \mathclap command from mathtools.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathtools}

\begin{document}

\[ \left\lfloor\frac{n}{\log_2 (n/2)}+n^{\left(\frac{1}{6}\right)}\right\rfloor \leq \Omega(n\wr) \leq
\left\lfloor\frac{n}{\log_2(n/2)}+n^{\left(\frac{1}{2}\right)}\right\rfloor
 \]

\begin{align*}
T_\text{prod}F(n\wr)&\simeq\beta n\log\log(n)\sum_{\mathclap{1\leq i\leq \lfloor lg\:n\rfloor}} \log\left(\alpha n2^{\left(-i\right)}\right)\\
&\simeq \frac{\alpha}{\beta}n(\log n)^2 \log\log n \\
\end{align*}

\end{document}

enter image description here