Our comprehensive factorial calculator handles factorials, permutations, combinations, and gamma functions with detailed explanations:
❗ Factorial (n!)
Calculate n! = n × (n-1) × (n-2) × ... × 2 × 1 for non-negative integers. By definition, 0! = 1. Factorials grow extremely rapidly - 10! = 3,628,800 and 20! exceeds 2 quintillion.
🔄 Permutations (nPr)
Count arrangements where order matters. Formula: nPr = n!/(n-r)!. Example: Arranging 3 people from 5 candidates = 5P3 = 60 ways. Used in scheduling, rankings, and sequence problems.
🎯 Combinations (nCr)
Count selections where order doesn't matter. Formula: nCr = n!/(r! × (n-r)!). Example: Choosing 3 people from 5 candidates = 5C3 = 10 ways. Used in lottery, team selection, and probability.
📊 Gamma Function Γ(z)
Extends factorials to real numbers: Γ(n) = (n-1)! for positive integers. Γ(z+1) = z × Γ(z) for all z > 0. Essential in statistics, physics, and advanced mathematics.
🧮 Key Differences
• Permutations vs Combinations: ABC and BAC are different permutations but the same combination
• Factorials: Only for non-negative integers
• Gamma Function: Works for any positive real number
• Applications: Combinatorics, probability, statistics, and discrete mathematics
💡 Practical Applications
• Statistics: Probability distributions, sampling methods
• Computer Science: Algorithm analysis, complexity theory
• Cryptography: Key generation, security protocols
• Games: Lottery odds, card game probabilities
• Research: Experimental design, data analysis
🔧 Pro Tips
• Large factorials are displayed in scientific notation
• Maximum factorial: 170! (JavaScript number limits)
• Use combinations for selection problems
• Use permutations for arrangement problems
• Verify results with the recursive formulas provided