This may have more to do with computing than Mathematics in its application, however this has been giving me a headache for some time and I see no other recourse than to ask...
Given a natural integer T > 9 (and probably between 1,000 and 1,000,000,000), and a choice N in {0,1,2,3,4}, provide two algorithms (encoding and decoding):
One which take T and N as inputs and outputs R, a number which has no more digits than T. [encoding]
The other which takes an (encoded) number R and outputs the original (unencoded) T and N. [decoding]
The complexity of the algorithms should at best allow to be implemented by modern computing. Apart from that, everything and anything is allowed :).
As a side note, do advise me if this is impossible.
N
supposed to do in both algorithms? – J. M. ain't a mathematician Dec 20 '10 at 10:36