Card shuffles are unique
There are 52! ways to order a deck—about 8×1067. Shuffle well and you likely create an arrangement the universe has never seen.
Enter n and r, pick options, then press Calculate.
Tip: Press Ctrl/Cmd + Enter to calculate.
Let \(n\) be the number of distinct items and \(r\) the number chosen.
Exact values are computed with BigInt. A scientific-notation approximation is also provided.
Pick permutations when order matters (e.g., passwords, race rankings). Pick combinations when order does not matter (e.g., lottery tickets, committees).
Without repetition, that’s invalid (you can’t choose more distinct items than exist). With repetition allowed, it’s fine.
These counts grow very quickly; we show both the exact integer and an approximate scientific notation like \(1.23 \\times 10^{45}\).
Yes—everything runs entirely in your browser.
There are 52! ways to order a deck—about 8×1067. Shuffle well and you likely create an arrangement the universe has never seen.
A room of n people has C(n,2) unique handshakes. With 10 people, that’s 45 greetings.
Each row of Pascal’s triangle lists combination counts: row n gives C(n,0)…C(n,n). Adding a row always sums to 2ⁿ.
A 6‑character code using 10 digits has 10⁶ possibilities. Add letters/symbols and order sensitivity explodes the search space.
Combinations with repetition use the classic “stars and bars” trick: C(n+r-1, r) counts ways to place r identical stars into n bins.