Split gold bars

Source: Internet
Author: User

If you ask a worker to work for you for seven days, the reward for the worker is a golden stripe. The golden bars are evenly divided into seven connected segments. You must give them a golden bar at the end of each day. If you only make two breaks, how do you pay for your workers?
 
Solution:
The essence of this question is digital representation. Two numbers, one or two, can represent three numbers: 1-3. The numbers 1, 2, and 4 can represent seven numbers (I .e., 1, 2, 1 + 2, 4 + 1, 4 + 2, 4 + 2, 2 + 1 ). The numbers 1, 2, 4, and 8 can represent 1-15 Fifteen numbers. And so on.
Reference answer:
Divide the gold bars into three portions: 1/7, 2/7, and 4/7. In this way, 1st days I can give him 1/7; 2nd days I will give him 2/7, let him retrieve me 1/7; 3rd days I will give him 1/7, plus the original 2/7 is 3/7; 4th I gave him the 4/7 yuan and asked him to retrieve the two 1/7 and 2/7 yuan gold bars; 5th days, and 1/7 days; 6th days and 2nd days; the 7th that was retrieved from him in 1/7 days.

Questions extended:

1. If you ask a worker to work for you for 15 days, the reward for the worker is a golden stripe. Gold bars are evenly divided into 15 connected segments. You must give them a golden bar at the end of each day. How do you pay your workers if you just make three breaks? (1/15, 2/15, 4/15, 8/15) 2. If you ask a worker to work for you for 31 days, the reward for the worker is a golden stripe. Gold bars are evenly divided into 31 connected segments. You must give them a golden bar at the end of each day. How do you pay your workers if you just make four breaks? (1/31, 2/31, 4/31, 8/31, 16/31) 3. If you ask a worker to work for you (2 ^ n)-1 day, the return to the worker is a golden stripe. Gold bars are evenly divided into 2 ^ n-1 segments. You must give them a golden bars at the end of each day, how do you pay for your workers? (1/(2 ^ n)-1), 2/(2 ^ n)-1), 4/(2 ^ n) -1 ),...) 4. why is RMB only the nominal value of 1, 2, 5, and 10? (Easy to find change. The ideal state should be 1, 2, 4, and 8. In real life, 10 hexadecimal notation is often used, SO 4 and 8 are changed to 5 and 10. As long as 2 has two digits, 1, 2, 2, 5, and 10 can represent 1-20 .)


From http://www.blogjava.net/kj2ff/archive/2006/09/19/70474.html

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.