|
#17 ORDERED CODES
How many 25-letter codes formed by using the letters A, B, C, D and E have their letters in alphabetical order?
If the problem was asked for 4-letter codes with the letters A, B, and C, the answer would be 15:
AAAA, AAAB, AAAC, AABB, AABC, AACC, ABBB, ABBC, ABCC, ACCC, BBBB, BBBC, BBCC, BCCC, CCCC.
用字母A,B,C,D和E,以字母顺序构成25字符的代码,这样的代码总共有多少个?
如果问的是用A,B和C构成4个字母的代码,答案是15:
AAAA, AAAB, AAAC, AABB, AABC, AACC, ABBB, ABBC, ABCC, ACCC, BBBB, BBBC, BBCC, BCCC, CCCC.
----------
这题相当简单,用排列组合公式就可以。 |
|