MathorynMathematical Formula Database

Combinatorics

Arrangements with Repetition

If each of kk positions can be filled by any of nn options independently, there are nkn^k possible sequences (the multiplication principle). It is used for PIN codes, licence plates and the number of possible passwords.

N=nkN=n^{k}
LaTeXN=n^{k}

Variables

nn
options per position
kk
number of positions

Example

How many 4-digit PIN codes are there?

  1. n=10, k=4n=10,\ k=4.

Answer: 104=1000010^4=10000.

Related formulas