Forget conventional ways of solving math questions. In DS, Variable approach is
the easiest and quickest way to find the answer without actually solving the
problem. Remember equal number of variables and equations ensures a solution.
Given that a, b, c, and, d are non-negative integers, is the fraction (ad)/(2^a3^b4^c5^d) a terminating decimal?
(1) d = (1 + a)(a^2 – 2a + 1)/((a – 1)(a^2 – 1))
(2) b = (1 + a)(a^2 – 2a + 1) – (a – 1)(a^2 – 1)
transforming the original condition and the question by variable approach method, in order for (ad)/(2^a3^b4^c5^d)=terminating decimal we need ad (numerator) to have 3 as a factor. Or, we would need 3^b removed from the denominator. This is because the terminating decimal can only have 2 or 5 as their prime factors in the denominator
But in case of 2), if b = 0, 3^b=3^0=1 and the denominator is (2^a)(4^c)(5^d). Therefore the prime factor of the denominator is 2 or 5. Since the condition is sufficient. the answer is B.