Option (A) is correct.
Explanation:
The identity holds for every value of x, so we may put in convenient values.
- Put x=1. The left side is (2−1)7=1 and the right side is a0+a1+a2+⋯+a7. So the sum of all eight coefficients is 1.
- Put x=0. Every term with x vanishes, so a0=(0−1)7=−1.
Subtract the second result from the first:
a1+a2+⋯+a7=1−(−1)=2
Why the other options are wrong
- (B) 2187=37=(2+1)7 adds the sizes of the coefficients and ignores their signs. It also still includes a0.
- (C) 0=1−1 takes a0=+1. But a0=(−1)7=−1 because 7 is odd.
- (D) 1 is a0+a1+⋯+a7, the sum of all the coefficients. The question leaves out a0, which is −1, not 0.