Skip to content

Instantly share code, notes, and snippets.

@maksverver
Last active August 29, 2015 14:00
Show Gist options
  • Save maksverver/b5d1e5adacade6d92b37 to your computer and use it in GitHub Desktop.
Save maksverver/b5d1e5adacade6d92b37 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
N = 22
e = 0
for p in sum([[1/N, i/N] for i in range(1,N)], []):
e = (1 + e*p)/p
print(e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment