RE: How do I create a such List?
- To: mathgroup at smc.vnet.net
- Subject: [mg36133] RE: [mg36126] How do I create a such List?
- From: "Harvey P. Dale" <hpd1 at nyu.edu>
- Date: Fri, 23 Aug 2002 00:25:06 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Bryan: This should do it: (#[[1]]/( #[[2]]*#[[3]]) +#[[4]]/(#[[5]]*#[[6]]) +#[[7]]/(#[[8]]*#[[9]])) & /@ Permutations[Range[9]] Best, Harvey Harvey P. Dale University Professor of Philanthropy and the Law Director, National Center on Philanthropy and the Law New York University School of Law Room 206A 110 West 3rd Street New York, N.Y. 10012-1074 -----Original Message----- From: timreh719 at yahoo.com.tw [mailto:timreh719 at yahoo.com.tw] To: mathgroup at smc.vnet.net Subject: [mg36133] [mg36126] How do I create a such List? 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 ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________