Kempner function

From Wikipedia, the free encyclopedia
  (Redirected from Smarandache function)
Jump to: navigation, 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!, 3!, but does divide 4!, so S(8) = 4.

This function has the property that it grows linearly on the prime numbers but only grows sublogarithmically at the factorial numbers.


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

The function was called the "Smarandache function" in a 1980 publication by Florentin Smarandache that noted the existence of many other publications on the subject but cited none of them.[5] Others have since used the same name.[6][7][8][9]


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.[10] 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 k ≥ 1.

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).[11]

Computational complexity[edit]

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.

Associated series[edit]

Various series constructed from S(n) have been shown to be convergent.[12][13][14][15] In the case of S(n), the series have been referred to in the literature as Smarandache constants, even when they depend on auxiliary parameters. Note also that these constants differ from the Smarandache constant that arises in Smarandache's generalization of Andrica's conjecture. The following are examples of such series:

  • OEISA048799.
  • OEISA048834 and is irrational.
  • OEISA048835.

References and notes[edit]

  1. ^ Called the Kempner numbers in the Online Encyclopedia of Integer Sequences: see "Sloane's A002034 : Kempner numbers: smallest number m such that n divides m!", The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
  2. ^ Lucas, E. (1883). "Question Nr. 288". Mathesis 3: 232. 
  3. ^ Neuberg, J. (1887). "Solutions de questions proposées, Question Nr. 288". Mathesis 7: 68–69. 
  4. ^ a b c Kempner, A. J. (1918). "Miscellanea". American Mathematical Monthly 25 (5): 201–210. doi:10.2307/2972639. JSTOR 2972639. 
  5. ^ F. Smarandache (1980). "A function in number theory". An. Univ. Timisoara, Ser. St. Mat. 18: 79–88. arXiv:math/0405143. MR 0619740. 
  6. ^ Jonathan Sondow and Eric Weisstein, "Smarandache Function", MathWorld.
  7. ^ V. Seleacu; I. Balacenoiu (1996). The Smarandache Function in Number Theory. Erhus University Press. ISBN 1-879585-47-2. 
  8. ^ C. Ashbacher, M.Popescu (1995). An Introduction to the Smarandache Function. Erhus University Press. ISBN 1-879585-49-9. 
  9. ^ S. Tabirca; T. Tabirca; K. Reynolds; L.T. Yang (2004). "Calculating Smarandache function in parallel". Parallel and Distributed Computing, 2004. Third International Symposium on Algorithms, Models and Tools for Parallel Computing on Heterogeneous Networks: 79–82. doi:10.1109/ISPDC.2004.15. 
  10. ^ R. Muller (1990). "Editorial" (PDF). Smarandache Function Journal 1: 1. ISBN 84-252-1918-3. 
  11. ^ Erdős, Paul; Kastanas, Ilias (1994), "The smallest factorial that is a multiple of n (solution to problem 6674)" (PDF), American Mathematical Monthly 101: 179, doi:10.2307/2324376 .
  12. ^ I.Cojocaru, S. Cojocaru (1996). "The First Constant of Smarandache" (PDF). Smarandache Notions Journal 7: 116–118. 
  13. ^ I. Cojocaru; S. Cojocaru (1996). "The Second Constant of Smarandache" (PDF). Smarandache Notions Journal 7: 119–120. 
  14. ^ I. Cojocaru; S. Cojocaru (1996). "The Third and Fourth Constants of Smarandache" (PDF). Smarandache Notions Journal 7: 121–126. 
  15. ^ E. Burton (1995). "On Some Series Involving the Smarandache Function" (PDF). Smarandache Function Journal 6: 13–15. 

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