Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuition

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labs

Reference

GlossaryBlogDiscoveries
Tools › Maths

nPr and nCr calculator

Permutations, combinations and factorials.

ⁿPᵣ = 720, ⁿCᵣ = 120

  1. 10P3 = 10!/7! = 10 × 9 × 8 = 720
  2. 10C3 = 10P3 / 3! = 720 / 6 = 120
  3. 10! = 36,28,800

How it works

ⁿPᵣ = n!/(n − r)! counts ordered arrangements. ⁿCᵣ = n!/(r!(n − r)!) counts selections where order does not matter.

Worked example

With n = 10, r = 3:

  1. 10P3 = 10!/7! = 10 × 9 × 8 = 720
  2. 10C3 = 10P3 / 3! = 720 / 6 = 120
  3. 10! = 36,28,800

Answer: ⁿPᵣ = 720, ⁿCᵣ = 120

Questions

What is 0!?
1. There is exactly one way to arrange nothing, and it makes the formulas work.

Learn the method properly

The chapter behind this tool, with animations, an experiment and an AI tutor who checks each step you write.

Open the chapter

More maths tools

  • Quadratic equation solver
  • LCM and HCF calculator
  • Fraction simplifier
  • Percentage calculator
  • Simple interest calculator
  • Compound interest calculator