Key Takeaways & Core Summary
- •Use Combinations (nCr) when order does not matter (committees, card hands), and divide out r! duplicates from nPr.
- •Fixing one rotational anchor turns n linear seats around a circle into (n - 1)! distinct arrangements.
- •Every composite integer n must have at least one factor ≤ √n, cutting trial division checks from millions to thousands.
- •Extending password length from 8 to 16 characters adds far more bits of entropy than replacing letters with symbols on a short password.
1. Combinations (nCr) vs. Permutations (nPr)
In discrete probability, a single question separates permutations from combinations: does selection order change the outcome? Selecting gold, silver, and bronze winners from 10 runners yields P(10, 3) = 10 × 9 × 8 = 720 ordered podiums. Selecting an unordered 3-person committee divides by 3! = 6 internal orderings, giving C(10, 3) = 120 committees. Practice huge factorial cancellations cleanly in our Combinations Calculator (nCr).
2. Circular Permutations & Rotational Equivalence
Seat 6 guests in a line and there are 6! = 720 arrangements. Seat those same 6 people around a round dinner table where rotating everyone one chair clockwise creates the same relative neighbors, and 6 rotations collapse into 1—leaving (n − 1)! = 5! = 120 arrangements (or half that, 60, for reversible bead necklaces!). Verify rotational and reflection symmetries in our Circular Permutation Calculator.
3. Why Prime Testing Stops at √n
To verify whether 1,000,003 is prime, a naive loop checking divisors up to 1,000,002 wastes 99.9% of its work. Because any composite product n = a × b cannot have both factors strictly larger than √n, checking integers only up to ⌊√n⌋ = 1,000 suffices—reducing operations by over 1,000×. Test prime factors in our Prime Number Calculator.
4. Password Length Beats Complexity Under Log2 Entropy
A dense 8-character password using all 94 printable ASCII symbols carries 8 × log2(94) = 52.4 bits of entropy. By contrast, an easy-to-type 16-character lowercase/mixed alphanumeric password carries 16 × log2(62) = 95.3 bits—roughly 8 trillion times harder to brute-force! Generate high-entropy keys locally in your browser using our Password Generator.
Try It Yourself: Dedicated Online Calculators
Combinations Calculator (nCr)
Compute large BigInt nCr values with factorial cancellation steps and Pascal rows.
Circular Permutation Calculator
Solve round-table and necklace symmetry arrangements with (n - 1)! formulas.
Prime Number Calculator
Test primality, perform prime factorization, and inspect prime tables.
Password Generator & Entropy Analyzer
Generate cryptographically random passwords and inspect brute-force entropy bits.
Frequently Asked Questions
Why does C(100, 98) equal C(100, 2)?
Choosing 98 items to keep out of 100 leaves 2 items behind. Because every unique group of 98 uniquely identifies its complement of 2, C(n, r) = C(n, n - r), letting calculators cancel 98! immediately.
How many bits of entropy are safe for online passwords today?
At least 60 to 80 bits of true random entropy—achieved with 12–16 random mixed characters or 5–6 random diceware words—resists modern GPU cracking clusters even if hashes leak.
Maruf Jias
Founder & Lead Engineer
Software engineer and creator of Calc Lab Online, focused on building fast, transparent, client-side calculation engines and clear educational documentation.