1

Suppose if I have a lock, in which there are 8 different numbers. The numbers are allowed the repeat. I'm wondering how many possible combinations are there for the lock?

1 Answers1

2

For each position you have 8 possibilities and you have 8 position so the answer is $8^8$.

If you have a lock with $n$ positions and $k$ possible numbers then the answer would be $k^n$.

nonuser
  • 90,026