From: Charlie-Boo on
How can I map an integer N between 1 and 1,000,000 to a string f(N) of
12 letters where I can map back from f(N) to N, and f(N+1) bears no
resemblance to f(N)? (Better yet f(N+m) bears no resemblance to f(N)
for m=1 to 1000 or f(m) for any m not equal to N.)

C-B
From: TCL on
On Jan 24, 10:03 am, Charlie-Boo <shymath...(a)gmail.com> wrote:
> How can I map an integer N between 1 and 1,000,000 to a string f(N) of
> 12 letters where I can map back from f(N) to N, and f(N+1) bears no
> resemblance to f(N)?  (Better yet f(N+m) bears no resemblance to f(N)
> for m=1 to 1000 or f(m) for any m not equal to N.)
>
> C-B

What is the limitation on the length of the strings? If there is none,
then there is a trivial answer to your question.
-TCL
From: hagman on
On 24 Jan., 17:35, TCL <tl...(a)cox.net> wrote:
> On Jan 24, 10:03 am, Charlie-Boo <shymath...(a)gmail.com> wrote:
>
> > How can I map an integer N between 1 and 1,000,000 to a string f(N) of
> > 12 letters where I can map back from f(N) to N, and f(N+1) bears no
> > resemblance to f(N)?  (Better yet f(N+m) bears no resemblance to f(N)
> > for m=1 to 1000 or f(m) for any m not equal to N.)
>
> > C-B
>
> What is the limitation on the length of the strings? If there is none,
> then there is a trivial answer to your question.
> -TCL

Prepare a table of 1000000 "random" strings
From: HallsofIvy on
> On Jan 24, 10:03 am, Charlie-Boo
> <shymath...(a)gmail.com> wrote:
> > How can I map an integer N between 1 and 1,000,000
> to a string f(N) of
> > 12 letters where I can map back from f(N) to N, and
> f(N+1) bears no
> > resemblance to f(N)?  (Better yet f(N+m) bears no
> resemblance to f(N)
> > for m=1 to 1000 or f(m) for any m not equal to N.)
> >
> > C-B
>
> What is the limitation on the length of the strings?
> If there is none,
> then there is a trivial answer to your question.
> -TCL
He DID say "strings of 12 letters". I interpreted that to me the length of the string is 12. I guess you could take it to me any string from an alphabet of 12 letters.
From: TCL on
On Jan 24, 12:30 pm, HallsofIvy <GeorgeI...(a)netzero.com> wrote:
> > On Jan 24, 10:03 am, Charlie-Boo
> > <shymath...(a)gmail.com> wrote:
> > > How can I map an integer N between 1 and 1,000,000
> > to a string f(N) of
> > > 12 letters where I can map back from f(N) to N, and
> > f(N+1) bears no
> > > resemblance to f(N)?  (Better yet f(N+m) bears no
> > resemblance to f(N)
> > > for m=1 to 1000 or f(m) for any m not equal to N.)
>
> > > C-B
>
> > What is the limitation on the length of the strings?
> > If there is none,
> > then there is a trivial answer to your question.
> > -TCL
>
>   He DID say "strings of 12 letters".  I interpreted that to me the length of the string is 12.  I guess you could take it to me any string from an alphabet of 12 letters.- Hide quoted text -
>
> - Show quoted text -

If that is what OP meant, then order the strings in dictionary
(lexicographic) order. Say the letters are a,b,c,...,l. Then define
f(1)= the first in the order = aaaaaaaaaaaa
f(2)= the second in the order = aaaaaaaaaaab
......
That is a one-to-one map.
-TCL