this post was submitted on 19 Jun 2025
801 points (97.1% liked)
Math Memes
2423 readers
449 users here now
Memes related to mathematics.
Rules:
1: Memes must be related to mathematics in some way.
2: No bigotry of any kind.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
What's the point of factorials?
the most tangible and direct application is how many different ways you can order x many items.
eg. how many different ways can you order 3 items?
let's say you have these 3 items: ππ«π
the first one can be any one of the three, so you have 3 options. that's 3 different ways to start your order. let's write that down:
now for the second one. whichever one you picked for first position will be unavailable, so you'll have 2 options this time. this is true for each first pick separately, so you multiply the possible number of first picks by the possible number of second picks:
now for the third item, since two of the three are already picked, you only have one left, which means not much to choose. you just multiply the 1:
of course multiplying by 1 doesn't change anything but as we mentioned there was no option this time, once you pick the second fruit the third is also auto-picked, so the third item doesn't add to our number.
so the final answer seems to be:
is that true? might feel like there should be more ways but let's test it; can't be that complicated:
here you go. you can extrapolate this logic to any number. four items would've followed the same sequence starting with 4 and have 1 less option with each pick, so 4 x 3 x 2 x 1. and that's also 4!
They're used in permutations and combinations a lot. Combinations is pretty obvious based on the name. Given X things, how many ways are there to choose Y. Permutations are the same but where order matters.
For example, if you shuffle a deck of cards properly randomly there will be 52! possible orderings (permutations).
Makes things shorter.
In the applications mentioned by other people, you run into calculations that would look really messy and confusing. Things like 5β’4β’3β’2β’1 can be shorted to just 5! Imagine writing the full version of 123!
There are lots of applications, so Iβll give you three
Factorials are used in the Taylor Series to approximate trigonometric (sine, cosine, etc) and the exponential function. This can help speed up calculations.
In probability and statistics, if you want to find how many different ways a deck of cards can be shuffled, the answer is 52! Because the first card can be any of the 52, the second can be any of the remaining 51, and so on until the last card. Building upon this concept results in ways to model data like the binomial distribution , which is simply βhow many successes will i get if i do this trial a certain number of timesβ. E.g. If I flip a coin 100 times, how many times will it be heads?
In computer science, the complexity of a program is compared to functions like the factorial, exponential, quadratic, etc. to visualize itβs performance given the size of the input, n. E.g. a program of linear time complexity is denoted as O(n), and as n increases, we expect the time for the program to finish to increase linearly. For a factorial time complexity, O(n!), we expect the time to complete to increase a lot compared to O(n)