Well, It is definitely not gonna work when you write
ln
instead of
Log
!
Here is the correct code to solve this problem:
ClearAll[GetSum]
GetSum[w_?NumberQ,c_?NumberQ]:=NSum[1/2^n*(Log[w+2^n-c]-Log[w]),{n,1,Infinity}]
w=1000000;
Plot[GetSum[w,c],{c,1,30}]
c/.FindRoot[GetSum[w,c],{c,20,15,25}]
