Skip to content

Instantly share code, notes, and snippets.

@EricSchles
Created September 14, 2020 00:50
Show Gist options
  • Save EricSchles/3a360f286c6b96b96c11049700948f6f to your computer and use it in GitHub Desktop.
Save EricSchles/3a360f286c6b96b96c11049700948f6f to your computer and use it in GitHub Desktop.
pyramid_sum = lambda n: (2*(n**2) - (2*n - 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment