Free · Combinatorics calculators 🔀

Ordered Sequences with Replacement: Count & List

Count ordered length-r sequences from n reusable types and enumerate supported small examples.

  • Formula & worked example
  • Private in your browser
  • No signup
Go to tool

Calculator inputs

Loading calculator…

How to use this calculator

  1. Enter the known values in the units shown. Results update as you type.
  2. Where results are editable, change one to solve backwards. Lock a value to hold it fixed.
  3. Use the worked example to check the method. Reset restores the starting fields.

Private by default

Inputs and results stay in this browser tab. Bookify does not upload or store the values you enter.

Formula and method

Three choices for each of two positions give nine ordered sequences.

Number of sequences = n^r

Worked example

Enter these known values and leave the other values blank.

Available distinct types n
3
Selection size r
2
Permutations with repetitions
9

Assumptions and limitations

  • Inputs are integers. The retained upper bound is 100,000 for each input. A selection of zero objects has one outcome: the empty selection.
  • Distinct types are labeled A, B, C and so on in examples. Replacement permits repeated use of a type; ordering treats different position sequences as different outcomes.
  • Arithmetic uses 64 significant decimal digits. Large counts can be rounded, and scientific notation is approximate; this tool does not certify every digit of an arbitrarily large integer.
  • Counts are available beyond the small-example listing ranges. A list appears only where the complete enumeration fits the supported range.
  • At least one available type is required in replacement/combined modes. Without-replacement selections with r > n have zero outcomes in combined comparisons.

Common questions

Do order and replacement change the answer?

Yes. Order makes AB and BA different; replacement allows outcomes such as AA. Choose the model that matches both rules.

References

Bookify includes the valid empty-selection boundary while preserving the captured counting equations and enumeration ranges.

Explore combinatorics calculators 🔀 or browse all statistics calculators.