|
|
| Author |
Message |
Joe science forum beginner
Joined: 25 Jun 2005
Posts: 22
|
Posted: Thu Oct 06, 2005 1:00 am Post subject:
Question about permutations
|
|
|
Can anyone steer me in the right direction ? My question is, how many
permutations can I expect when I only use the odd or even numbers? For
example, 5!=120, but if I only use the permutations that are odd (ie,
1,3,5 ), I get 6. As I move up the number line, I expect to get more and
more, but not as many as N!. Is there a formula that would tell me this?
Thanks,
joe |
|
| Back to top |
|
 |
Nigel science forum beginner
Joined: 03 Jun 2005
Posts: 37
|
Posted: Thu Oct 06, 2005 6:12 am Post subject:
Re: Question about permutations
|
|
|
Joe wrote:
| Quote: | Can anyone steer me in the right direction ? My question is, how many
permutations can I expect when I only use the odd or even numbers? For
example, 5!=120, but if I only use the permutations that are odd (ie,
1,3,5 ), I get 6.
|
The quick and brainless answer would appear to be that since you're
perming 3 objects in this case you should get 3! permutations. Similarly
if you perm the odd numbers to 7, instead of 7! you get 4! permutations.
NigelH
As I move up the number line, I expect to get more and
| Quote: | more, but not as many as N!. Is there a formula that would tell me this?
Thanks,
joe
|
|
|
| Back to top |
|
 |
Dan Akers science forum addict
Joined: 19 Jul 2005
Posts: 56
|
Posted: Thu Oct 06, 2005 2:58 pm Post subject:
Re: Question about permutations
|
|
|
Joe wrote:
"Can anyone steer me in the right direction ? My question is, how many
permutations can I expect when I only use the odd or even numbers? For
example, 5!=120, but if I only use the permutations that are odd (ie,
1,3,5 ), I get 6. As I move up the number line, I expect to get more and
more, but not as many as N!. Is there a formula that would tell me
this?"
_____________________________________
Re;
Hi Joe. I'm hoping I've understood your question... Start with the
fact that there are 10 possible digits. If you use only the odd
"digits"; that cuts the number to 5. Thus, for a number consisting of N
digits, there are 5^N permutations. Thus for a 5 digit number, using
only odd digits, there are 3125 permutations.
On the other hand, if you meant that the number itself is to be "odd",
then the number of permutations changes to 10^(N-1)*5. Thus, for a 5
digit number, there would be 50,000 permutations. I hope that helps...
-Dan Akers |
|
| Back to top |
|
 |
Joe science forum beginner
Joined: 25 Jun 2005
Posts: 22
|
Posted: Thu Oct 06, 2005 5:22 pm Post subject:
Re: Question about permutations
|
|
|
"Dan Akers" <digikey@webtv.net> wrote in message
news:7007-434557A7-366@storefull-3133.bay.webtv.net...
| Quote: | Joe wrote:
"Can anyone steer me in the right direction ? My question is, how many
permutations can I expect when I only use the odd or even numbers? For
example, 5!=120, but if I only use the permutations that are odd (ie,
1,3,5 ), I get 6. As I move up the number line, I expect to get more and
more, but not as many as N!. Is there a formula that would tell me
this?"
_____________________________________
Re;
Hi Joe. I'm hoping I've understood your question... Start with the
fact that there are 10 possible digits. If you use only the odd
"digits"; that cuts the number to 5. Thus, for a number consisting of N
digits, there are 5^N permutations. Thus for a 5 digit number, using
only odd digits, there are 3125 permutations.
On the other hand, if you meant that the number itself is to be "odd",
then the number of permutations changes to 10^(N-1)*5. Thus, for a 5
digit number, there would be 50,000 permutations. I hope that helps...
-Dan Akers
|
Thanks Dan and Nigel,
It occurred to me after I posted last night that, indeed, if I want only the
odd numbers from, say 1 to 9, then there would only be 5! instead of 9!.
Sorry, I feel really stupid, but it was a long day yesterday and I probly
should've slept on it b4 I posted the question.
Joe |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Jan 09, 2009 10:19 pm | All times are GMT
|
|
Mobile Phones | Loans | Credit Cards | Credit Report | Loans and Credit Cards
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
Other DeniX Solutions sites:
Electronics forum |
Medicine forum |
Unix/Linux blog |
Unix/Linux documentation |
Unix/Linux forums
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|