Problem:
Let be a function such that, for all positive integers and ,
Compute .
Problem:
Let be a function such that, for all positive integers and ,
Compute .
Solution:
Note that is the remainder of when divided by . If then is exactly . If instead , our "algorithm" doubles our by times until we have . At this point, we subtract from and iterate back down until we get and for some positive integer . This expression is equivalent to , or .
Thus, we want to compute . This is equal to and . By CRT, this implies that the answer is 203.