Suddenly I want to write a program to calculate the full number.

Source: Internet
Author: User

The amount of computing is too large, so one machine cannot do it.

Build a C/S computing framework

Put the server on a public IP address (this resource is available now and may not be available in the future, haha)

The client is free of choice.

The server allocates tasks to split computing tasks.

After the client machine is installed, it runs the program automatically and tries to connect to the server.

If the server is connected, the server automatically sends the task segment to the client.

The client receives the task offline and completes the computation in its spare time. The intermediate computation results are stored locally.

After computing, connect to the server again, upload the result to the server, and request a new computing task.

The server sorts out the computing results, saves the results, and re-distributes the tasks.

The client detects the CPU in real time. If the CPU usage is low, task computing is performed.

If the utilization rate is high, the calculation is suspended.

It doesn't feel complicated. It just takes some time.

The difficulty lies in Task Scheduling and allocation on the server.

It's quite interesting.

It is estimated that it is very unlikely to be done. Can you always think about it?

Full

Bidagos believes that the perfection of a number depends on its factor (that is, the number that can be divisible by the original number ). For example, if the factor of 12 is 1, 2, 3, 6, and 12 = 1 + 2 + 3 + 6, 12 is a full number. After 12, the number of filled parts is 28, the third is 496, the fourth is 8128, the fifth is 33550336, and the sixth is 8589869056. The value corresponding to the full number is "profit" and "loss. The "profit" number is the sum of the factors of the index greater than itself, and the "loss" number is the sum of the factors less than itself. An interesting property is that the sum of the number is equal to the sum of a series of adjacent counts. For example, 6 = 1 + 2 + 3;

28 = 1 + 2 + 3 + 4 + 5 + 6 + 7;

496 = 1 + 2 + 3 + 4 + 5 + 6 + 7 +... + 30 + 31;

8128 = 1 + 2 + 3 + 4 + 5 + 6 + 7 +... + 126 + 127;

.................. Two centuries later, Euclidean found that the perfect number is always the product of two numbers. One number is the power of 2, and the other number is the power of 2 minus 1. That is to say: 6 = 2 ^ 1X(2 ^ 2-1 ),

28 = 2 ^ 2X(2 ^ 3-1 ),

496 = 2 ^ 4x(2 ^ 5-1 ),

8128 = 2 ^ 6X(2 ^ 7-1 ),

..................

Affinity

The affinity number is a pair of numbers, and one of them is the sum of the factors of the other. The bidags school has found extraordinary that 220 and 284 are affinity numbers. The factor of 220 is 110, 284, 10, 11, 20, 22, 284, 142, and their sum is 220; on the other hand, the factor of is, and their sum is. This pair of numbers is considered a symbol of friendship. The believers of Christ believe that "affinity" conveys "you have me, I have you" a message of friendship and peace, a symbol of friendship. In Genesis, the twin brother Jacob gave him to scan 220 goats. The number of goats expressed Jacob's love for his brother. As a result, in the West, there is a kind of Customs gradually circulating, that is, one fruit is engraved with 220, another fruit is engraved with 284, eat one by yourself, and the other is given to the person you love to eat. There is also a amulet with the numbers 220 and 284 on it, on the grounds that wearing this amulet can promote love. People still love "affinity" because they haven't been able to find the second "affinity" for a long time ". This aroused the strong interest of many mathematicians until February 1636, the great mathematician ferma announced the second pair of "affinity numbers"-17296 and 18416. Descartes found 3rd pairs and 9363584 and 9437056. Even more surprising, in 1750, the mathematician Euler threw 62 pairs of friends and numbers to the public. The strange thing is that they all ignore a much smaller affinity. In 1866, the 60-year-old Italian nikolo discovered 1184 and 1210 affinity pairs.

Gemdale

Similar to "affinity number", "golden number" means that the sum of the factors of the first number is equal to the second number, and the sum of the factors of the second number is equal to the third number, the sum of the factors of the third number is exactly the first number. 1945330728960,2324196638720, 2615631953920 is a group of "golden number ". Does such a large astronomical number mean that a great effort must be made to establish friendship between three people?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.