Fruitful Functions

In today’s lab, I learned how to use a fruitful function to see if Fermat’s Last Theorem works or not. We know that if n=1,2 the solution is infinite. So I tried using numbers for n that was higher than 2 and it turns out that it was right. It was hard to find out at first why didn’t the function work. I realized that I wasn’t using the built in “input” function right. I wrote raw_input which was wrong and when I removed the raw_ it worked.

Untitled