Link to home
Start Free TrialLog in
Avatar of zhshqzyc
zhshqzyc

asked on

Number of the combinations

Hi, suppose I have 4 letters A,C,G,T.
I want to use them to create a sequence such as ACTGGTCAAA etc. The length of the sequence is 10.

Would you please tell me how many combinations totally?
Thanks.
SOLUTION
Avatar of sch13824
sch13824

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of phoffric
phoffric

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zhshqzyc
zhshqzyc

ASKER

Can you give me a formula? I have lost it for many years.
If you have a sequence of n letters comprising of A, C, G, T  only, since you have 4 choices for each position the formula is

number of combinations for a of string length n   =   4^n


If you have k possible letters instead of 4 the answer is  k^n
The link I posted above will show you the formula as well as calculate the value for you.
So the result 286 from sch13824 is wrong. How did you get it?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I withdraw my earlier comment/answer. I incorrectly applied combinations. Phoffric's logic and GwynforWeb's formula of k^n for k items forming a string of n length is correct.
ozo is correct. That was my misapplication. From your example above, ACTGGTCAAA would be the same as CATGGTCAAA (or any sequence that contains 4 As, 2 Cs, 2 Gs , and 2 Ts for that matter).
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial