Answer for the above puzzle is

The 40 kg weight is broken into 4 weights of 1,3,9 27 kg. With these four weights one can weigh from 1 to 40 kg.