decodedscience
  • オンラインカジノ
  • 私たちについて

Introducing the Factorial: the Exclamation Mark of Math

August 8, 2012 by Mike DeHaan 20 Comments

Share50
Pin2
+11
Tweet
Share
53 Shares
Choose K of N image by Mike DeHaan

Permutations of an ordered subset – choose K of N: Image by Mike DeHaan

The formula for “choosing ‘k’ permutations from a set of ‘n’ elements’ = P(n, k) = (n!)/( (n-k)! ). For set ‘C’, this was 3!/1! = 6/1 = 6.

Finally for this section, the number of “k-subsets” also is calculated with factorials. This is the problem for combining selected elements but without regard to permuting them into various sequences. From set ‘C’ above, the three 2-subsets are {a,b}, {a,c}, {b,c}.

The formula for combining or “choosing” k-subsets is usually shown in the above image, where C(n, k) = (n!)/( k! * (n-k)! ).




These concepts and formulas are useful in discrete probabilty theory, where one must determine the proportion of items that might be selected versus all the combinations that could be chosen.

Plot of the Gamma Function image adapted from Alessio Damato

Plot of the Gamma Function: Image adapted from Alessio Damato

Extending the Factorial Beyond Positive Integers

The first and simplest extension is to define “zero factorial” = 0! = 1, for the reason that there is exactly one way to arrange zero objects. In other words, the empty set, {}, has exactly that one permutation.

The gamma function for positive integers is defined as Γ(n) = (n-1)!. This is not an extension of the factorial function, but simply defines part of the gamma function in terms of factorials.

The gamma function may be extended to all positive Real numbers by defining it as the smooth line that fits the points defined by the factorials of positive integers. This integration function plots a smooth curve that joins the (n, n!) points on the Cartesian plane for ( x > zero, Γ(x) ) in the Real numbers. Note the U-shaped curve in the upper right quadrant of the plot. In the integration version of the gamma function, ‘e’ is the base of natural logarithms, with a value of approximately 2.718.

Gamma Function as an Integral image from Wikipedia

Gamma Function as an Integral.

Finally, the general gamma function extends to negative Real numbers and complex numbers. (Complex numbers have the form “z = x + iy”, where ‘z’ is Complex, ‘x’ and ‘y’ are Real, and ‘i’ is the square root of -1). The value of the integral function approaches infinity as the argument approaches each negative integer. Γ(x) never has the value zero.

Another equation defining the gamma function is Γ(x) = (x-1) * Γ(x-1), which is more reminiscent of the recursive definition of the factorial function on positive integers.

The gamma function has applications in probability and statistics, particularly when dealing with continous variables. However, any further discussion about the gamma function will be deferred for much later articles.

A Future for Factorials in Decoded Science

We will also put an exclamation point on factorials through topics in permutations, combinations, and probability, as well as practical applications of each. To whet your appetite, one application of factorials is to calculate how many different bingo cards are required for a complete set.

References:
Weisstein, E. W. Factorial; k-Subset; Permutation. MathWorld-A Wolfram Web Resource. (1999-2012). Accessed August 8, 2012.

Share50
Pin2
+11
Tweet
Share
53 Shares
Pages: 1 2

Filed Under: Math Theory Tagged With: factorial, factorial function, factorials, gamma function, math, mathematics, permutation

Decoded Everything is a non-profit corporation, dependent on donations from readers like you. Donate now! Your support keeps the great information coming!

Comments

  1. Been a while since highschool says

    June 29, 2018 at 1:00 am

    So I have never studied factorials, and can someone open up what it actually means?
    I thought that if:
    n! = n * (n – 1) * (n – 2) *…* 2 * 1

    Then 1! would be 1! = 1*(1-1)… and after that nothing else matters, as they are all multiplied with eachother and the result should be zero - so why is 1! = 1?

    Reply
    • Selim says

      July 2, 2018 at 9:00 am

      a factorial is a function applied to natural numbers greater than zero.

      Reply
    • Devrishi says

      January 28, 2019 at 9:14 pm

      As factorial is applicable cable to only natural no. And 1 is the first no.therefore, in case of one there is only n.similarly in case of 2, 2! Will be n*(n-1) .but not n*(n-1) *(n-2) as n-2 will be not a natural no.

      Reply
  2. sailen says

    June 5, 2018 at 5:47 am

    solve 19 using only four 4 without using ! sign

    Reply
  3. Mervin Werkheiser says

    May 17, 2018 at 4:36 pm

    This site is absolutely fabulous!

    Reply
  4. stanley ness says

    December 16, 2016 at 9:43 am

    You elitests talk past the layman who wants a simple explanation when used in a formula.
    Ex.cubic inches of a pipe to calculate volume of water.

    Reply
    • [email protected] says

      March 13, 2017 at 11:41 am

      Harambea

      Reply
  5. e says

    August 8, 2016 at 2:09 pm

    I wrote javascript in the console to play with the concept.

    to be honest, I think the reason math is so impenetrable for people is that if you took the same way people write math problems out to code, people would hate your guts. Everything is horrible shorthand. I came to this page because I wanted to know how the formula on this page works (http://www.homeschoolmath.net/teaching/sine_calculator.php).

    There’s no explanation of the logic behind these concepts, or why they get you to the right answer. I can appreciate the quick and dirty need to just utilize functions and things people have already figured out, but for the curious mind there is so little nourishment. Why does it work, what do these sub calculations represent, if I wanted to recombined them in different ways to solve new problems, I can’t because I don’t know what they mean.

    I can really struggle thinking just factorial out for an hour, to say, well the reason 3*2 works is that the 2 represents the number of times each element can appear at the beginning of the set, and 4*3*2 works because the each element can appear at the beginning of the set 3 times, and when you’ve accounted for those possibilities, the number of remaining variations for those sets are the number of times each element of the remaining elements are going to appear first, but be damned if anyone is going to try to put that in English, or spend more than the 5 minutes I spent hear trying to make it actually coherent to someone just encountering this concept. And the only reason I can sort of make sense of it is because I spent a lot of time thinking about it one time as a kid, not because any teacher tried to explain or even knew themselves why it worked.

    ok that’s my rant ! At least the page I found above was better than the broken responses you normally find when asking ‘what actually is sin’ and people just tell you what sin is useful for.

    var factorial = function(n) {
    if (n > 2) { return n * factorial(n - 1) } else { return n } }
    undefined
    factorial(2)
    2
    factorial(3)
    6
    factorial(4)
    24
    factorial(5)
    120
    factorial(56)
    7.109985878048635e+74

    Reply
  6. Seth says

    April 28, 2016 at 10:42 am

    Simplify: 5! 8!2!

    Reply
    • K.S.Patel says

      May 24, 2016 at 7:46 am

      5!8!2! = 120*40320*2 = 9676800
      5! = 5*4*3*2*1 = 120
      8! = 8*7*6*5*4*3*2*1 = 40320
      2! = 2*1 = 2

      Reply
  7. anna says

    April 27, 2016 at 12:15 pm

    Woooooooow understood none of that ^.^

    Reply
  8. Jayden says

    February 16, 2016 at 6:37 pm

    Can you do !!? For example, 6! Would be 6x4x2

    Reply
    • Randoman Lolmao says

      March 19, 2016 at 12:59 am

      No, I’m afraid that’s wrong. The correct term is 6•5•4•3•2.

      Reply
  9. Lee Shafer says

    January 21, 2015 at 9:32 am

    I just saw the clock where all the hours are expressed as some formula involving only 9. I don’t get 7 o’clock. To make 7 you need that last part to =1. There is a line with .9 under it. I never had that in school.what is that?it obviously equals one. Lee

    Reply
    • Poorva says

      July 28, 2015 at 3:59 am

      9 - Root 9 + .9 with bar

      = 9 - 3 + .9
      = 6 + .9
      = 6.9
      = 7

      as per the maths rule, we sum up the number when it exceeds 0.5 .. Here the .9 has a bar .i.e. 6.999999999999 (Infinite) hence we summed it up to 7

      Reply
      • Bill says

        January 20, 2016 at 6:46 am

        6 point (infinite number of 9s) is the same as 7. No need to round up.
        5 is wrong as it uses 9! (factorial) to mean 9+8+…+1 rather than multiplied by

        Reply
  10. Mike DeHaan says

    August 13, 2012 at 4:24 pm

    Excellent question. By appeal to authority in Wolfram, “The special case 0! is defined to have value 0!=1, consistent with the combinatorial interpretation of there being exactly one way to arrange zero objects (i.e., there is a single permutation of zero elements, namely the empty set)”.
    Wikipedia’s “Gamma function” has the line
    “Combining this with Γ(1) = 1, we get Γ(n) = (n-1)!”
    when defining the gamma function.
    Plus…
    SosMath discusses the gamma function as an integral, noting that “e^(-1) = 1” (and should have noted “x^0 = 1”). Further down the page, they derive Γ(1) = 1 from the integral.
    (See http://sosmath.com/calculus/improper/gamma/gamma.html ).
    My basic answer is: it works out nicely when relating factorials to the gamma function.
    (Sorry I hadn’t checked my mail over the weekend!)

    Reply
  11. joe franco says

    August 9, 2012 at 8:31 am

    why is 0! = 1

    Reply
    • meshfields_blog says

      April 21, 2014 at 3:07 am

      Because the number of possible permutations of 0! is 1. The empty set { } is still one empty set with one permutation inside.

      Proof: Let n=1, using the definition n! = n*(n-1)! then is
      1! = 1*0! which can be simplified to 1 = 0!. ■

      Reply
    • Vincent Summers says

      September 29, 2015 at 11:57 am

      As I get older, I begin to accept what some might call the fudge factor. If the fudge factor works, run with it.

      Reply

Leave a Reply Cancel reply

Connect with:
Facebook

Your email address will not be published. Required fields are marked *

About the Author

Mike DeHaan

Mike DeHaan applies his Bachelor of Math in Computer Sciences degree, years of Cobol programming and quality assurance (including testing credit card interest calculations) to research and present mathematical theory for the ... Read Full Profile

Follow Decoded Science

  • Facebook
  • Google+
  • Twitter
  • Pinterest

Science Everyone's Talking About

Sorry. No data so far.

Today's Most Popular Science Articles

  • Introducing Math Symbols for Union and Intersection Introducing Math Symbols for Union and Intersection
  • Genetically Modified Organisms: Pros and Cons of GMO Food Genetically Modified Organisms: Pros and Cons of GMO Food
  • Introducing the Factorial: the Exclamation Mark of Math Introducing the Factorial: the Exclamation Mark of Math
  • Which Chemical Bond is Stronger: Ionic vs. Covalent Bonds Which Chemical Bond is Stronger: Ionic vs. Covalent Bonds
  • Norovirus Facts: 5 Things You Didn't Know About Stomach Flu Norovirus Facts: 5 Things You Didn’t Know About Stomach Flu
  • Cross Multiply to Solve Equations with Fractions Cross Multiply to Solve Equations with Fractions
  • Practical Uses of Matrix Mathematics Practical Uses of Matrix Mathematics

© 2026 DecodedScience

MENU
  • Home
  • Headlines
  • General Science
  • Applied Science
    • Calculations
    • Economics
    • Engineering
      • Aviation
      • Civil Engineering
    • Medical Science
      • Health
      • Neuroscience
      • Oncology
      • Veterinary Science
    • Political Science
      • Polling
    • Mathematics
    • Technology
      • Artificial Intelligence
      • Computing
      • Electronics
      • Gadgets
    • Social Science
      • Cognitive Science
      • Psychology
      • Sociology
      • Anthropology
        • Linguistics
  • Physical Science
    • Archaeology
    • Astronomy
    • Chemistry
      • Materials Science
    • Geoscience
      • Climate Change
      • The Environment
      • Geology
      • Meteorology
      • Oceanography
    • Life Science
      • Biology
        • Botany
        • Zoology
          • Marine Biology
          • Entomology
          • Microbiology
        • Paleontology
        • Ecology
    • Nuclear Science
  • Theoretical Science
    • Physics
    • Math Theory
  • About Us
    • Contact Decoded Science
    • Ask the Expert
    • Meet Our Experts
    • Meet Our Sponsors:
    • Browse All Articles
    • Subscribe
    • Privacy Policy
    • Terms of Use Agreement
  • Support Decoded Science