def square_of_sum(N):
    s = sum(range(N+1))
    return s**2

def sum_of_squares(N):
    return sum([n**2 for n in range(N+1)])

def difference(N):
    return square_of_sum(N) - sum_of_squares(N)

d2df3a7615e44324b6bf6b63d1ed548df6f701e2
<mask token>

<mask token>


def difference(N):
    return square_of_sum(N) - sum_of_squares(N)

def square_of_sum(N):
    s = sum(range(N + 1))
    return s ** 2


<mask token>


def difference(N):
    return square_of_sum(N) - sum_of_squares(N)

def square_of_sum(N):
    s = sum(range(N + 1))
    return s ** 2


def sum_of_squares(N):
    return sum([(n ** 2) for n in range(N + 1)])


def difference(N):
    return square_of_sum(N) - sum_of_squares(N)

def square_of_sum(N):
    s = sum(range(N+1))
    return s**2

def sum_of_squares(N):
    return sum([n**2 for n in range(N+1)])

def difference(N):
    return square_of_sum(N) - sum_of_squares(N)
