NAT · 2 marks · Discrete Mathematics

GATE CS 2016 CS-1 — Q28

A function f:N+→N+f : \mathbb{N}^+ \to \mathbb{N}^+, defined on the set of positive integers N+\mathbb{N}^+, satisfies the following properties:
f(n)=f(n/2)f(n) = f(n/2) if nn is even
f(n)=f(n+5)f(n) = f(n+5) if nn is odd
Let R={i∣∃j:f(j)=i}R = \{i \mid \exists j : f(j) = i\} be the set of distinct values that ff takes. The maximum possible size of RR is ________.