We look at the binomial expansion of (xm+x21)22.
The general ((k+1)-th) term in this expansion is obtained from the formula
Tk+1=22Ck(xm)22−k(x21)k.
Simplifying the powers of x we get
Tk+1=22Ckxm(22−k)x−2k=22Ckxm(22−k)−2k.
We are told that the coefficient of x1 (i.e. of the term in which the power of x is 1) equals 1540.
Hence we must have
Power condition:
m(22−k)−2k=1.
Re-arranging,
m=22−k1+2k
where k can take integral values from 0 to 22.
For m to be a natural number, the denominator 22−k must divide the numerator 1+2k exactly.
Put d=22−k(⇒k=22−d) with d=1,2,…,22. Substituting,
m=d1+2(22−d)=d45−2d=d45−2.
Thus d has to be a positive divisor of 45 not exceeding 22.
The admissible values of d and the corresponding m are
d=1d=3d=5d=9d=15:;;m=45−2=43,:;;m=15−2=13,:;;m=9−2=7,:;;m=5−2=3,:;;m=3−2=1.
We now check the coefficient of each candidate term, remembering that the coefficient is 22Ck with k=22−d:
d=1d=3d=5d=9d=15⇒k=21:22C21=22C1=22,⇒k=19:22C19=22C3=1540,⇒k=17:22C17=22C5=26334,⇒k=13:22C13=497420,⇒k=7:22C7=170544.
The required coefficient is 1540, which occurs only when d=3 (equivalently k=19). For this value we have already found m=13.
So, the answer is 13.