Skip to main content
Back to Sets, Relations & Functions
JEE Main 2018
Sets, Relations & Functions
Functions
Medium

Question

Let g : N \to N be defined as g(3n + 1) = 3n + 2, g(3n + 2) = 3n + 3, g(3n + 3) = 3n + 1, for all n \ge 0. Then which of the following statements is true?

Options

Solution

Key Concepts and Formulas

  • Function Composition: For functions f:ABf: A \to B and g:BCg: B \to C, the composition fg:ACf \circ g: A \to C is defined by (fg)(x)=f(g(x))(f \circ g)(x) = f(g(x)) for all xAx \in A.
  • One-to-One (Injective) Function: A function ff is one-to-one if distinct elements in the domain map to distinct elements in the codomain, i.e., if f(x1)=f(x2)f(x_1) = f(x_2), then x1=x2x_1 = x_2.
  • Onto (Surjective) Function: A function ff is onto if every element in the codomain is the image of at least one element in the domain, i.e., for every yy in the codomain, there exists an xx in the domain such that f(x)=yf(x) = y.
  • Fixed Point of a Function: An element xx in the domain of a function ff is a fixed point if f(x)=xf(x) = x. In function composition, if fg=ff \circ g = f, then for any xx in the domain of gg, f(g(x))=f(x)f(g(x)) = f(x). This means that the elements in the image of gg are fixed points of ff.

Step-by-Step Solution

Step 1: Analyze the structure and properties of the function gg. The function g:NNg: \mathbb{N} \to \mathbb{N} is defined for n0n \ge 0 as: g(3n+1)=3n+2g(3n + 1) = 3n + 2 g(3n+2)=3n+3g(3n + 2) = 3n + 3 g(3n+3)=3n+1g(3n + 3) = 3n + 1

Let's examine the behavior of gg on elements of the form 3n+1,3n+2,3n+33n+1, 3n+2, 3n+3. These are consecutive integers. The function gg essentially cycles these three types of numbers: 3n+1g3n+2g3n+3g3n+13n+1 \xrightarrow{g} 3n+2 \xrightarrow{g} 3n+3 \xrightarrow{g} 3n+1

This means that gg partitions the natural numbers into disjoint sets of three elements, where each set is permuted cyclically by gg. For example: If n=0n=0: g(1)=2g(1) = 2, g(2)=3g(2) = 3, g(3)=1g(3) = 1. So {1,2,3}\{1, 2, 3\} is mapped as 12311 \to 2 \to 3 \to 1. If n=1n=1: g(4)=5g(4) = 5, g(5)=6g(5) = 6, g(6)=4g(6) = 4. So {4,5,6}\{4, 5, 6\} is mapped as 45644 \to 5 \to 6 \to 4. In general, for any integer k1k \ge 1, the set {3k2,3k1,3k}\{3k-2, 3k-1, 3k\} is mapped cyclically by gg.

Let's also check ggg \circ g and gggg \circ g \circ g: g(g(3n+1))=g(3n+2)=3n+3g(g(3n+1)) = g(3n+2) = 3n+3 g(g(3n+2))=g(3n+3)=3n+1g(g(3n+2)) = g(3n+3) = 3n+1 g(g(3n+3))=g(3n+1)=3n+2g(g(3n+3)) = g(3n+1) = 3n+2

g(g(g(3n+1)))=g(3n+3)=3n+1g(g(g(3n+1))) = g(3n+3) = 3n+1 g(g(g(3n+2)))=g(3n+1)=3n+2g(g(g(3n+2))) = g(3n+1) = 3n+2 g(g(g(3n+3)))=g(3n+2)=3n+3g(g(g(3n+3))) = g(3n+2) = 3n+3

Thus, g(g(g(x)))=xg(g(g(x))) = x for all xNx \in \mathbb{N}. This means g3g^3 is the identity function on N\mathbb{N}.

Step 2: Evaluate Option (C): ggg=gg \circ g \circ g = g. From Step 1, we found that g(g(g(x)))=xg(g(g(x))) = x for all xNx \in \mathbb{N}. The identity function on N\mathbb{N} is id(x)=xid(x) = x. So, ggg=idg \circ g \circ g = id. The question is whether id=gid = g. This would imply x=g(x)x = g(x) for all xNx \in \mathbb{N}. However, we know that g(1)=21g(1) = 2 \ne 1, g(2)=32g(2) = 3 \ne 2, g(3)=13g(3) = 1 \ne 3. Therefore, ggggg \circ g \circ g \ne g. Option (C) is false.

Step 3: Evaluate Option (D): There exists a function f:NNf: \mathbb{N} \to \mathbb{N} such that gf=fg \circ f = f. The condition gf=fg \circ f = f means that for every xNx \in \mathbb{N}, g(f(x))=f(x)g(f(x)) = f(x). Let y=f(x)y = f(x). Then the condition becomes g(y)=yg(y) = y. This implies that every element in the image of ff must be a fixed point of gg. However, as we observed in Step 1, gg does not have any fixed points. For any xNx \in \mathbb{N}, g(x)xg(x) \ne x. If such a function ff existed, then for any xx, f(x)f(x) would have to be a fixed point of gg. Since there are no fixed points for gg, the image of ff must be empty. But the codomain of ff is N\mathbb{N}, which is not empty. Therefore, no such function ff can exist. Option (D) is false.

Step 4: Evaluate Option (B): There exists a one-one function f:NNf: \mathbb{N} \to \mathbb{N} such that gf=fg \circ f = f. From Step 3, we know that for gf=fg \circ f = f to hold, every element in the image of ff must be a fixed point of gg. Since gg has no fixed points, the image of ff must be empty. However, the codomain of ff is N\mathbb{N}, which is non-empty. Thus, such a function ff cannot exist. This applies whether ff is one-one or not. Therefore, Option (B) is false.

Step 5: Evaluate Option (A): There exists an onto function f:NNf: \mathbb{N} \to \mathbb{N} such that gf=fg \circ f = f. The condition gf=fg \circ f = f means g(f(x))=f(x)g(f(x)) = f(x) for all xNx \in \mathbb{N}. Let y=f(x)y = f(x). Then g(y)=yg(y) = y. This implies that every element in the image of ff, denoted as Im(f)Im(f), must be a fixed point of gg. As we've established, gg has no fixed points. This seems to lead to a contradiction. Let's re-examine the problem statement and the options. The question asks if there exists such a function.

Consider the structure of gg again. gg permutes elements in cycles of length 3. g(3n+1)=3n+2g(3n+1) = 3n+2 g(3n+2)=3n+3g(3n+2) = 3n+3 g(3n+3)=3n+1g(3n+3) = 3n+1

If gf=fg \circ f = f, then g(f(x))=f(x)g(f(x)) = f(x) for all xx. Let y=f(x)y = f(x). Then g(y)=yg(y) = y. This means that the image of ff must be a subset of the fixed points of gg. Since gg has no fixed points, the image of ff must be the empty set. However, f:NNf: \mathbb{N} \to \mathbb{N}, and N\mathbb{N} is not empty, so Im(f)Im(f) cannot be empty.

There seems to be a misunderstanding of the question or the properties. Let's carefully consider the implications of gf=fg \circ f = f. This means that for any xx, f(x)f(x) is an element such that gg leaves it unchanged. That is, f(x)f(x) must be a fixed point of gg. Since gg has no fixed points, the set of fixed points of gg is empty. So, for any xx, f(x)f(x) must belong to the empty set. This is impossible if ff maps to N\mathbb{N}.

Let's re-read the question and options very carefully. Perhaps there's a nuance in the definition of N\mathbb{N} or the context. The problem states N={1,2,3,}\mathbb{N} = \{1, 2, 3, \dots\}. The definition of gg is for n0n \ge 0. For n=0n=0: g(1)=2,g(2)=3,g(3)=1g(1)=2, g(2)=3, g(3)=1. For n=1n=1: g(4)=5,g(5)=6,g(6)=4g(4)=5, g(5)=6, g(6)=4. And so on.

Let's reconsider Option (A): There exists an onto function f:NNf : \mathbb{N} \to \mathbb{N} such that fg=ff \circ g = f. The condition is f(g(x))=f(x)f(g(x)) = f(x) for all xNx \in \mathbb{N}. This means that ff is constant on the cycles of gg. For any n0n \ge 0: f(g(3n+1))=f(3n+1)f(g(3n+1)) = f(3n+1) f(3n+2)=f(3n+1)f(3n+2) = f(3n+1)

f(g(3n+2))=f(3n+2)f(g(3n+2)) = f(3n+2) f(3n+3)=f(3n+2)f(3n+3) = f(3n+2)

f(g(3n+3))=f(3n+3)f(g(3n+3)) = f(3n+3) f(3n+1)=f(3n+3)f(3n+1) = f(3n+3)

Combining these, we get f(3n+1)=f(3n+2)=f(3n+3)f(3n+1) = f(3n+2) = f(3n+3) for all n0n \ge 0. This means that ff must map all elements of the form 3n+1,3n+2,3n+33n+1, 3n+2, 3n+3 to the same value. In other words, ff must be constant on sets of the form {3n+1,3n+2,3n+3}\{3n+1, 3n+2, 3n+3\}.

Let f(3n+1)=f(3n+2)=f(3n+3)=cnf(3n+1) = f(3n+2) = f(3n+3) = c_n, where cnc_n is some value in N\mathbb{N}. So, ff is defined by specifying its value on each set of three consecutive integers. We need to check if there exists an onto function f:NNf: \mathbb{N} \to \mathbb{N} satisfying this property.

Let's define ff such that it is onto. For n=0n=0, we have the set {1,2,3}\{1, 2, 3\}. Let f(1)=f(2)=f(3)=1f(1) = f(2) = f(3) = 1. For n=1n=1, we have the set {4,5,6}\{4, 5, 6\}. Let f(4)=f(5)=f(6)=2f(4) = f(5) = f(6) = 2. For n=2n=2, we have the set {7,8,9}\{7, 8, 9\}. Let f(7)=f(8)=f(9)=3f(7) = f(8) = f(9) = 3. In general, we can define f(3n+1)=f(3n+2)=f(3n+3)=n+1f(3n+1) = f(3n+2) = f(3n+3) = n+1 for n0n \ge 0.

Let's verify if this function ff is onto. The image of ff is {f(1),f(2),f(3),f(4),f(5),f(6),}\{f(1), f(2), f(3), f(4), f(5), f(6), \dots\}. Using our definition f(3n+1)=f(3n+2)=f(3n+3)=n+1f(3n+1) = f(3n+2) = f(3n+3) = n+1: f(1)=1,f(2)=1,f(3)=1f(1)=1, f(2)=1, f(3)=1 (for n=0n=0) f(4)=2,f(5)=2,f(6)=2f(4)=2, f(5)=2, f(6)=2 (for n=1n=1) f(7)=3,f(8)=3,f(9)=3f(7)=3, f(8)=3, f(9)=3 (for n=2n=2) ... The image of ff is {1,2,3,4,}=N\{1, 2, 3, 4, \dots\} = \mathbb{N}. So, this function ff is indeed onto.

Now let's check if this ff satisfies fg=ff \circ g = f. We need to check f(g(x))=f(x)f(g(x)) = f(x) for all xNx \in \mathbb{N}.

Case 1: x=3n+1x = 3n+1. f(g(3n+1))=f(3n+2)f(g(3n+1)) = f(3n+2). According to our definition, f(3n+2)=n+1f(3n+2) = n+1. And f(3n+1)=n+1f(3n+1) = n+1. So, f(g(3n+1))=n+1=f(3n+1)f(g(3n+1)) = n+1 = f(3n+1). This holds.

Case 2: x=3n+2x = 3n+2. f(g(3n+2))=f(3n+3)f(g(3n+2)) = f(3n+3). According to our definition, f(3n+3)=n+1f(3n+3) = n+1. And f(3n+2)=n+1f(3n+2) = n+1. So, f(g(3n+2))=n+1=f(3n+2)f(g(3n+2)) = n+1 = f(3n+2). This holds.

Case 3: x=3n+3x = 3n+3. f(g(3n+3))=f(3n+1)f(g(3n+3)) = f(3n+1). According to our definition, f(3n+1)=n+1f(3n+1) = n+1. And f(3n+3)=n+1f(3n+3) = n+1. So, f(g(3n+3))=n+1=f(3n+3)f(g(3n+3)) = n+1 = f(3n+3). This holds.

Since f(g(x))=f(x)f(g(x)) = f(x) for all xNx \in \mathbb{N}, the condition fg=ff \circ g = f is satisfied. We have constructed an onto function f:NNf: \mathbb{N} \to \mathbb{N} such that fg=ff \circ g = f. Therefore, Option (A) is true.

Let's quickly re-examine why other options are incorrect. Option (B): There exists a one-one function f:NNf : \mathbb{N} \to \mathbb{N} such that fg=ff \circ g = f. We found that fg=ff \circ g = f implies f(3n+1)=f(3n+2)=f(3n+3)f(3n+1) = f(3n+2) = f(3n+3) for all n0n \ge 0. If ff were one-one, then 3n+1=3n+23n+1 = 3n+2 would imply f(3n+1)=f(3n+2)f(3n+1) = f(3n+2), which is true. However, if ff is one-one, then distinct inputs must map to distinct outputs. But f(3n+1)=f(3n+2)f(3n+1) = f(3n+2). Since 3n+13n+23n+1 \ne 3n+2, for ff to be one-one, this equality cannot hold. The only way f(3n+1)=f(3n+2)f(3n+1) = f(3n+2) can hold for a one-one function is if there are no such distinct inputs, which is not the case for N\mathbb{N}. So, a one-one function ff cannot satisfy f(3n+1)=f(3n+2)f(3n+1) = f(3n+2). Thus, no one-one function exists such that fg=ff \circ g = f. Option (B) is false.

Option (C): ggg=gg \circ g \circ g = g. We showed ggg=idg \circ g \circ g = id. Since gg is not the identity function, this is false.

Option (D): There exists a function f:NNf : \mathbb{N} \to \mathbb{N} such that gf=fg \circ f = f. This means g(f(x))=f(x)g(f(x)) = f(x). Let y=f(x)y = f(x). Then g(y)=yg(y) = y. This implies that every element in the image of ff must be a fixed point of gg. As shown earlier, gg has no fixed points. So, the image of ff must be a subset of the empty set, which means Im(f)Im(f) is empty. However, f:NNf: \mathbb{N} \to \mathbb{N}, so Im(f)Im(f) must be a non-empty subset of N\mathbb{N}. This is a contradiction. Therefore, no such function ff exists. Option (D) is false.

The reasoning for Option (A) is sound and leads to the correct answer. The key was to correctly interpret fg=ff \circ g = f as ff being constant on the cycles of gg, and then to construct an onto function with this property.

Common Mistakes & Tips

  • Confusing fgf \circ g with gfg \circ f: Pay close attention to the order of composition. The condition fg=ff \circ g = f means f(g(x))=f(x)f(g(x)) = f(x), while gf=fg \circ f = f means g(f(x))=f(x)g(f(x)) = f(x).
  • Misinterpreting "exists": When a question asks "there exists", you only need to find one example of such a function. If you can construct one, the statement is true.
  • Assuming Properties of ff: Do not assume ff is one-one or onto unless stated. Check each property separately for each option.
  • Fixed Points of gg: Carefully analyze if gg has any fixed points. The existence or non-existence of fixed points is crucial for conditions like gf=fg \circ f = f.
  • Structure of gg: Recognizing that gg partitions N\mathbb{N} into disjoint 3-cycles is key to understanding the implications for composition.

Summary

The problem requires analyzing the behavior of the function gg and then testing the properties of potential functions ff in relation to gg. We found that gg acts as a 3-cycle permutation on sets of three consecutive integers. Option (C) was ruled out because g3g^3 is the identity, not gg. Option (D) and (B) were ruled out because the condition gf=fg \circ f = f requires f(x)f(x) to be a fixed point of gg, and gg has no fixed points. Option (A) states the existence of an onto function ff such that fg=ff \circ g = f. This condition implies that ff must be constant on the 3-cycles of gg. We successfully constructed such a function by defining f(3n+1)=f(3n+2)=f(3n+3)=n+1f(3n+1) = f(3n+2) = f(3n+3) = n+1, which is onto and satisfies fg=ff \circ g = f.

The final answer is A\boxed{A}.

Practice More Sets, Relations & Functions Questions

View All Questions