|
Contents of this pageWho knew there was so much to say about the product of consecutive integers? This page answers the following questions: Product of an Odd Number of Consecutive IntegersThe formula for finding the product of any odd number of consecutive integers follows the pattern of coefficients in Sloane's A008955. If the number of numbers is 2k+1, where k=0,1,2,..., then we can define a function Podd(k,n) as the product of 2k+1 numbers in which the "middle" number is n. That is Podd(k,n)=(n-k)(n-k+1)...(n+k) Notice that Podd(k+1,n) = (n2-k2) Podd(k,n), which gives us a recurrence relation that lets us find the coefficients of each polynomial:
Podd(0,n) = (n) = n Product of an Even Number of Consecutive IntegersThe formula for finding the product of any even number of consecutive integers follows the pattern of coefficients in Sloane's A008956. If the number of numbers is 2k, where k=0,1,2,..., then we can define a function Peven(k,n) as the product of 2k numbers in which the sum of the two "middle" numbers is n. Notice that this sum is always odd. Each of the consecutive numbers can be represented as (n+m)/2, where m is an odd number that ranges from -2k+1 to 2k-1. That is, Peven(k,n)=(n-2k+1)/2 (n-2k+3)/2 ...
(n+2k-1)/2, or Notice that Peven(k+1,n) = (n2-(2k-1)2) Peven(k,n), which gives us a recurrence relation that lets us find the coefficients of each polynomial:
Peven(0,n) = (1)/20 = 1 Ratio of Factorials, and Gosper's ApproximationOf course, the product of integers from k+1 to n is n!/k!. Toward the end of Mathworld's article in Stirling's Approximation to n!, this statement appears:
Using this approximation, n!/k! is given by
This form is useful for computation, especially when k is almost as large as n, because it avoids very large or very small numbers in intermediate results. The product of n consecutive integers is divisible by n!Proof 1: Consider the number of n-element sets of an (n+m) element
set. This is C(n+m,n), which is an integer, and Proof 2: Consider the largest power of each prime factor of the product of consecutive integers. Let P be the product,
For any given positive integer n and prime p, define the function E(n,p) = e such that pe is the largest power of p that divides n!. This is the number of numbers from 1 to n divisible by p plus the number of numbers divisible by p2 plus the number of numbers divisible by p3, etc.
Using this definition with the product, P=(m+n)!/m!, we see that
which is at least as large as E(n,p) for any given m, n and p, because for any real numbers, a and b, floor[a+b] ≥ floor[a] + floor[b] A note about products of negative numbers The two proofs, above work for products of n positive integers, but the statement is also true when the product includes negative integers or zero. There are two cases that need to be considered: Case 1: the product of negative numbers. This is equal to plus or minus the product of the corresponding positive numbers, and so it is divisible by n!. Case 2: the product of numbers, some of which are negative, and some of which are not negative. In this case, one of the numbers must be zero, so the product is zero, and zero is divisible by all n! Proof that floor[a+b] ≥ floor[a] + floor[b] It may seem obvious, but it's a little tricky, so I've included this little proof:
Internet ReferencesRelated pages in this website
|
|
The webmaster and author of the Math
Help site is Graeme McRae. |