The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+19 votes
1.7k views
If p, q, r, s are distinct integers such that:

$f (p, q, r, s) = \text{ max } (p, q, r, s)$

$g (p, q, r, s) = \text{ min } (p, q, r, s)$

$h (p, q, r, s) = \text {remainder of } \frac{(p \times q)} {(r \times s)} \text{ if } (p \times q) > (r \times s)$
$\text{ or remainder of } \frac {(r \times s)}{(p \times q)} \text{ if } (r \times s) > (p \times q)$

Also a function $fgh (p, q, r, s) = f(p, q, r, s) \times g(p, q, r, s) \times h (p, q, r, s)$
Also the same operations are valid with two variable functions of the form $f(p, q)$
What is the value of $fg \left(h \left(2, 5, 7, 3\right), 4, 6, 8\right)$?
asked in Set Theory & Algebra by Veteran (97.7k points)
edited by | 1.7k views
+2
answer is 8
+2
Answer: 8
+2
Please explain how.
+2
Please explain how.
+5
whats the point of just posting the answer?

1 Answer

+27 votes
Best answer

It is given that $h(p, q, r, s) = $ remainder of $\frac{(p \times q)}{(r \times s)}$ if $(p \times q) > (r \times s)$ or remainder of $\frac{(r \times s)}{(p \times q)}$ if $(r \times s) > (p \times q)$.


$h(2,5,7,3) = $ remainder of $\frac{(7 \times 3)} {(2 \times 5)}, \;\; \because (7 \times 3) > (2 \times 5)$

Thus, $h(2,5,7,3) = 1$


Again, it is given that $fg(p, q, r, s) = f(p, q, r, s) \times g(p, q, r, s)$

Also, $f(p, q, r, s) = \max(p, q, r, s)$, and $g(p, q, r, s) = \min(p, q, r, s)$

So we have:

$fg(1,4,6,8) = 8 \times 1, \;\; \because \max(1,4,6,8) = 8 \;\&\; \min(1,4,6,8) = 1$

Thus, $fg(1,4,6,8) = 8$


Answer: $8$

answered by Active (1.6k points)
edited by
+12

@Arjun Sir: I don't see how the following statement follows from the question:

"Again, it is given that fg\left ( p,q,r,s \right )=f\left ( p,q,r,s \right )\times g\left ( p,q,r,s \right )"

IMO, It is given about $fgh(p,q,r,s)$. The definition hasn't been extended to $fg(p,q,r,s)$.


Also, I am confused about the following statement from the question:

Also the same operations are valid with two variable functions of the form f(p,q)

+5
@Pragy I agree with you. That extension can be assumed. Formally speaking it can't be assumed AFAIK.
+3
LOL, the typos in your reply are confusing :P

Do you mean that the extension can't be assumed?

Do you think GATE will award marks to all for this question?
+5
@Pragy I believe that @Arjun meant that the particular extension can't be assumed. For beyond this, let's wait till March 12, 2015.
+7
It was not a typo :P
I meant it can be assumed if we are not strictly formal.

GATE should give Marks to All. But it doesn't always happen.
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,814 questions
54,521 answers
188,388 comments
75,423 users