Question: - if all three numbers in the code must be different ( something like 9 - 9 - 9 is not allowed ) , how

-if all three numbers in
the code must be different
(something like 9-9-9 is not
allowed), how many codes
are possible?
-if duplicated numbers are
allowed in the code (some-
thing like 9-9-9 is allowed),
how many such codes are
possible?
-if duplicated numbers are
possible, but consecutive
entries in the code must be
different (something like 9-
8-9 is allowed, but 9-9-9,9-
9-8, and 9-8-8 are not), how
many codes are possible?
The dial on the lock shown allows
for non-negative integer values
0 through 39. Locks like this
typically have a three-number
code.
-Does the lock's code fit the
mathematical definition of a
combination? Or is it better
described as a permutation?
Explain
- if all three numbers in the code must be

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!