decoding number sequences