<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Kempner_function</id>
	<title>Kempner function - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Kempner_function"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Kempner_function&amp;action=history"/>
	<updated>2026-10-26T21:44:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Kempner_function&amp;diff=4659346&amp;oldid=prev</id>
		<title>imported&gt;David Eppstein: Undid revision 1231003508 by Jayy V (talk) wikilinking and formatting disimprovements</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Kempner_function&amp;diff=4659346&amp;oldid=prev"/>
		<updated>2024-06-25T23:35:26Z</updated>

		<summary type="html">&lt;p&gt;Undid revision &lt;a href=&quot;/wiki143/index.php?title=Special:Diff/1231003508&quot; title=&quot;Special:Diff/1231003508&quot;&gt;1231003508&lt;/a&gt; by &lt;a href=&quot;/wiki143/index.php?title=Special:Contributions/Jayy_V&quot; title=&quot;Special:Contributions/Jayy V&quot;&gt;Jayy V&lt;/a&gt; (&lt;a href=&quot;/wiki143/index.php?title=User_talk:Jayy_V&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Jayy V (page does not exist)&quot;&gt;talk&lt;/a&gt;) wikilinking and formatting disimprovements&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:SmarandacheFunction.PNG|thumb|374px|right|Graph of the Kempner function]]&lt;br /&gt;
&lt;br /&gt;
In [[number theory]], the &amp;#039;&amp;#039;&amp;#039;Kempner function&amp;#039;&amp;#039;&amp;#039; &amp;lt;math&amp;gt;S(n)&amp;lt;/math&amp;gt;&amp;lt;ref name=&amp;quot;oeis&amp;quot;&amp;gt;Called the Kempner numbers in the [[Online Encyclopedia of Integer Sequences]]: see {{Cite OEIS|sequencenumber=A002034 |name=Kempner numbers: smallest number &amp;#039;&amp;#039;m&amp;#039;&amp;#039; such that &amp;#039;&amp;#039;n&amp;#039;&amp;#039; divides&amp;amp;nbsp;&amp;#039;&amp;#039;m&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;!&amp;lt;/nowiki&amp;gt;}}&amp;lt;/ref&amp;gt; is defined for a given [[positive integer]] &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; to be the smallest number &amp;lt;math&amp;gt;s&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; [[divides]] the {{nowrap|[[factorial]] &amp;lt;math&amp;gt;s!&amp;lt;/math&amp;gt;.}} For example, the number &amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt; does not divide &amp;lt;math&amp;gt;1!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;2!&amp;lt;/math&amp;gt;, {{nowrap|or &amp;lt;math&amp;gt;3!&amp;lt;/math&amp;gt;,}} but does {{nowrap|divide &amp;lt;math&amp;gt;4!&amp;lt;/math&amp;gt;,}} {{nowrap|so &amp;lt;math&amp;gt;S(8)=4&amp;lt;/math&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
This function has the property that it has a highly inconsistent [[Asymptotic analysis|growth rate]]: it [[linear function|grows linearly]] on the [[prime number]]s but only grows [[Logarithmic growth|sublogarithmically]] at the factorial numbers.&lt;br /&gt;
&lt;br /&gt;
==History==&lt;br /&gt;
This function was first considered by [[François Édouard Anatole Lucas]] in 1883,&amp;lt;ref name=&amp;quot;history1&amp;quot;&amp;gt;&lt;br /&gt;
{{cite journal&lt;br /&gt;
 | first = E. | last = Lucas | authorlink = François Édouard Anatole Lucas&lt;br /&gt;
 | title  = Question Nr. 288&lt;br /&gt;
 | journal =  [[Mathesis (journal)|Mathesis]]&lt;br /&gt;
 | volume = 3&lt;br /&gt;
 |page=232&lt;br /&gt;
 | year = 1883&lt;br /&gt;
}}&amp;lt;/ref&amp;gt; followed by [[Joseph Jean Baptiste Neuberg]] in 1887.&amp;lt;ref name=&amp;quot;history2&amp;quot;&amp;gt;&lt;br /&gt;
{{cite journal&lt;br /&gt;
 | first = J. | last = Neuberg | authorlink = Joseph Jean Baptiste Neuberg&lt;br /&gt;
 | title  = Solutions de questions proposées, Question Nr. 288&lt;br /&gt;
 | journal = [[Mathesis (journal)|Mathesis]]&lt;br /&gt;
 | volume = 7&lt;br /&gt;
 | pages = 68–69&lt;br /&gt;
 | year = 1887&lt;br /&gt;
}}&amp;lt;/ref&amp;gt; In 1918, [[Aubrey J. Kempner|A. J. Kempner]] gave the first correct algorithm for {{nowrap|computing &amp;lt;math&amp;gt;S(n)&amp;lt;/math&amp;gt;.&amp;lt;ref name=&amp;quot;history3&amp;quot;&amp;gt;&lt;br /&gt;
{{cite journal&lt;br /&gt;
 | jstor =  2972639&lt;br /&gt;
 | first = A. J. | last = Kempner&lt;br /&gt;
 | title  = Miscellanea&lt;br /&gt;
 | journal = [[The American Mathematical Monthly]]&lt;br /&gt;
 | volume = 25&lt;br /&gt;
 | pages = 201–210&lt;br /&gt;
 | year = 1918&lt;br /&gt;
 | doi  = 10.2307/2972639&lt;br /&gt;
 | issue =  5&lt;br /&gt;
}}&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
The Kempner function is also sometimes called the &amp;#039;&amp;#039;&amp;#039;Smarandache function&amp;#039;&amp;#039;&amp;#039; following Florentin Smarandache&amp;#039;s rediscovery of the function {{nowrap|in 1980.&amp;lt;ref&amp;gt;{{cite journal&lt;br /&gt;
 | last1 = Hungerbühler | first1 = Norbert&lt;br /&gt;
 | last2 = Specker | first2 = Ernst | author2-link = Ernst Specker&lt;br /&gt;
 | journal = Integers&lt;br /&gt;
 | mr = 2264838&lt;br /&gt;
 | page = A23, 11&lt;br /&gt;
 | title = A generalization of the Smarandache function to several variables&lt;br /&gt;
 | url = http://www.emis.de/journals/INTEGERS/papers/g23/g23.Abstract.html&lt;br /&gt;
 | volume = 6&lt;br /&gt;
 | year = 2006}}&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
Since &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; {{nowrap|divides &amp;lt;math&amp;gt;n!&amp;lt;/math&amp;gt;,}} &amp;lt;math&amp;gt;S(n)&amp;lt;/math&amp;gt; is always at {{nowrap|most &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.}} A number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; greater than 4 is a [[prime number]] if and only {{nowrap|if &amp;lt;math&amp;gt;S(n)=n&amp;lt;/math&amp;gt;.&amp;lt;ref&amp;gt;&lt;br /&gt;
{{cite journal&lt;br /&gt;
 | author = R. Muller&lt;br /&gt;
 | title  = Editorial&lt;br /&gt;
 | journal = Smarandache Function Journal&lt;br /&gt;
 | url = http://www.gallup.unm.edu/~smarandache/SFJ1.pdf&lt;br /&gt;
 | volume = 1&lt;br /&gt;
 | issue = &lt;br /&gt;
 |page=1&lt;br /&gt;
 | year = 1990&lt;br /&gt;
 | isbn = 84-252-1918-3&lt;br /&gt;
}}&amp;lt;/ref&amp;gt;}} That is, the numbers &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; for which &amp;lt;math&amp;gt;S(n)&amp;lt;/math&amp;gt; is as large as possible relative to &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; are the primes. In the other direction, the numbers for which &amp;lt;math&amp;gt;S(n)&amp;lt;/math&amp;gt; is as small as possible are the factorials: {{nowrap|&amp;lt;math&amp;gt;S(k!)=k&amp;lt;/math&amp;gt;,}} for {{nowrap|all &amp;lt;math&amp;gt;k\ge 1&amp;lt;/math&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;S(n)&amp;lt;/math&amp;gt; is the smallest possible [[Degree of a polynomial|degree]] of a [[monic polynomial]] with integer coefficients, whose values over the integers are all divisible {{nowrap|by &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;ref name=&amp;quot;oeis&amp;quot;/&amp;gt;}}&lt;br /&gt;
For instance, the fact that &amp;lt;math&amp;gt;S(6)=3&amp;lt;/math&amp;gt; means that there is a [[cubic polynomial]] whose values are all zero [[Modular arithmetic|modulo]] 6, for instance the polynomial&lt;br /&gt;
&amp;lt;math display=block&amp;gt;x(x-1)(x-2)=x^3-3x^2+2x,&amp;lt;/math&amp;gt;&lt;br /&gt;
but that all quadratic or linear polynomials (with leading coefficient one) are nonzero modulo 6 at some integers.&lt;br /&gt;
&lt;br /&gt;
In one of the advanced problems in &amp;#039;&amp;#039;[[The American Mathematical Monthly]]&amp;#039;&amp;#039;, set in 1991 and solved in 1994, [[Paul Erdős]] pointed out that the function &amp;lt;math&amp;gt;S(n)&amp;lt;/math&amp;gt; coincides with the largest [[prime factor]] of &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; for &amp;quot;almost all&amp;quot; &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; (in the sense that the [[asymptotic density]] of the set of exceptions is zero).&amp;lt;ref&amp;gt;{{cite journal|title=The smallest factorial that is a multiple of {{mvar|n}} (solution to problem 6674)|journal=[[The American Mathematical Monthly]]|volume=101|year=1994|page=179|url=http://www-fourier.ujf-grenoble.fr/~marin/une_autre_crypto/articles_et_extraits_livres/irationalite/Erdos_P._Kastanas_I.The_smallest_factorial...-.pdf|first1=Paul|last1=Erdős|author1-link=Paul Erdős|first2=Ilias|last2=Kastanas|doi=10.2307/2324376|jstor=2324376 }}.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Computational complexity==&lt;br /&gt;
The Kempner function &amp;lt;math&amp;gt;S(n)&amp;lt;/math&amp;gt; of an arbitrary number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is the maximum, over the [[prime power]]s &amp;lt;math&amp;gt;p^e&amp;lt;/math&amp;gt; dividing &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, of &amp;lt;math&amp;gt;S(p^e)&amp;lt;/math&amp;gt;.&amp;lt;ref name=&amp;quot;history3&amp;quot;/&amp;gt;&lt;br /&gt;
When &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is itself a prime power &amp;lt;math&amp;gt;p^e&amp;lt;/math&amp;gt;, its Kempner function may be found in [[polynomial time]] by sequentially scanning the multiples of &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; until finding the first one whose factorial contains enough multiples {{nowrap|of &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;.}} The same [[algorithm]] can be extended to any &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; 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.&lt;br /&gt;
&lt;br /&gt;
For a number of the form &amp;lt;math&amp;gt;n=px&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; is prime and &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is less than &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;, the Kempner function of &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;.&amp;lt;ref name=&amp;quot;history3&amp;quot;/&amp;gt; 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 &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a [[composite number]], the [[greatest common divisor]] of &amp;lt;math&amp;gt;S(n)&amp;lt;/math&amp;gt; {{nowrap|and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;}} will necessarily be a nontrivial [[divisor]] {{nowrap|of &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;,}} allowing &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; 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.&lt;br /&gt;
&lt;br /&gt;
==References and notes==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
{{PlanetMath attribution&lt;br /&gt;
|id = | urlname =SmarandacheFunction&lt;br /&gt;
|title = Smarandache function}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Factorial and binomial topics]]&lt;/div&gt;</summary>
		<author><name>imported&gt;David Eppstein</name></author>
	</entry>
</feed>