Home · Statistics · Probability & Combinatorics · Permutation with Repetition Calculator

Permutation with Repetition Calculator

The number of sequences of length r over n symbols when symbols may repeat: n raised to the power r — codes, passwords and repeated trials.

Your figures

Example result — edit the figures to make it yours

125

Sequences n^r

What this calculator does

The number of sequences of length r over n symbols when symbols may repeat: n raised to the power r — codes, passwords and repeated trials. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

Sequences = n^r

Repetition is allowed and order matters: each of the r positions can independently be any of the n symbols, so the counts multiply to n × n × … × n = n^r.

Unlike the plain permutation rule, r may exceed n, because symbols are reused rather than used up.

This is the counting rule behind PINs and passwords: a 4-digit PIN is 10⁴ = 10,000 sequences.

Worked example

With the example inputs this page opens with (number of symbols n 5, sequence length r 3), the result is 125 — sequences n^r. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying number of symbols n
Number of symbols nSequences n^r
2.516
464
5125
6.25244
7.5422
101,000

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does this differ from a permutation without repetition?

Without repetition each symbol can appear once, giving n!/(n − r)! and requiring r ≤ n. With repetition every position is a fresh choice among all n symbols, giving n^r, and r can be any length.

Why do longer passwords help so much?

Each extra position multiplies the count by n, so the total grows exponentially with length: one more digit multiplies a PIN space by 10, which is why length beats complexity tricks.

How does the Permutation with Repetition Calculator work?

The number of sequences of length r over n symbols when symbols may repeat: n raised to the power r — codes, passwords and repeated trials. N symbols · length r → Sequences n^r. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Permutation with Repetition Calculator need?

N symbols · length r → Sequences n^r. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.