Kempner function

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Graph of the Kempner function

In number theory, the Kempner function S(n)[1] is defined for a given positive integer n to be the smallest number s such that n divides the factorial s!. For example, the number 8 does not divide 1!, 2!, or 3!, but does divide 4!, so S(8)=4.

This function has the property that it has a highly inconsistent growth rate: it grows linearly on the prime numbers but only grows sublogarithmically at the factorial numbers.

History

[edit | edit source]

This function was first considered by François Édouard Anatole Lucas in 1883,[2] followed by Joseph Jean Baptiste Neuberg in 1887.[3] In 1918, A. J. Kempner gave the first correct algorithm for computing S(n).[4]

The Kempner function is also sometimes called the Smarandache function following Florentin Smarandache's rediscovery of the function in 1980.[5]

Properties

[edit | edit source]

Since n divides n!, S(n) is always at most n. A number n greater than 4 is a prime number if and only if S(n)=n.[6] That is, the numbers n for which S(n) is as large as possible relative to n are the primes. In the other direction, the numbers for which S(n) is as small as possible are the factorials: S(k!)=k, for all k1.

S(n) is the smallest possible degree of a monic polynomial with integer coefficients, whose values over the integers are all divisible by n.[1] For instance, the fact that S(6)=3 means that there is a cubic polynomial whose values are all zero modulo 6, for instance the polynomial x(x1)(x2)=x33x2+2x, but that all quadratic or linear polynomials (with leading coefficient one) are nonzero modulo 6 at some integers.

In one of the advanced problems in The American Mathematical Monthly, set in 1991 and solved in 1994, Paul Erdős pointed out that the function S(n) coincides with the largest prime factor of n for "almost all" n (in the sense that the asymptotic density of the set of exceptions is zero).[7]

Computational complexity

[edit | edit source]

The Kempner function S(n) of an arbitrary number n is the maximum, over the prime powers pe dividing n, of S(pe).[4] When n is itself a prime power pe, its Kempner function may be found in polynomial time by sequentially scanning the multiples of p until finding the first one whose factorial contains enough multiples of p. The same algorithm can be extended to any n whose prime factorization is already known, by applying it separately to each prime power in the factorization and choosing the one that leads to the largest value.

For a number of the form n=px, where p is prime and x is less than p, the Kempner function of n is p.[4] It follows from this that computing the Kempner function of a semiprime (a product of two primes) is computationally equivalent to finding its prime factorization, believed to be a difficult problem. More generally, whenever n is a composite number, the greatest common divisor of S(n) and n will necessarily be a nontrivial divisor of n, allowing n to be factored by repeated evaluations of the Kempner function. Therefore, computing the Kempner function can in general be no easier than factoring composite numbers.

References and notes

[edit | edit source]
  1. ^ a b Called the Kempner numbers in the Online Encyclopedia of Integer Sequences: see Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  4. ^ a b c Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  6. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  7. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..

This article incorporates material from Smarandache function on PlanetMath, which is licensed under the Creative Commons Attribution/Share-Alike License.