loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.8579060994497847","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"IyAtKi0gY29kaW5nOiBpc28tODg1OS0xNSAtKi0KbiA9IGludChpbnB1dCgnZmlyc3QgbiBuYXR1cmFsIG51bWJlcnMsIG4gPScpKQpwcmludCAiRGlmZmVyZW5jZTogKM6jbinCsiAtIM6jbsKyID0iLCBuKihuLTEpKihuKzEpKigzKm4rMikvLzEy"},"asBuffer":null},"loaded":true}}
1
2
3
# -*- coding: iso-8859-15 -*-
n = int(input('first n natural numbers, n ='))
print "Difference: (Σn)² - Σn² =", n*(n-1)*(n+1)*(3*n+2)//12