GateAI
Sets, Relations, Lattices and Groups

GATE CSE 2016 Set 1 · Q28

NAT2 marksHard

Time

A function f:N+→N+f : \text{N}^+ \to \text{N}^+, defined on the set of positive integers N+\text{N}^+, satisfies the following properties: f(n)=f(n/2)if n is evenf(n) = f(n/2) \quad \text{if } n \text{ is even} f(n)=f(n+5)if n is oddf(n) = f(n+5) \quad \text{if } n \text{ 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 ________ .

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 2 (±0)

Sets, Relations, Lattices and Groups

We can analyze the equivalence classes induced on N+\mathbb{N}^+ by the transitions:

  1. If nn is even, n→n/2n \to n/2.

  2. If nn is odd, n→n+5→(n+5)/2n \to n+5 \to (n+5)/2.

Let us analyze these transformations modulo 5:

  • If nn is a multiple of 5 (n≡0(mod5)n \equiv 0 \pmod 5):

    • If nn is even, n/2n/2 is also a multiple of 5.

    • If nn is odd, (n+5)/2(n+5)/2 is also a multiple of 5.

    All positive multiples of 5 eventually reduce to the cycle 5→10→55 \to 10 \to 5, meaning f(n)=f(5)f(n) = f(5) for every nn divisible by 5.

  • If nn is not a multiple of 5 ($n

ot\equiv 0 \pmod 5$): - Tracing small non-multiples of 5:

1→6→3→8→4→2→11 \to 6 \to 3 \to 8 \to 4 \to 2 \to 1

This forms a single cycle containing {1,2,3,4,6,8}\{1, 2, 3, 4, 6, 8\}. - Any other non-multiple of 5 will eventually transition into this cycle (e.g., 7→12→67 \to 12 \to 6, 9→14→7→69 \to 14 \to 7 \to 6, 11→16→811 \to 16 \to 8, etc.).

Thus, the domain N+\mathbb{N}^+ is partitioned into exactly two connected components:

  1. Numbers that are multiples of 5, which all map to the same value f(5)f(5).

  2. Numbers that are not multiples of 5, which all map to the same value f(1)f(1).

Hence, ff can take at most 2 distinct values, so the maximum size of RR is 2.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Sets, Relations, Lattices and Groups previous year question is Q28 of the GATE CSE 2016 Set 1 paper. Find more GATE CSE PYQs on Sets, Relations, Lattices and Groups in Engineering Mathematics, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Sets, Relations, Lattices and Groups PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Sets, Relations, Lattices and Groups in GATE CSE

Sets, Relations, Lattices and Groups has 11 GATE CSE PYQs across 9 papers from 2014 to 2025. 2 of them are 2-mark NAT questions like this one, and it is the only one in GATE CSE 2016 Set 1.

How GATE tests Sets, Relations, Lattices and Groups

More from GATE CSE 2016 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2016 Set 1 · Q28 · NAT

A function f : N+ → N+, defined on the set of positive integers N+, 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 …

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.