Pope Gregory , the Calendar , and Continued Fractions