|[home] [lexicon] [problems] [tests] [courses] [auxiliaries] [notes] [staff]|
Solution to the problem of the (previous) week
In a PIN consisting of 5 characters, at least two special symbols (, , ) are used apart from the digits 0 to 9 due to security reasons.
a) How many such PINs do exist?
How many of these have
b) only different special characters, e. g. 0
c) at least two identical special characters, e. g. 5 ,
d) at least two identical digits, e. g. 33 3 ?
Solution:a) Determining the total number of PINs, we group them according to their number of special characters (SC) and obtain:
|So, the total number is|
If only different special characters are allowed, we get a modified table:
|i. e., there exist of these PINs.|
From the total number of PINs, we have to subtract those with only different special characters. Hence, there are
of such PINs.
This result can also be obtained, if in each case of table a) we subtract the number of PINs with only different special characters:
|So, these numbers amount to|
Analogous to step c) we obtain
|the sum being|