his interests were in astronomy. he tried to develop a calendar and for this he investigated diophantine equations. he is best known for authoring "sun tzu suan ching" (pinyin: "sun zi suan jing"; literally, "sun tzu's calculation classic"), which contains the chinese remainder theorem.