Re: How do I create a such List?
- To: mathgroup at smc.vnet.net
- Subject: [mg36142] Re: How do I create a such List?
- From: "Robert G. Wilson v" <rgwv at kspaint.com>
- Date: Fri, 23 Aug 2002 00:25:15 -0400 (EDT)
- Organization: Kansas Paint & Color Co.
- References: <ak28gd$pmq$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
bryan wrote:
>Hi All:
> I want to solve this math problem: a/(b*c)+d/(e*f)+g/(h*i)=1 where
>a,b,c,,,,i are nature numbers range from 1~9 and all is different.
>So,I want to create a list which its element are all possible order of
>Range[9].
>Ex.{{3,4,1,6,5,8,7,9,2},{1,2,5,4,3,7,9,8,6},,,,,,,,,} it has 9!=362880
>elements.
> Thanks in advance sincerely
>byran
>
Dear Byran,
Execute the function Permutations[ Table[ i, {i, 1, 9}] ]
Not counting the time to display all 362880 elements, it takes
only 0.631 on an
Athlon 1.2 GHz machine.
Bob.