Skip to content

Instantly share code, notes, and snippets.

@franklin-e
Created August 30, 2010 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franklin-e/557386 to your computer and use it in GitHub Desktop.
Save franklin-e/557386 to your computer and use it in GitHub Desktop.
corners = [1]
for i in range(3, 1112, 2):
new_corners = (i*i, i*i-(i-1), i*i-(2 * (i-1)), i*i-(3 * (i-1)))
for corner in new_corners:
corners.append(corner)
print sum(corners)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment