79.8k views
2 votes
The keypad to the lock to the computer lab has 5 buttons. An access code is a sequence of 3 buttons or 4 buttons. Find the number of access codes: (a) If a button may be repeated. (b) If a button may not be repeated.

User Chugreevd
by
7.7k points

1 Answer

1 vote

Answer:

(a) 750 codes

(b) 180 codes

Explanation:

The number of possible access codes is given by the number of ways to pick 3 out of 5 buttons added to the number of ways to pick 4 out of 5 buttons, in which the order matters.

(a) If a button may be repeated.:


n=5*5*5*5+5*5*5\\n=750\ codes

There are 750 possible codes.

(b) If a button may not be repeated.


n=5*4*3*2+5*4*3\\n=180\ codes

There are 180 possible codes.

User Tiny Sunlight
by
8.7k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories