# ProblemURL: https://projecteuler.net/problem=6
a = 100
sumOfSquare = (a * (a + 1) * (2 * a + 1)) / 6  # Sum of the Squares formula
squareOfSum = (a * (a + 1) / 2)**2  # Gauss sum formula**2
print(squareOfSum-sumOfSquare)
# https://www.nctm.org/Publications/Teaching-Children-Mathematics/Blog/The-Story-of-Gauss/
# https://www.math-only-math.com/sum-of-the-squares-of-first-n-natural-numbers.html
