Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Keith number

From Wikipedia, the free encyclopedia
Type of number introduced by Mike Keith
This article is about the mathematics concept. For the political concept, seeCountdown with Keith Olbermann.

Inrecreational mathematics, aKeith number orrepfigit number (short forrepetitiveFibonacci-like digit) is anatural numbern{\displaystyle n} in a givennumber baseb{\displaystyle b} withk{\displaystyle k} digits such that when a sequence is created such that the firstk{\displaystyle k} terms are thek{\displaystyle k} digits ofn{\displaystyle n} and each subsequent term is the sum of the previousk{\displaystyle k} terms,n{\displaystyle n} is part of the sequence. Keith numbers were introduced byMike Keith in 1987.[1]They are computationally very challenging to find, with only about 100 known.

Definition

[edit]

Letn{\displaystyle n} be a natural number, letk=logbn+1{\displaystyle k=\lfloor \log _{b}{n}\rfloor +1} be the number of digits ofn{\displaystyle n} in baseb{\displaystyle b}, and let

di=nmodbi+1nmodbibi{\displaystyle d_{i}={\frac {n{\bmod {b}}^{i+1}-n{\bmod {b}}^{i}}{b^{i}}}}

be the value of each digit ofn{\displaystyle n}.

We define the sequenceS(i){\displaystyle S(i)} by alinear recurrence relation. For0i<k{\displaystyle 0\leq i<k},

S(i)=dki1{\displaystyle S(i)=d_{k-i-1}}

and forik{\displaystyle i\geq k}

S(i)=j=0kS(ik+j){\displaystyle S(i)=\sum _{j=0}^{k}S(i-k+j)}

If there exists ani{\displaystyle i} such thatS(i)=n{\displaystyle S(i)=n}, thenn{\displaystyle n} is said to be aKeith number.

For example, 88 is a Keith number inbase 6, as

S(0)=d301=d2=88mod62+188mod6262=88mod21688mod3636=881636=7236=2{\displaystyle S(0)=d_{3-0-1}=d_{2}={\frac {88{\bmod {6}}^{2+1}-88{\bmod {6}}^{2}}{6^{2}}}={\frac {88{\bmod {2}}16-88{\bmod {3}}6}{36}}={\frac {88-16}{36}}={\frac {72}{36}}=2}
S(1)=d311=d1=88mod61+188mod6161=88mod3688mod66=1646=126=2{\displaystyle S(1)=d_{3-1-1}=d_{1}={\frac {88{\bmod {6}}^{1+1}-88{\bmod {6}}^{1}}{6^{1}}}={\frac {88{\bmod {3}}6-88{\bmod {6}}}{6}}={\frac {16-4}{6}}={\frac {12}{6}}=2}
S(2)=d321=d0=88mod60+188mod6060=88mod688mod11=401=41=4{\displaystyle 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}

and the entire sequence

S(i)={2,2,4,8,14,26,48,88,162,}{\displaystyle S(i)=\{2,2,4,8,14,26,48,88,162,\ldots \}}

andS(7)=88{\displaystyle S(7)=88}.

Finding Keith numbers

[edit]

Whether or not there are infinitely many Keith numbers in a particular baseb{\displaystyle b} 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.[2]According to Keith, inbase 10, on average910log2102.99{\displaystyle \textstyle {\frac {9}{10}}\log _{2}{10}\approx 2.99} Keith numbers are expected between successivepowers of 10.[3] Known results seem to support this.

Examples

[edit]

14,19,28,47,61,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, ...[4]

Other bases

[edit]

Inbase 2, there exists a method to construct all Keith numbers.[3]

The Keith numbers inbase 12, written in base 12, are

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, ...

where ᘔ represents 10 and Ɛ represents 11.

Keith clusters

[edit]

A Keith cluster is a related set of Keith numbers such that one is a multiple of another. For example, inbase 10,{14,28}{\displaystyle \{14,28\}},{1104,2208}{\displaystyle \{1104,2208\}}, and{31331,62662,93993}{\displaystyle \{31331,62662,93993\}} are all Keith clusters. These are possibly the only three examples of a Keith cluster inbase 10.[5]

Programming example

[edit]

The example below implements the sequence defined above inPython to determine if a number in a particular base is a Keith number:

defis_repfigit(x:int,b:int)->bool:"""Determine if a number in a particular base is a Keith number."""ifx==0:returnTruesequence=[]y=xwhiley>0:sequence.append(y%b)y=y//bdigit_count=len(sequence)sequence.reverse()whilesequence[len(sequence)-1]<x:n=0foriinrange(0,digit_count):n=n+sequence[len(sequence)-digit_count+i]sequence.append(n)returnsequence[len(sequence)-1]==x

See also

[edit]

References

[edit]
  1. ^Keith, Mike (1987). "Repfigit Numbers".Journal of Recreational Mathematics.19 (2):41–42.
  2. ^Earls, Jason; Lichtblau, Daniel; Weisstein, Eric W."Keith Number".MathWorld.
  3. ^abKeith, Mike."Keith Numbers".
  4. ^Sloane, N. J. A. (ed.)."Sequence A007629 (Repfigit (REPetitive FIbonacci-like diGIT) numbers (or Keith numbers))".TheOn-Line Encyclopedia of Integer Sequences. OEIS Foundation.
  5. ^Copeland, Ed."14 197 and other Keith Numbers".Numberphile.Brady Haran. Archived fromthe original on 2017-05-22. Retrieved2013-04-09.
Classes ofnatural numbers
Powers and related numbers
Of the forma × 2b ± 1
Other polynomial numbers
Recursively defined numbers
Possessing a specific set of other numbers
Expressible via specific sums
2-dimensional
centered
non-centered
3-dimensional
centered
non-centered
pyramidal
4-dimensional
non-centered
Combinatorial numbers
Divisor functions
Prime omega functions
Euler's totient function
Aliquot sequences
Primorial
Otherprime factor ordivisor related numbers
Numeral system-dependent numbers
Arithmetic functions
anddynamics
Digit sum
Digit product
Coding-related
Other
P-adic numbers-related
Digit-composition related
Digit-permutation related
Divisor-related
Other
Generated via asieve
Sorting related
Graphemics related
Retrieved from "https://en.wikipedia.org/w/index.php?title=Keith_number&oldid=1262709697"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp