Answer is 39.
We know the general term of a binomial expansion, given by
T(r+1)=nCr* (a^n-r)*(b*r)
They have specified that 13th term is independent of x, hence x^2 and 2/x should cancel out.
By the above formula, we get
T(12+1)=12Cr* (x^2n-24)*(2/x^12).
so, to cancel out, 2n-24=12
implies n=18
the divisors of 18=1,2,3,6,9,18
adding them we get 39.