Yang Xuan, who was born into a Jinshi family, possesses the unparalleled talent of "all things are numbered". When Jiajing was superstitious about alchemy and the Ming Dynasty's finances were in ruins, he entered the Tao through magic, starting from pacifying the county government's bad debts and climbing to the top step by step. When the civil and military officials of the Manchu Dynasty were playing games in Qingci, and Jiajing was sitting beside the alchemy furnace, Yang Xuan was holding calculation chips, reconstructing the universe with strict logic, and using magic to teach the suspicious emperor: true immortality is hidden in the constants of the stars and the algorithm of everything.