Skip to content

Instantly share code, notes, and snippets.

@jamesmcm
Created January 20, 2014 07:54
Show Gist options
  • Save jamesmcm/8516499 to your computer and use it in GitHub Desktop.
Save jamesmcm/8516499 to your computer and use it in GitHub Desktop.
Marifer algorithm
x = lambda x: x/2 - ((x-1)/2)
for i in range(5):
print "x("+str(i)+"): " + str(x(i))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment