Functions

This topic has expert replies
Master | Next Rank: 500 Posts
Posts: 487
Joined: Fri Mar 27, 2009 5:49 am
Thanked: 36 times

Functions

by dtweah » Fri May 08, 2009 5:39 am
Let f(x,y) be defined by i. f(x,0)=x and ii. f(x, y+1)= f(f(x,y),y). Which of the following is the largest?

A.f(10, 15)

B. f(11, 14)

C. f(12, 13)

D. f(13, 12)

E. f(14,11)

Junior | Next Rank: 30 Posts
Posts: 18
Joined: Tue May 05, 2009 11:03 am

by vitaly » Fri May 08, 2009 7:51 pm
f(10, 15) = f(25, 14), of course it's the largest. Answer is A.

User avatar
Legendary Member
Posts: 682
Joined: Fri Jan 16, 2009 2:40 am
Thanked: 32 times
Followed by:1 members

by Vemuri » Fri May 08, 2009 11:17 pm
vitaly wrote:f(10, 15) = f(25, 14), of course it's the largest. Answer is A.
The second condition is: f(x,y+1) = f((x,y),y). How did you derive f(25,10)?

User avatar
Master | Next Rank: 500 Posts
Posts: 319
Joined: Wed Feb 04, 2009 10:32 am
Location: Delhi
Thanked: 84 times
Followed by:9 members

by sureshbala » Fri May 08, 2009 11:58 pm
The answer has to be E and not A.

With some serious observation you can find that f(x, y) = x i.e. that output of the function is independent of y.

We have f(x, 0) = x and f(x, y+1) = f(f(x, y), y)

From the second definition we have,

f(x, 1) = f(f(x, 0), 0) = f(x, 0) = x.

Hence f(x, 1) = x.

F(x, 2) = f(f(x, 1), 1) = f(x, 1) = x

Hence f(x, 2) = x.

So from here you can conclude that f(x, y) = x.

Hence the output of the function with largest value of x will be the largest.

So, the option E.

User avatar
Legendary Member
Posts: 682
Joined: Fri Jan 16, 2009 2:40 am
Thanked: 32 times
Followed by:1 members

by Vemuri » Sat May 09, 2009 1:45 am
sureshbala wrote:The answer has to be E and not A.

With some serious observation you can find that f(x, y) = x i.e. that output of the function is independent of y.

We have f(x, 0) = x and f(x, y+1) = f(f(x, y), y)

From the second definition we have,

f(x, 1) = f(f(x, 0), 0) = f(x, 0) = x.

Hence f(x, 1) = x.

F(x, 2) = f(f(x, 1), 1) = f(x, 1) = x

Hence f(x, 2) = x.

So from here you can conclude that f(x, y) = x.

Hence the output of the function with largest value of x will be the largest.

So, the option E.
Hail Bala Hail !!! That was very smart of you. :)