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}