Here are my notes.
$ \sum_{i=1}^{N}{i} = \frac{i(i-1)}{2} = \frac{i^2-i}{2} $
import os, sys def main(): print "hello world" if __name__ == "__main__": main()