2600.12 – Awkward Postage Function


If the postal rate for first class letters is 49 cents for the first ounce or portion of an ounce, and 21 cents for every ounce or portion of an ounce after the first, then find the cost of sending a letter weighing ww ounces, where ww is some positive real number.

Use w\lfloor w \rfloor to stand for the greatest integer less than ww, as usual. Do not use the ceiling function, w\lceil w \rceil, to round up.


Solution

So the problem calls for an expression that rounds up, but we’re only given a function that rounds down.

Here’s one way to do it: 21(www1)+49=21(www)+2821\left(\lfloor w \rfloor - \lfloor \lfloor w \rfloor - w \rfloor - 1 \right) + 49 = 21\left(\lfloor w \rfloor - \lfloor \lfloor w \rfloor - w \rfloor \right) + 28.