Skip to content

Instantly share code, notes, and snippets.

@ErikBjare
Last active December 21, 2015 04:48
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 ErikBjare/6251851 to your computer and use it in GitHub Desktop.
Save ErikBjare/6251851 to your computer and use it in GitHub Desktop.
def paths(gs):
void = [2**i for i in range(gs,0,-1)]
p = 2**(2*gs)+2 - sum(void)*2
print(p, void)
return p
paths(20)
p1 = paths(1)
p2 = paths(2)
assert p1 == 2
assert p2 == 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment