<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sarg.dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=2A00%3A23C6%3A1492%3A7A01%3A21BF%3A1F09%3AD6BA%3ABE8A</id>
	<title>Vero - Wikipedia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sarg.dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=2A00%3A23C6%3A1492%3A7A01%3A21BF%3A1F09%3AD6BA%3ABE8A"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php/Special:Contributions/2A00:23C6:1492:7A01:21BF:1F09:D6BA:BE8A"/>
	<updated>2026-08-14T18:43:53Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sarg.dev/index.php?title=Keith_number&amp;diff=299056</id>
		<title>Keith number</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Keith_number&amp;diff=299056"/>
		<updated>2025-05-25T22:07:43Z</updated>

		<summary type="html">&lt;p&gt;2A00:23C6:1492:7A01:21BF:1F09:D6BA:BE8A: largest known is now 880430656963418264331749765271577784&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Type of number introduced by Mike Keith}}&lt;br /&gt;
{{about|the mathematics concept|the political concept|Countdown with Keith Olbermann}}&lt;br /&gt;
In [[recreational mathematics]], a &#039;&#039;&#039;Keith number&#039;&#039;&#039; or &#039;&#039;&#039;repfigit number&#039;&#039;&#039; (short for &#039;&#039;&#039;rep&#039;&#039;&#039;etitive [[Fibonacci sequence|&#039;&#039;&#039;F&#039;&#039;&#039;ibonacci-like]] d&#039;&#039;&#039;igit&#039;&#039;&#039;) is a [[natural number]] &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; in a given [[number base]] &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digits such that when a sequence is created such that the first &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; terms are the &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; digits of &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; and each subsequent term is the sum of the previous &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; terms, &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is part of the sequence. Keith numbers were introduced by [[Mike Keith (mathematician)|Mike Keith]] in 1987.&amp;lt;ref&amp;gt;{{cite journal | author-link = Mike Keith (mathematician) | first = Mike | last = Keith | title = Repfigit Numbers | journal = [[Journal of Recreational Mathematics]] | volume = 19 |issue = 2 | year = 1987 |pages = 41–42}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
They are computationally very challenging to find, with only about 125 known.&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number, let &amp;lt;math&amp;gt;k = \lfloor \log_{b}{n} \rfloor + 1&amp;lt;/math&amp;gt; be the number of digits of &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; in base &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, and let &lt;br /&gt;
:&amp;lt;math&amp;gt;d_i = \frac{n \bmod b^{i + 1} - n \bmod b^{i}}{b^{i}}&amp;lt;/math&amp;gt;&lt;br /&gt;
be the value of each digit of &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We define the sequence &amp;lt;math&amp;gt;S(i)&amp;lt;/math&amp;gt; by a [[linear recurrence relation]]. For &amp;lt;math&amp;gt;0 \leq i &amp;lt; k&amp;lt;/math&amp;gt;, &lt;br /&gt;
:&amp;lt;math&amp;gt;S(i) = d_{k - i - 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
and for &amp;lt;math&amp;gt;i \geq k&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;S(i) = \sum_{j = 0}^{k} S(i - k + j)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there exists an &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;S(i) = n&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is said to be a &#039;&#039;&#039;Keith number&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
For example, 88 is a Keith number in [[base 6]], as &lt;br /&gt;
:&amp;lt;math&amp;gt;S(0) = d_{3 - 0 - 1} = d_2 = \frac{88 \bmod 6^{2 + 1} - 88 \bmod 6^{2}}{6^{2}} = \frac{88 \bmod 216 - 88 \bmod 36}{36} = \frac{88 - 16}{36} = \frac{72}{36} = 2&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;S(1) = d_{3 - 1 - 1} = d_1 = \frac{88 \bmod 6^{1 + 1} - 88 \bmod 6^{1}}{6^{1}} = \frac{88 \bmod 36 - 88 \bmod 6}{6} = \frac{16 - 4}{6} = \frac{12}{6} = 2&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;S(2) = d_{3 - 2 - 1} = d_0 = \frac{88 \bmod 6^{0 + 1} - 88 \bmod 6^{0}}{6^{0}} = \frac{88 \bmod 6 - 88 \bmod 1}{1} = \frac{4 - 0}{1} = \frac{4}{1} = 4&amp;lt;/math&amp;gt;&lt;br /&gt;
and the entire sequence&lt;br /&gt;
:&amp;lt;math&amp;gt;S(i) = \{2, 2, 4, 8, 14, 26, 48, 88, 162, \ldots\}&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;S(7) = 88&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Finding Keith numbers===&lt;br /&gt;
Whether or not there are infinitely many Keith numbers in a particular base &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; is currently a matter of speculation. Keith numbers are rare and hard to find. They can be found by exhaustive search, and no more efficient algorithm is known.&amp;lt;ref&amp;gt;{{cite web | last1 = Earls | first1 = Jason | last2 = Lichtblau | first2 = Daniel | last3 = Weisstein | first3 = Eric W. | author-link = Eric W. Weisstein| title = Keith Number | publisher = [[MathWorld]] | url = http://mathworld.wolfram.com/KeithNumber.html }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
According to Keith, in [[base 10]], on average &amp;lt;math&amp;gt;\textstyle\frac{9}{10}\log_2{10}\approx 2.99&amp;lt;/math&amp;gt; Keith numbers are expected between successive [[power of 10|powers of 10]].&amp;lt;ref name=&amp;quot;keith_web&amp;quot;&amp;gt;{{cite web | author-link = Mike Keith (mathematician) | first = Mike | last = Keith | title = Keith Numbers | url = http://www.cadaeic.net/keithnum.htm }}&amp;lt;/ref&amp;gt; Known results seem to support this.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
[[14 (number)|14]], [[19 (number)|19]], [[28 (number)|28]], [[47 (number)|47]], [[61 (number)|61]], [[75 (number)|75]], 197, 742, 1104, 1537, 2208, 2580, 3684, 4788, 7385, 7647, 7909, 31331, 34285, 34348, 55604, 62662, 86935, 93993, 120284, 129106, 147640, 156146, 174680, 183186, 298320, 355419, 694280, 925993, 1084051, 7913837, 11436171, 33445755, 44121607, 129572008, 251133297, ...&amp;lt;ref name=OEIS&amp;gt;{{Cite OEIS|sequencenumber=A007629|name=Repfigit (REPetitive FIbonacci-like diGIT) numbers (or Keith numbers) }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Other bases==&lt;br /&gt;
In [[binary number|base 2]], there exists a method to construct all Keith numbers.&amp;lt;ref name=&amp;quot;keith_web&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The Keith numbers in [[duodecimal|base 12]], written in base 12, are&lt;br /&gt;
:11, 15, 1Ɛ, 22, 2ᘔ, 31, 33, 44, 49, 55, 62, 66, 77, 88, 93, 99, ᘔᘔ, ƐƐ, 125, 215, 24ᘔ, 405, 42ᘔ, 654, 80ᘔ, 8ᘔ3, ᘔ59, 1022, 1662, 2044, 3066, 4088, 4ᘔ1ᘔ, 4ᘔƐ1, 50ᘔᘔ, 8538, Ɛ18Ɛ, 17256, 18671, 24ᘔ78, 4718Ɛ, 517Ɛᘔ, 157617, 1ᘔ265ᘔ, 5ᘔ4074, 5ᘔƐ140, 6Ɛ1449, 6Ɛ8515, ...&lt;br /&gt;
where ᘔ represents 10 and Ɛ represents 11.&lt;br /&gt;
&lt;br /&gt;
==Keith clusters==&lt;br /&gt;
A Keith cluster is a related set of Keith numbers such that one is a multiple of another. For example, in [[base 10]], &amp;lt;math&amp;gt;\{14, 28\}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\{1104, 2208\}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;\{31331, 62662, 93993\}&amp;lt;/math&amp;gt; are all Keith clusters. These are possibly the only three examples of a Keith cluster in [[base 10]].&amp;lt;ref&amp;gt;{{cite web|last=Copeland|first=Ed|title=14 197 and other Keith Numbers|url=http://www.numberphile.com/videos/197_keith.html|work=Numberphile|publisher=[[Brady Haran]]|access-date=2013-04-09|archive-url=https://web.archive.org/web/20170522032347/http://www.numberphile.com/videos/197_keith.html|archive-date=2017-05-22|url-status=dead}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Programming example==&lt;br /&gt;
The example below implements the sequence defined above in [[Python (programming language)|Python]] to determine if a number in a particular base is a Keith number:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
def is_repfigit(x: int, b: int) -&amp;gt; bool:&lt;br /&gt;
    &amp;quot;&amp;quot;&amp;quot;Determine if a number in a particular base is a Keith number.&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
    if x == 0:&lt;br /&gt;
        return True&lt;br /&gt;
&lt;br /&gt;
    sequence = []&lt;br /&gt;
    y = x&lt;br /&gt;
&lt;br /&gt;
    while y &amp;gt; 0:&lt;br /&gt;
        sequence.append(y % b)&lt;br /&gt;
        y = y // b&lt;br /&gt;
&lt;br /&gt;
    digit_count = len(sequence)&lt;br /&gt;
    sequence.reverse()&lt;br /&gt;
&lt;br /&gt;
    while sequence[len(sequence) - 1] &amp;lt; x:&lt;br /&gt;
        n = 0&lt;br /&gt;
        for i in range(0, digit_count):&lt;br /&gt;
            n = n + sequence[len(sequence) - digit_count + i]&lt;br /&gt;
        sequence.append(n)&lt;br /&gt;
&lt;br /&gt;
    return sequence[len(sequence) - 1] == x&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Arithmetic dynamics#Other areas in which number theory and dynamics interact|Arithmetic dynamics]]&lt;br /&gt;
* [[Fibonacci number]]&lt;br /&gt;
* [[Linear recurrence relation]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
{{Classes of natural numbers}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Arithmetic dynamics]]&lt;br /&gt;
[[Category:Base-dependent integer sequences]]&lt;br /&gt;
[[Category:Fibonacci numbers]]&lt;br /&gt;
[[Category:Recurrence relations]]&lt;/div&gt;</summary>
		<author><name>2A00:23C6:1492:7A01:21BF:1F09:D6BA:BE8A</name></author>
	</entry>
</feed>