Sort:  

how did your computer tell you, what did you use?

$ python
>>> pow(50,300000000003,221)
135

I also used a python script to find the second value.

I did try a few online resources and they were unable to compute it. Good to now that basic python knows how to simplify these calculations.