find limit of recursive sequence code example Example: recursionerror maximum recursion depth sys.setrecursionlimit(1500)