write last-significant-coeff position