- #1
Werg22
- 1,431
- 1
Suppose we have a row of n squares. A device is made such as it prints on the squares. This device can print every square individually, or "copy" m squares and "paste" them on the rest of the row. For example, the device could print first 5 squares of a 80 squares row, individually, then take these 5 squares and paste them 15 times on the remaining 75 squares. This gives in total of 5 + 15 = 20 printings. Now, suppose we have any natural number of squares in the row. If we chose to print m squares before pasting them on the rest of the row, the number of printings k is
[tex] k = m + \left \lceil \frac{n - m}{m} \right \rceil [/tex]
Now since this is a discrete function, is there a way to analytically determine which value m will give the least number of printings?
[tex] k = m + \left \lceil \frac{n - m}{m} \right \rceil [/tex]
Now since this is a discrete function, is there a way to analytically determine which value m will give the least number of printings?
Last edited: