Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 19 Online
OpenStudy (anonymous):

Is there any mathematical exact prove online for pset2 problem 2?

OpenStudy (anonymous):

I am taking a wild guess here, but I think that it's due to the property of divisibility of other solutions, i.e., pages 24-25 from http://www-groups.dcs.st-and.ac.uk/~martyn/teaching/1003/1003linearDiophantine.pdf , I will try to find a mathematical proof, but I think this gives an intuition of why it works, and ideas to work on the proof.

OpenStudy (anonymous):

I think that you will be able to understand why this works by considering that there are 6 (equal to the smallest order size) fulfillable orders in a row. Maybe you can see how for any larger integer it could by written as one of these 6 values plus some even multiple of 6. More formally, you would like to show that any integer k > x+5 can be written as x + offset + 6 * j, where 0<= offset <=5. So, to whatever solution you had for the number between x and x+5 just add j orders of size 6. Note, that in the general case, the smallest order need not contain 6 pieces, but that is the number of consecutive solutions you need to be able to solve for all larger values. I hope that helps.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!