Puneet Varma (Editor)

De Polignac's formula

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In number theory, de Polignac's formula, named after Alphonse de Polignac, gives the prime decomposition of the factorial n!, where n ≥ 1 is an integer. L. E. Dickson attributes the formula to Legendre.

The formula

Let n ≥ 1 be an integer. The prime decomposition of n! is given by

n ! = prime  p n p s p ( n ) ,

where

s p ( n ) = j = 1 n p j ,

and the brackets represent the floor function. The former product only needs to be taken for primes less than or equal to n, so the latter sum only needs to be taken for j ranging from 1 to floor( logp(n) ), i.e.:

s p ( n ) = j = 1 log p ( n ) n p j

The small disadvantage of the De Polignac's formula is that we need to know all the primes up to n. In fact,

n ! = i = 1 π ( n ) p i s p i ( n ) = i = 1 π ( n ) p i j = 1 log p i ( n ) n p i j ,

where π ( n ) is a prime-counting function counting the number of prime numbers less than or equal to n.

References

De Polignac's formula Wikipedia