A function ' f ' from integers to integers is defined as follows: f(x) = n+3 if n is odd and n/2 if n is even. Suppose k is odd and f(f(f(k))) = 27. What is the sum of the digits of k?
Option (b)
Since k is odd then f(f(f(k))) =27
⇒ f(f(k+3)) = 27------------(1) since k is odd , k+3 will be even.
Hence, expanding (1) we get, f(k+32)=27--------------(2)
Here k+32 can either be even or odd
Case 1:
Let k+32 is even
Then (2) reduces to k+34=27⇒k=105 here sum of digits is 6
Case 2:
Let k+32 is odd
Then (2) reduces to k+32+3=27⇒k=45
Substituting in k+32 it comes to be 24 which is not odd hence there is a contradiction hence
k = 105 here sum of digits is 6 is the only solution.
Hence, choice (b) is the correct answer.