CalculatorForEver
MATH / GUIDE

Why can the selected count r not exceed the available count n?

Calculator ForEver 3 min read

Without replacement, every selection uses a different available item. You cannot choose more distinct items than the pool contains.

Check the replacement rule

If a problem permits selecting the same item repeatedly, r can exceed n, but it then needs a with-replacement formula. Changing the input limit without changing the formula does not convert a no-replacement model into that different counting problem.

Worked example

With three distinct symbols and a two-position sequence without repetition, P(3,2) = 3 × 2 = 6. A four-position sequence cannot be filled without repeating at least one symbol. If repetition were allowed, the count would instead be 3⁴ = 81, outside this tool’s stated model.

Do not reinterpret an input error as impossibility in every setting

The limit describes the chosen model, not every real-world selection process. Identify whether reuse, replacement or repeated characters are permitted before choosing a tool. Calculator ForEver rejects r greater than n so that an unsupported model does not produce a misleading factorial result.

Use the without-replacement condition to set the limit

When an item can be selected only once, a population of n items cannot fill more than n selected positions. After selecting all n distinct items, none remain for an additional position. This gives the constraint 0 ≤ r ≤ n for the ordinary permutation and combination formulas used by the calculator. A larger r is not a difficult valid input that needs more computing power; it describes an impossible selection under the stated rules. The interface rejects it to preserve the meaning of its outputs.

Compare the final valid selection with an invalid one

From four distinct books, selecting all four gives 4C4 = 1 unranked group: the complete collection. Arranging all four gives 4P4 = 24 orders. Asking for five distinct books from the same four-book collection cannot be satisfied without reusing an item. The factorial formulas would involve a factorial of a negative integer if applied mechanically, which lies outside their elementary counting definition. Check the available count and the selected count before substitution rather than trying to force an invalid quotient.

Change the model explicitly if repetition is permitted

A four-symbol alphabet can form five-position sequences if symbols may repeat. There are then four choices for each of five positions, giving 4⁵ = 1,024 sequences. That is a valid but different problem. Its input count r exceeds n because positions can reuse the same symbol. It should not be entered into a without-replacement form and interpreted as the same operation. Distinguish the number of available distinct symbols from the number of ordered positions, and state whether repeated selections are allowed.

Check whole-number counts and item identity

The available and selected counts describe numbers of discrete items, so fractional values do not fit this model. Likewise, if two objects are considered identical, counting them as distinct can overstate the number of visible outcomes. Calculator ForEver accepts whole-number counts within its supported limits and calculates the standard distinct-item case. It does not infer constraints such as mandatory members, prohibited pairings or repeated labels. Write those conditions alongside the counts before selecting a method, because they can change which outcomes are possible even when r does not exceed n.

Questions about this calculation

Can I count repeated password characters here?

Not with the no-replacement formula. A password model allowing character reuse needs a different count and may have additional rules about positions or character classes.

Try these values in the calculator

Count ordered selections or unordered groups.

Use the permutation and combination calculator

References

More permutation and combination questions

Related tools