From Pythagoras to Elliptic Curves