display: \left( \sum_{k=1}^n a_k b_k \right)^{\!\!2} etc.
www.math.union.edu/~dpvc/jsMath / planetmath.org
(C) Æliens 2013