
Re: Algorithm for deriving permutations
Posted:
Oct 19, 2007 1:12 PM


On Oct 19, 4:34 am, Patrick Hamlyn <p...@multipro.N_OcomSP_AM.au> wrote: > "mensana...@aol.com" <mensana...@aol.com> wrote: > >But that includes ALL combinations. Sounds more > >like th OP wants the 1000th combination of just > >the 4digit base 6 numbers. > > >base10: 1000 base6: 4344 > >But... > >base6: 4344 is the 785th 4digit base 6 number > >The 1000th 4digit base 6 number... > >...is 5343. > > If your teacher in grade school ever asked you to count to 5 using the fingers > on one hand I suspect you told him you only had four :>
Yes, I realized I was discounting leading 0's but shouldn't have been. I was more concerned getting my program to work.
>  > Patrick Hamlyn posting from Perth, Western Australia > Windsurfing capital of the Southern Hemisphere > Moderator: polyforms group (polyformssubscr...@egroups.com)

