672 views
0 votes
0 votes
Suppose that the name of a file in a computer directory consists of three digits followed by two lowercase letters and each digit is $0, 1,\:\text{or}\: 2,$ and each letter is either $a\:\text{or}\: b.$ List the name of these files in lexicographic order, where we order letters using the usual alphabetic order of letters.

1 Answer

0 votes
0 votes

DIGIT={0,1,2}   LETTER={a,b}

 lexicographic order three digits followed by two lowercase letter.

012ab

012ba

021ab

021ba

102ab

102ba

120ab

120ba

201ab

201ba

210ab

210ba

total=12

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
0 answers
2
admin asked May 1, 2020
245 views
Show that the correspondence described in the preamble is a bijection between the set of permutations of $\{1, 2, 3,\dots,n\}$ and the nonnegative integers less than $n!....
0 votes
0 votes
1 answer
4