ct1 Sol PDF
ct1 Sol PDF
ct1 Sol PDF
if n = 0,
0 if n = 1,
n if n > 2.
(c) If f (n+1)f (n) = 0 for some n, then f is not injective. So assume that f (n+1)f (n) {1, 1} for
all n. I now claim that f (n + 1) f (n) = 1 for all n, which proves that f is strictly monotonic increasing.
For proving the claim assume that there exists an n, call it N , for which f (N + 1) f (N ) = 1. Let
k := f (N ), so that f (N + 1) = k 1. Now f (N + 2) = f (N + 1) 1. Since f is given to be injective,
this forces f (N + 2) = (k 1) 1 = k 2. Similarly, we have f (N + 3) = k 3, f (N + 4) = k 4 and
so on. In particular, f (N + k 1) = 1 and f (N + k) = 0. Since f (N + k + 1) must be non-negative and
differ from f (N + k) by (at most) 1, we must then have f (N + k + 1) = 1 = f (N + k 1), a contradiction
to the injectivity of f .
Dr. Abhijit Das, Dept. of Computer Science & Engineering, IIT Kharagpur, India