if is even
if is odd
Let be the set of distinct values that takes. The maximum possible size of is ___________.
View worked solution
Answer: 2
To find the maximum possible size of the range , we analyze the given properties of the function :
- Even rule: when is even. This implies that the value of is determined entirely by the odd part of . That is, if where is odd, then .
- Odd rule: when is odd. Since is even, applying the even rule gives:
Let us trace this relation for odd integers :
- For : . Thus, .
- For : .
- For : .
- For : .
- For : .
- For : .
By induction, we can classify all positive integers into two equivalence classes based on whether they are multiples of :
- Not a multiple of 5: All such integers eventually map to .
- Multiple of 5: All such integers eventually map to .
Thus, the range of can contain at most distinct values: . We can construct a valid function where (for example, if , and otherwise). Therefore, the maximum possible size of is .
Free practice · Your answers on this page are not saved.
