def square_of_sum(number):
    sum = (number * (number + 1)) / 2
    return sum * sum


def sum_of_squares(number):
    return (number * (number + 1) * (2 * number + 1)) / 6


def difference_of_squares(number):
    return square_of_sum(number) - sum_of_squares(number)
