wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

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?


A
3
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
6
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
9
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
8
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B 6

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=27k=105 here sum of digits is 6

Case 2:
Let k+32 is odd

Then (2) reduces to k+32+3=27k=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.


flag
Suggest Corrections
thumbs-up
7
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Functions
QUANTITATIVE APTITUDE
Watch in App
Join BYJU'S Learning Program
CrossIcon