Advertisement
imk0tter
Oct 20th, 2024
13
0
Never
This is comment for paste Untitled
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def _INFINITY_UNIQUE_NUMBER_SERIES(x, *args):
  2.     if (len(args) == 0): return x - 1
  3.     return _INFINITY_UNIQUE_NUMBER_SERIES((x * 2 - 1) * (2 ** args[0]), *args[1:])
  4. def INFINITY_UNIQUE_NUMBER_SERIES(x, *args):
  5.     return _INFINITY_UNIQUE_NUMBER_SERIES(x + 1, *args)
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement