TeX source:
\displaystyle \sum _{All Patterns} e ^{-E(pattern)}]