• + 0 comments

    Here is my Python solution!

    def fibonacciModified(t1, t2, n):
        sys.set_int_max_str_digits(99999999)
        first = t1
        second = t2
        for i in range(n - 2):
            current = first + second ** 2
            first = second
            second = current
        return current