Fermat's last theorem arises from the basic formula for a right triangle