How to Compute Factorials, Permutations, and Combinations?
Google Search includes a built-in scientific calculator that lets you compute factorials, permutations, and combinations directly from the search bar. By typing simple mathematical expressions or using the on-screen calculator buttons, you can get instant results without needing external software. This guide explains the exact syntax to use for each calculation.
Computing Factorials
A factorial, written as \(n!\), is the product of all positive integers less than or equal to \(n\). To calculate a factorial in Google Search, type the number followed immediately by an exclamation mark.
For example, typing 5! into the Google Search bar
triggers the calculator and returns \(120\), because:
\[5! = 5 \times 4 \times 3 \times 2 \times 1 = 120\]
You can also include factorials inside larger expressions, such as
6! / 3! or (4 + 1)!, and Google will evaluate
them automatically. If you prefer using the on-screen scientific
calculator, click the x! button after entering your
number.
Computing Permutations
A permutation, written as \(P(n, r)\) or \(_nP_r\), counts the number of ways to arrange \(r\) items from a set of \(n\) items when the order matters. The formula is:
\[P(n, r) = \frac{n!}{(n - r)!}\]
To compute a permutation in Google Search, use the nPr
or P operator between \(n\) and \(r\). For example, to find the number of
ways to arrange \(3\) items out of
\(10\), type:
10 nPr 3 or 10 P 3
Google Search will display the result \(720\). You can also type the equivalent
factorial expression 10! / (10 - 3)! to get the same
answer.
Computing Combinations
A combination, written as \(C(n, r)\), \(_nC_r\), or \(\binom{n}{r}\), counts the number of ways to choose \(r\) items from a set of \(n\) items when the order does not matter. The formula is:
\[C(n, r) = \frac{n!}{r!(n - r)!}\]
To compute a combination in Google Search, use choose or
nCr between \(n\) and
\(r\). For example, to find how many
ways you can choose \(3\) items from
\(10\), type:
10 choose 3 or 10 nCr 3
Google Search will immediately return \(120\). Using choose is often
the easiest and most readable method directly in the search bar.
Tips for Using the Google Calculator
If the calculator does not appear automatically when you press Enter,
try adding an equals sign at the end of your query, such as
10 choose 3 =. For very large numbers, Google Search will
display the result in scientific notation, or show Infinity
if the value exceeds the calculator's maximum limit (for example,
factorials above \(170!\)).