PDA

View Full Version : I could really use some help with this...

jaeb4u2c
11-12-2005, 07:09 AM
Here's the problem that I am trying to figure out:

Lets say that I have a series of numbers (ex. 40,11,18,29,22,8, etc.)
Lets say I assign to each of these numbers a letter designation (H for Hot Number, or C for Cold Number)

Now lets say that I want to create a program that will tell me the different combinations that I can get for a number when I select a particular pattern for that number. For example, lets say that for the number I select I choose a pattern and I want to know all the different combinations for that number that meet that patterns' criterion:

Examples:

H C H H H H

7 11 14 15 17 19

7 11 15 17 19 23

7 11 17 19 23 27, etc.

What I want to do is use the first number (7, which is a hot number) to determine how many combinations I will get from that number when using all the numbers below that are designated as hot (H) or cold (C) numbers.

HOT NUMBERS:

7,8,10,2,32,1,17,27,9,15,19,36,43,23,14

COLD NUMBERS:

39,40,18,29,38,11,12,3,21,42,6,5,20,22,,13,34,41,16,35,33,44,37,4,30,26,25, 28,31,42

The following are the patterns that will be used with these numbers, when a hot number is selected first:

HCHHHH HCCHHH HHCHHH HHHHHH

HCHCHC HCCCHC HHCCHC HHHCHC

HCHHCC HCCHCC HHCHCC HHHHCC

HCHCCH HCCCCH HHCCCH HHHCCH

HCHCHH HCCCHH HHCCHH HHHCHH

HCHHCH HCCHCH HHCHCH HHHHCH

HCHHHC HCCHHC HHCHHC HHHHHC

HCHCCC HCCCCC HHCCCC HHHCCC

The following are the patterns that will be used with these numbers, when a cold number is selected first:

CHCCCC CHHCCC CCHCCC CCCCCC

CHCCHC CHHCHC CCHCHC CCCCHC

CHCHCC CHHHCC CCHHCC CCCHCC

CHCCCH CHHCCH CCHCCH CCCCCH

CHCCHH CHHCHH CCHCHH CCCCHH

CHCHCH CHHHCH CCHHCH CCCHCH

CHCHHC CHHHHC CCHHHC CCCHHC

CHCHHH CHHHHH CCHHHH CCCHHH

Thank you for your time and help with this.

Jaime

mdmackillop
11-12-2005, 10:21 AM
Hi Jaime,
Forgive me if I'm wrong but this sounds like a homework question which under the conditions of the site we cannot answer. I'm not much of a mathematician, but I would be looking at the Permut and Combin functions.
Regards
MD

jaeb4u2c
11-12-2005, 11:48 AM
This will reply to your posting. What I presented was not a "homework assignment," but rather something that I am working on personally that I just need some help with. Thanks for your input and insights.

Jaime