One day, the king felt that it was boring to always play against his defeated soldiers, so he ordered: whoever can beat him can satisfy a wish put forward by this man. One of his ministers, who had never played chess with the king, came forward and asked for a game of chess with the king. The king paid no attention to the minister at all, but in the end, the clever minister won. Although the king lost, he said generously, "Make your request, and I will keep my promise and meet your request." The minister said softly, "I just want some wheat to fill the chessboard." This chessboard has 64 squares. Your Majesty, please put one wheat grain in the first square, two in the second square, four in the third square and eight in the fourth square ... and so on, and fill all 64 squares. " Hearing this, the king said without thinking, "I will meet you at once for such a small request."
So he ordered the minister in charge of grain to calculate the number of wheat grains according to the minister's calculation method. After calculating, the minister in charge of grain went up to the king and whispered, "Your Majesty, according to his request, the grain in the whole country is not enough! You see, 1+2+22+23+24+25 ... =1844674073709551615,1m3 of wheat is about/kloc-. The king was blindsided. What can he do?
"Your Majesty, don't worry. We can open the grain depot and let him count it by himself. Even if two grains are counted every second and 12 hours a day, then 10 years can only count 200,000 cubic meters, so it will take 290 billion years to count all the grains he wants." The minister in charge of grain said to the king, "Your Majesty, I don't think he really wants to get so many grains of wheat. He just wants to see who is smarter than him." The king was very happy to hear the analysis of the minister in charge of grain. Because he has two smart and loyal ministers.