GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 4(a)

Injectivity of an integer pairing map

Discrete Mathematics · Sets, Relations & Functions · Full GATE CSE 2001 paper

GATE 2001, Q4(a) Descriptive
Report issue

Sets, Relations & Functions

Question 4(a), GATE 2001: N={0,1,2,…}; h:N×N→N is h(a,b)=(2a+1)2^b−1.

Task: Prove that h is injective.
Question 4(a), GATE 2001: N={0,1,2,…}; h:N×N→N is h(a,b)=(2a+1)2^b−1.

Task: Prove that h is injective.
Tap to enlarge
Shared context

N={0,1,2,…}; h:N×N→N is h(a,b)=(2a+1)2^b−1.

Answer & solution

Answer: h is injective. (no official key was published)

1. Assume h(a,b)=h(c,d). Adding 1 gives (2a+1)2b=(2c+1)2d, where both parenthesized factors are odd positive integers.

2. If b<d, divide by 2b. The left side is odd and the right side, (2c+1)2d−b, is even, a contradiction. The symmetric argument rules out d<b.

3. Thus b=d. Cancelling 2b gives 2a+1=2c+1, so a=c.

4. Equality of images has forced equality of both coordinates, exactly the definition of injectivity. The argument also covers zero coordinates, since 20=1 and 2·0+1 is odd.

Original paper, page 7