GATE CS 2016, set 1 · Question 38 · Engineering Mathematics · Numerical answer (NAT) · 2 marks · no negative marks

A function f : ℕ⁺ → ℕ⁺, defined on the set of positive integers ℕ⁺, satisfies the following properties:
f(n) = f(n/2) if n is even ; f(n) = f(n+5) if n is odd
Let R = {i | ∃ j : f(j) = i} be the set of distinct values that f takes. The maximum possible size of R is ______.

Answer

Answer 2

Answer from the official GATE CS 2016 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes