I would prefer to write the definition as in equation (2). However the sum sign is too low in this case. Is there a way to make it higher?
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\ell_{p}(n)= \sum_{k=1}^{\infty}{{\genfrac{\lfloor}{\rfloor}{}{}{n}{p^{k}}}}\bmod2
\end{equation}
\begin{equation}
\ell_{p}(n)= \sum_{k\geq1}{{\genfrac{\lfloor}{\rfloor}{}{}{n}{p^{k}}}}\bmod2
\end{equation}
\end{document}



\genfracfor this; this is a fraction with a pair of delimiters around it, use\left\lfloor\frac{n}{p^j}\right\rfloor(or\Bigland\Bigrinstead of\leftandright);\genfracis not meant to be used in the document, but only in the preamble for definining new symbols. – egreg Oct 02 '13 at 13:45