It's interesting to find an ancient poem about numbers.

Shao Yong (Kang Jie), a Neo-Confucianist in the Song Dynasty, wrote Poems of Enlightenment: a line of twenty or thirty miles, four or five smoke villages, six or seven pavilions, and eighty or ninety flowers. Emperor Qianlong of the Qing Dynasty once toured a mountain, met with heavy snow, and sang poems about numbers, vividly depicting the scene of snowflakes falling and reed flowers merging into one: one after another, two, three, four, five, six, seven, eight and nine. . He, a poetess in Qing Dynasty, was good at writing digital poetry, using ten words in a row, and she didn't feel repetitive, so the scenery she wrote was picturesque. A flower, a willow, a fish, a bird flying in the sunset. One mountain, one water, one temple, one yellow leaf and one monk return. Luo Hongxian, a native of Jishui, Jiangxi Province in the Ming Dynasty, was the number one scholar in Jiajing period. Once he and his friends went to Jiujiang by boat and met a boatman who wrote a number couplet. The boatman wrote couplets: a lone boat, two businessmen, three or four hundred and fifty-six sailors, and the tent was lifted for seven or eight pages, which was ten miles away from Jiujiang. This pair of me, after hundreds of years, no one can tell the difference. The ancients also made a couplet with ten figures, which summarized Zhuge Liang's life: receiving two States, arranging eight arrays, catching six in seven, and lighting forty-nine lights in front of the five-foot plain, with one heart only for three considerations. After this couplet was written, no one could correct it for a long time. Later, someone finally made a couplet with five elements: take the west Shu, gather the south Yi, and reject things. In China's military account, Jin Mu's soil and grass were changed, and the water surface could be attacked with fire. According to legend, Su Dongpo and Xueyou went to Beijing to catch the exam. Because of the flood, it was difficult for the ship to travel and delayed the time. Seeing that they were going to be late for the exam, Xueyou sighed: It was already very late, sitting alone in a boat with two or three poets, using four oars and five sails and passing through six beaches and seven bays. Su Dongpo also encouraged him to join the league with numbers: after ten years of cold window, he entered 98 academies, but abandoned secular desires. He studied the Five Classics and Four Books hard and took two exams. Today, he must win The first part counts from one to ten, and the second part counts backwards from ten to one, which not only skillfully and appropriately uses numbers, but also vividly expresses the difficulty of students studying hard at a cold window and rushing to Beijing for exams. Mathematics is abstract and boring. How to make mathematics easy to understand and loved by people? In this respect, Chinese ancient mathematicians have made many attempts, among which ballads and formulas are one. Starting from Yang Hui in the Southern Song Dynasty, Zhu Shijie, Ding Ju and Jia Heng in the Yuan Dynasty, Liu Shilong and Cheng Dawei in the Ming Dynasty all put forward various algorithms in the form of verse, or put forward various mathematical problems in the form of poetry. There are twelve mathematical problems in Zhu Shijie's "Meeting with the Source" and "Or Asking Songs", all of which are put forward in the form of poems. For example, the first question: there is a square pool today, and every side stops. The sides of the reef are getting bigger and bigger, and water comes out 30 inches. There is a cattail on the east coast, and there is no zero on the water. The pier is slightly flush with the water, so how to determine the three types (water depth, pier length and pier length)? Question 4: I have a pot of wine with upstream spring. Meet a store, double it, and each friend drinks a bucket. The shop friend passed through three places and lost the wine in the pot. May I ask how much wine is in this pot? Cheng Dawei's Algorithm Classic of Ming Dynasty is a popular and practical mathematical work, and also a representative work of digital poetry. Seventeen volumes of Algorithmic Tongzong, which was widely circulated in the late Ming and early Qing Dynasties, made outstanding contributions to the popularization of folk mathematics knowledge. It took Cheng Dawei nearly 20 years to finish this book. At first, he was a businessman. When he was in business, he collected books on arithmetic and writing from all over the country and compiled them into ballads, turning boring math problems into wonderful poems, which made people catchy and strengthened the affinity of mathematics popularization. There is a problem of "I don't know the number of things" in the famous "Sunzi Suanjing". The original text of this calculation is: "Today, the figures of some things are unknown. Three three numbers leave two, five five numbers leave three, and seven seven numbers leave two. What is the geometry of things? Answer 23. " This problem has been passed down to later generations, and many interesting names have appeared, such as "Guiguzi" and "Han Xin Point Soldiers". Cheng Dawei wrote a mathematical solution in the form of a poem in "Arithmetic Unity": Seventy-three people walk together, five trees and twenty-one plum blossoms, and seven children reunite in the middle of the month. Divide by 105 and you will know. This poem contains the famous "remainder theorem". That is, the remainder is divided by 3 times 70, the remainder is divided by 5 times 2 1, and the remainder is divided by 7 times 15. If the result is greater than 105, reduce the multiple of 105. The result of the above question is: (2× 70)+(3× 21)+(2×15)-(2×105) = 23 There is also a poetic answer to this question in a notebook in the Song Dynasty: there are 70 three-year-old children, and five children leave 20 special ones. Meet again at seven degrees, cold food is bright. In ancient times, the fifteenth day of the first month was called Shangyuan, so Shangyuan means 15, which is also called Qingming on the 16th. Cold food is the day before Tomb-Sweeping Day, so the Qingming on cold food means 105. The two poems have the same solution, and the answer is 23. Cheng Dawei also has a similar drinking mathematical poem with binary linear equation: there are many people drinking in restaurants, and thin wine is named strong alcohol. One bottle of good wine makes three people drunk, and three bottles of thin wine make one drunk. * * * drank 19 times, and all 33 guests were drunk. Excuse me, Gao Ming is a scholar. How much alcohol does he have? The main idea of this poem is: a bottle of good wine can make three people drunk; Three bottles of thin wine can get the guests drunk. 33 guests were drunk and always drank 19 bottles of wine. How many bottles of good wine and thin wine are there? In the Yuan Dynasty, there was a calculation book "Detailed Algorithm" about the method of measuring fields: the ancients measured fields for a long time and drew them by rope ruler. Although there is a form of universal law, only Tian Fang's law is easy to elaborate. If you see the vortex inclined downward, you must make up for it. However, millet is actually a field product, and the method of dividing two acres or four acres is very strong. In the Ming Dynasty, a talented scholar in Nanhai wrote a mathematical poem of Su Dongpo's "Birds Return to their Nest": One was born, 345678. Phoenix birds have fewer birds, pecking at the valley of thousands of stones on earth!