A problem I had in exam


In this question how could I know if z is in the set that we have {-2^n-1……}
and one more question how could I get the number 31 multiply by [c[n-1:0]???