def z(): """ zero """ return 0 def d(n): """ double """ return 2*n def i(n): """ double and increment """ return 2*n + 1