CAT 1999QA Question 12

MiscellaneousEasy

For two positive integers a and b define the function h(a,b) as the greatest common factor (G.C.F) of a, b. Let A be a set of n positive integers. G(A), the G.C.F of the elements of set A is computed by repeatedly using the function h. The minimum number of times h is required to be used to compute G is

Answer & solution

  • A

    12n

  • (n - 1)

  • C

    n

  • D

    None of these

Solution

If there are n numbers, the function h has to be performed one time less.

Hence, option (b).

CAT 1999 QA Q12: For two positive integers a and b define the function h(a,b) as the greatest common factor (G.C.F) of a, b. Le — Solution | TheCATExam