Question
If are distinct integers such that:
Also a function .
Also the same operations are valid with two variable functions of the form .
What is the value of ?
Official answer and solution
- Official answer
- 8
- From
- Official GATE 2015 answer key
Solution
Evaluate the innermost custom operation first, then evaluate the composite function .
Step 1: Compute .
Here, .
Since , the rule specifies taking the remainder of :
Thus, .
Step 2: Evaluate .
By the problem's definition, the composite function is the product of , , and . Similarly, is the product of and :
For the input tuple :
Step 3: Multiply the two results:
8
Computing quotient instead of remainder in function , which would give instead of .
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2015 Computer Science and Information Technology (CS) Session 2
- Question
- 9 of 65, printed as GA Q.9
- Section
- General Aptitude
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.