\documentclass[12pt]{article}
\begin{document}
$$
P = \sum_{i = 1}^{6} | \vec{R}_i + \vec{R}_{i+6} |^2
\end{document}