Original: Interested in astronomy and trying to develop a calendar, he investigated Diophantine equations.
Simplified: His interests were in astronomy. He tried to develop a calendar and for this he investigated Diophantine equations.