Sunday, September 6, 2009

FERMAT'S LAST THEOREM !

FERMAT'S LAST THEOREM !

Allen Downey in his book Think Python poses the reader with a problem !

Write a function named check_fermat that takes four parameters — a, b, c and n — and that
checks to see if Fermat’s theorem holds.

Fig 1. Fermat's last Theorem

A suitable program may be made as;

Fig 2. Python Code for check_fermat

However, it must be noted that this sort of treatment may never form some basis of an alternative proof of Fermat's last Theorem, which was the holy grail of mathematics till 1995 when Andrew Wiles established the proof for the 358 year old puzzle.


REFERENCES
(1) Simon Singh

No comments: