TITLE: From pythagoras theorem to the fermat theorem and its modification