I got this error TypeError: op_add expected 2 arguments, got 3
but reduce(add, [Rational(1, i) for i in egyptian(Rational(18, 77), "Greedy")]) is working after I imported add from operator