LongRangeDivision (super Hard)

So hard. Can someone help (in pytthon)