patternsum
