CAT 2022 Slot 2 Quant Q20

  • Quantitative Aptitude
  • Algebra › Functions
  • Medium
  • Type in the answer (TITA)
  • CAT_2022_SLOT2_QA_Q20

Question 20

Suppose for all integers x, there are two function f and g such that f(x)+f(x−1)−1=0f(x) + f(x-1) - 1 = 0 and g(x)=x2g(x) = x^2. If f(x2−x)=5f(x^2 - x) = 5, then the value of the sum f(g(5))+g(f(5))f(g(5)) + g(f(5)) is

Type-in-the-answer (TITA) question: no options are given; enter the value.

Answer this question Opens in practice mode, free, no sign-in.

Show answer and solution

Answer:

12

Solution

  • Notice x2−x=x(x−1)x^2 - x = x(x-1) is always even, so f(even)=5f(\text{even}) = 5.

  • From f(x)=1−f(x−1)f(x) = 1 - f(x-1), odd inputs evaluate to f(odd)=1−5=−4f(\text{odd}) = 1 - 5 = -4.

  • Evaluate g(5)=25g(5) = 25 (odd)   ⟹  f(g(5))=f(25)=−4\implies f(g(5)) = f(25) = -4.

  • Evaluate f(5)=−4  ⟹  g(f(5))=g(−4)=(−4)2=16f(5) = -4 \implies g(f(5)) = g(-4) = (-4)^2 = 16.

  • Total sum =−4+16=12= -4 + 16 = 12.

Detailed explanation

Concept: Functional Equations, Recurrence Relations, and Parity

We are given two functions defined on integers:

f(x)+f(x−1)−1=0  ⟹  f(x)=1−f(x−1)f(x) + f(x-1) - 1 = 0 \implies f(x) = 1 - f(x-1)

g(x)=x2g(x) = x^2

f(x2−x)=5f(x^2 - x) = 5 for all integers xx.

For any integer xx, the product x(x−1)=x2−xx(x-1) = x^2 - x is always an even integer (since one of two consecutive integers is always even).

Therefore, for every even integer kk, f(k)=5f(k) = 5.

Using the recurrence f(x)=1−f(x−1)f(x) = 1 - f(x-1):

If xx is an odd integer, then x−1x-1 is even, so:

f(odd)=1−f(even)=1−5=−4f(\text{odd}) = 1 - f(\text{even}) = 1 - 5 = -4

Now evaluate f(g(5))+g(f(5))f(g(5)) + g(f(5)):

Since 55 is an odd integer, f(5)=−4f(5) = -4.

Then g(f(5))=g(−4)=(−4)2=16g(f(5)) = g(-4) = (-4)^2 = 16.

Next, g(5)=52=25g(5) = 5^2 = 25.

Since 2525 is an odd integer, f(g(5))=f(25)=−4f(g(5)) = f(25) = -4.

Sum the two results:

f(g(5))+g(f(5))=−4+16=12f(g(5)) + g(f(5)) = -4 + 16 = 12.

Thus, the required value is 1212.

Practise similar questions

Practice 1 CAT_2022_SLOT2_QA_Q20_SQ01

Suppose for all integers xx, there are two functions ff and gg such that f(x)+f(x−1)−3=0f(x) + f(x-1) - 3 = 0 and g(x)=x2+1g(x) = x^2 + 1. If f(x2−x)=7f(x^2 - x) = 7, then the value of the sum f(g(3))+g(f(3))f(g(3)) + g(f(3)) is

Type-in-the-answer (TITA) question: no options are given; enter the value.

Show answer and solution

Answer:

24

Solution

  • Note x2−x=x(x−1)x^2 - x = x(x-1) is always even, so f(even)=7f(\text{even}) = 7.

  • From f(x)=3−f(x−1)f(x) = 3 - f(x-1), odd integer outputs are f(odd)=3−7=−4f(\text{odd}) = 3 - 7 = -4.

  • Compute g(3)=32+1=10g(3) = 3^2 + 1 = 10 (even), so f(g(3))=f(10)=7f(g(3)) = f(10) = 7.

  • Since 33 is odd, f(3)=−4f(3) = -4, giving g(f(3))=(−4)2+1=17g(f(3)) = (-4)^2 + 1 = 17.

  • The total sum is 7+17=247 + 17 = 24.

Practice 2 CAT_2022_SLOT2_QA_Q20_SQ02

Suppose for all integers xx, there are two functions ff and gg such that f(x)+f(x−1)−4=0f(x) + f(x-1) - 4 = 0 and g(x)=x2−3g(x) = x^2 - 3. If f(x2+x)=9f(x^2 + x) = 9, then the value of the sum f(g(3))+g(f(3))f(g(3)) + g(f(3)) is

Type-in-the-answer (TITA) question: no options are given; enter the value.

Show answer and solution

Answer:

31

Solution

  • Since x2+x=x(x+1)x^2 + x = x(x+1) is always even, f(even)=9f(\text{even}) = 9.

  • Recurrence gives f(odd)=4−9=−5f(\text{odd}) = 4 - 9 = -5.

  • Evaluate g(3)=32−3=6g(3) = 3^2 - 3 = 6 (even), so f(g(3))=f(6)=9f(g(3)) = f(6) = 9.

  • For odd 33, f(3)=−5  ⟹  g(f(3))=(−5)2−3=22f(3) = -5 \implies g(f(3)) = (-5)^2 - 3 = 22.

  • Sum evaluates to 9+22=319 + 22 = 31.

Functions questions from other CAT papers

  1. CAT 2025 Slot 1 Quant Q3
    Let 3 x 6 and [x^2] = [x]^2 , where [x] is the greatest integer not exceeding x . If set S represents all…
  2. CAT 2025 Slot 2 Quant Q21
    Let f(x) = x(2x-1) and g(x) = x(x-1) . Then, the domain of the function h(x) = f(g(x)) + g(f(x)) is all real…
  3. CAT 2025 Slot 3 Quant Q3
    For real values of x , the range of the function f(x)=2x-3/2x^2+4x-6 is
  4. CAT 2024 Slot 1 Quant Q12
    Consider two sets A = \2, 3, 5, 7, 11, 13\ and B = \1, 8, 27\ . Let f be a function from A to B such that…
  5. CAT 2024 Slot 2 Quant Q9
    A function f maps the set of natural numbers to whole numbers, such that f (xy) = f (x) f (y) + f (x) + f…

Practise this question with timing, notes and your mistake notebook.

Practise in PrepSoc